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
7 replies
Subscribers
4 subscribers
Views
2661 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Dear all, i have implemented a plug-in and in the META-INF\\lib folder i ha
mimar
over 10 years ago
Dear all,
i have implemented a plug-in and in the META-INF\\lib folder i have put the following libraries:
1. ooxml-schemas-1.1.jar
2. poi-3.9-20121203.jar
3. poi-ooxml-3.9-20121203.jar
4. poi-ooxml-schemas-3.9-20121203.jar
5. xbean.jar
6. xml-apis-2.0.2.jar
7. xmlbeans-2.5.0.jar
When the smart service is executing i got the followinf exception:
javax.resource.spi.work.WorkCompletedException: java.lang.LinkageError: loader constraint violation: when resolving method "javax.imageio.metadata.IIOMetadata.getAsTree(Ljava/lang/String;)Lorg/w3c/dom/Node;" the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) of the current class, org/apache/poi/ss/util/ImageUtils, and the class loader (instance of <bootloader>) for resolved class, javax/imageio/metadata/IIOMetadata, have different Class objects for the type org/w3c/dom/Node used in the signature
If i remove the xml-apis-2.0.2.jar from the META-INF\\lib plugin folder th...
OriginalPostID-79067
OriginalPostID-79067
Discussion posts and replies are publicly visible
0
mimar
over 10 years ago
...en i get the following exception:
org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoClassDefFoundError
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Node
My environment is Appian 6.6.1 (JBOSS) and the JDK version is 1.6.0_37x64.
Does anyone has an idea?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Patty Isecke
Appian Employee
over 10 years ago
Hi Miltos, are you trying to deploy a plugin? If so, the plugins should be installed in the <APPIAN_HOME>/_admin/plugins folder.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mimar
over 10 years ago
No... The plugin has been succesfully deployed and installed. The exceptions are during the execution of the smart service.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 10 years ago
Seems like there is a conflict in the plug-ins being used. Is it possible for you to use the plug-in that's available in Appian? or is it necessary for you to use the version you need? If not, I suggest you use the version that is available in the Appian lib folder. Having said that, I remember overriding the lib loading. Let me dig up the details for you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mimar
over 10 years ago
Thanks Sathya... Waiting for the overriding lib loading details!!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mimar
over 10 years ago
Sathya,
i remove the xml-apis-2.0.2.jar from the META-INF\\lib plugin folder and i put the following segment in the appian-plugin.xml:
<plugin-info>
....
<bundle-instructions>
<Export-Package>org.w3c.dom</Export-Package>
</bundle-instructions>
...
</plugin-info>
and the node finally was executed succesfully.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 10 years ago
perfect! thanks for updating the thread so others can benefit.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel