Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
5 subscribers
Views
3414 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I am using the external JAR files while developing the plug-in. I have configur
Vinod Bongoni
Certified Lead Developer
over 9 years ago
I am using the external JAR files while developing the plug-in. I have configured these JAR files in the plug-in package.
And, It is working fine when it is running from Eclipse but it is not loading the plug-in when I'm deploying it.
I'm facing following problems while deploying and using as smart service.
1. Following is the error message when deploying the plug-in
"Failed to enable Plug-in '<Plugin Name>' (com.appiancorp.plugins.<pluginName>) version 1.0.0: 'There was a problem loading the descriptor for module '<Plugin module name>' in plugin '<Plugin name>'.
Error retrieving dependency of class: com.appiancorp.plugins.<plugin name>.<module name>. Missing class: org/abcd/manager/action/<class name>'"
But this class is actually exists in the JAR file. So Is there any other way to export plug-in with additional JARs?
I have modified the code(removed the code related to above class) and tried to deploy. it is deplo...
OriginalPostID-159899
OriginalPostID-159899
Discussion posts and replies are publicly visible
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
...yed successfully.
2. It is getting the same exception "java.lang.NoClassDefFoundError" as above when I'm trying to use it. Now, this is with another class and which is also exists in the same JAR file. But this exception was not triggered while deploying or loading the plug-in. It is a run time exception.
Is there any other way to export plug-in with external JARs?
Where can I check the external JARs in server to know that whether it is deployed or not along with the plug-in?
Should I deploy external JARs separately? If it is then in which location should I do it?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
TJ
A Score Level 2
over 9 years ago
Can you share your code and ext JAR. I may help you develop it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 9 years ago
Hi Vinod, Can you check whether your external jars are placed in lib folder? if yes, then can you check whether that jar with the path as "/lib/jar name" is added to your classpath? if yes, then verify the build xml, if it is missing the following statement:
<copy todir="./tmp/META-INF/lib">
<fileset dir="./lib">
<include name="**/*.jar"/>
</fileset>
</copy>
let me know, whether this has resolved your problem or not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 9 years ago
Thank you Sumeet. It's working :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johnb637
over 9 years ago
Hello, I have the exact same problem, but my build.xml file is valid, my jar is in the /lib folder and I even updated the build path accordingly. Any ideas please ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johnb637
over 9 years ago
Solution : I was building my Jar plug-in by doing right-click on Project > Export ; where actually I had to build the Jar with Ant. My jar library is now located in the /META-INF/lib folder in my plug-in jar.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel