You need to sign in to do that
Don't have an account?
ndoshi
issues when logging into the API
I am getting the following exception when I try logging into the API :
java.lang.LinkageError: loader constraints violated when linking javax/xml/soap/SOAPMessage class
at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:422)
at org.apache.axis.AxisFault.<init>(AxisFault.java:228)
at com.sforce.soap.enterprise.SoapBindingStub.createCall(SoapBindingStub.java:2992)
at com.sforce.soap.enterprise.SoapBindingStub.login(SoapBindingStub.java:3000)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.login(SalesforceSessionManager.java:104)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.checkLogin(SalesforceSessionManager.java:138
)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.executeQuery(SalesforceSessionManager.java:2
27)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.executeSOQL(SalesforceSessionManager.java:26
4)
This only happens when I re-deploy the axis2, which the web service runs in.
Restarting JBoss resolves the problem.
Does anyone have any ideas?
java.lang.LinkageError: loader constraints violated when linking javax/xml/soap/SOAPMessage class
at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:422)
at org.apache.axis.AxisFault.<init>(AxisFault.java:228)
at com.sforce.soap.enterprise.SoapBindingStub.createCall(SoapBindingStub.java:2992)
at com.sforce.soap.enterprise.SoapBindingStub.login(SoapBindingStub.java:3000)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.login(SalesforceSessionManager.java:104)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.checkLogin(SalesforceSessionManager.java:138
)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.executeQuery(SalesforceSessionManager.java:2
27)
at com.odc.salesforceservice.salesforceapi.SalesforceSessionManager.executeSOQL(SalesforceSessionManager.java:26
4)
This only happens when I re-deploy the axis2, which the web service runs in.
Restarting JBoss resolves the problem.
Does anyone have any ideas?
I agree it has the problem probably has to do with JBoss and Axis2 as well, but the rest of the application runs fine until it tries to log into the Salesforce API.
Do I need to be invoking logout() before undeploying the web-app?
I only included the axis jars in the classpath because the salesforce api stub that I generated required classes from it.
So the fact there are axis classes in the stack trace indicates it is part of the call the salesforce api through the salesforce api stub.
--Neil
I found a post of someone actually running axis within axis2:
http://markmail.org/message/36rd3rgbgomwbcud#query:axis2%20axis%20same%20VM+page:1+mid:36rd3rgbgomwbcud+state:results
--Neil
Message Edited by Dor on 11-20-2008 09:06 AM
axis2-1.4.1
I have a folder called WebContent in my project that contains the axis2 files, web.xml, applicationcontext.xml (spring), etc.
My build process takes my source code and builds it to a jar file.
Then it takes the services.xml and puts that in an aar file.
Then it puts the jar file in the lib directory of WebContent/META-INF and the aar file in the services directory of WebContent/META-INF.
Before I set up Spring it was just building an aar file with all the classes & services.xml and putting that in the services directory, but the behavior was the same.
What does your deployment process look like?
Does your service use spring as well or no?
Thanks for your help!