链接错误:违反加载程序约束:



帮我怎么解决这个问题?我正在与 Java 进行 Netsuite 集成,我将所需的 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)

我刚刚得到了解决方案。我已经从我的类路径中删除了 ibmjsse.jar 文件,然后我发现它可以工作。

相关内容

  • 没有找到相关文章

最新更新