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
4 replies
Subscribers
5 subscribers
Views
1586 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I am using Appian 7.1.2 on JBOSS. I am building a smartservice to call the sales
sayedh
over 10 years ago
I am using Appian 7.1.2 on JBOSS. I am building a smartservice to call the salesforce enterprise wsdl. I am using axis2 version 1.6.2. The code works when I test it outside of the application server. When I run it with a process model, I initially got NoClassDefFound error on org/w3c/dom/Node. I then added the following to my appian-plugin.xml.
<bundle-instructions>
<Export-Package>org.w3c.dom</Export-Package>
</bundle-instructions>
Now I am getting:
java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41) at org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:504) at java.security.AccessController.doPrivileged(Native
To make life easier, I wrote a simple plugin to call the weather web service. That gave me the same exception. Need someone to resolve. I can send you my plugin. FYI, here are the...
OriginalPostID-80470
OriginalPostID-80470
Discussion posts and replies are publicly visible
Parents
0
sayedh
over 10 years ago
I finally got this to work. If someone else is doing this, I would suggest that you pay very close attention to what jar files you include in the plugin's lib and lib-compile directories. Ideally, I would have liked to just copy my dependent jars to the lib directory but that doesn't work. You have to be very aware of what java classes are made available to the plugin by appian. The list is given here:
forum.appian.com/.../Custom_Plug-in_Packages
Before you add a jar to the lib or lib-compile directory see if the class that you are using is made-available to the plugin by appian. If it is, then add the jar to the lib-compile directory. If not, add it to the lib directory. Unfortunately for me, I had to add one jar at a time until it worked. Extremely time consuming and frustrating (because I had to keep deploying the plugin).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sayedh
over 10 years ago
I finally got this to work. If someone else is doing this, I would suggest that you pay very close attention to what jar files you include in the plugin's lib and lib-compile directories. Ideally, I would have liked to just copy my dependent jars to the lib directory but that doesn't work. You have to be very aware of what java classes are made available to the plugin by appian. The list is given here:
forum.appian.com/.../Custom_Plug-in_Packages
Before you add a jar to the lib or lib-compile directory see if the class that you are using is made-available to the plugin by appian. If it is, then add the jar to the lib-compile directory. If not, add it to the lib directory. Unfortunately for me, I had to add one jar at a time until it worked. Extremely time consuming and frustrating (because I had to keep deploying the plugin).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data