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
1593 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
... steps that I followed:
1) Download axis2 version 1.6.2 from apache site.
2) Download the Axis2 Code Generation toolkit.
3) Used the above to generate proxy classes for Salesforce Enterprise WSDL / Weather.com WSDL. Packaged the proxy classes into a jar file.
4) Created appian plugin using the appian eclipse plugin generator.
5) Added all of the jars in axis2 version 1.6.2 to the lib directory of the project.
6) Added the proxy jar to the lib directory.
7) Wrote some code to call the proxy classes and verified that it worked locally (using a class with a main method).
8) Packaged the project as a plugin using the provided eclipse plugin by appian.
9) Deployed the plugin to appian. Received this error (java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sayedh
over 10 years ago
... steps that I followed:
1) Download axis2 version 1.6.2 from apache site.
2) Download the Axis2 Code Generation toolkit.
3) Used the above to generate proxy classes for Salesforce Enterprise WSDL / Weather.com WSDL. Packaged the proxy classes into a jar file.
4) Created appian plugin using the appian eclipse plugin generator.
5) Added all of the jars in axis2 version 1.6.2 to the lib directory of the project.
6) Added the proxy jar to the lib directory.
7) Wrote some code to call the proxy classes and verified that it worked locally (using a class with a main method).
8) Packaged the project as a plugin using the provided eclipse plugin by appian.
9) Deployed the plugin to appian. Received this error (java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data