帮我解决这个问题? 我正在使用Netsuite与java集成,我在项目中添加了必需的jar文件。 添加jboss 6.1.0中部署的jar后。添加此jar org.apache.sling.commons.log-2.0.6.jar获取以下异常。 这是我的堆栈跟踪。
java.lang.LinkageError: loader constraint violation: when resolving method "com.sun.net.ssl.SSLContext.getSocketFactory()Ljavax/net/ssl/SSLSocketFactory;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/axis/components/net/SunJSSESocketFactory, and the class loader (instance of <bootloader>) for resolved class, com/sun/net/ssl/SSLContext, have different Class objects for the type javax/net/ssl/SSLSocketFactory used in the signature
org.apache.axis.components.net.SunJSSESocketFactory.initFactory(SunJSSESocketFactory.java:83)
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:79)
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
org.apache.axis.client.Call.invokeEngine(Call.java:2784)
org.apache.axis.client.Call.invoke(Call.java:2767)
org.apache.axis.client.Call.invoke(Call.java:2443)
org.apache.axis.client.Call.invoke(Call.java:2366)
org.apache.axis.client.Call.invoke(Call.java:1812)
答案 0 :(得分:-1)
我刚刚得到了解决方案。我已从类路径中删除了ibmjsse.jar文件,然后我发现它正常工作。