• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

java.lang.LinkageError: loader constraint violation:  RSS feed

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help me how to solve this one? i'm doing Netsuite integration with java,i added required jar files to my project. After adding jars deployed in jboss 6.1.0.After adding this jar org.apache.sling.commons.log-2.0.6.jar getting following exception. This my stack trace.

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)
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that jar or any other jar contain the javax.net.ssl.SSLSocketFactory in it? If yes, you will have to remove it from the deployed application packaging, since it already comes bundled in application server libraries.
 
raghu tammina
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai jai,

i am using following jars in my classpath,can you help me to solve this one


activation,antlr,axis,axis-ant,batik-awt-util-1.6,JasperBabylon-1.0.0,jboss-logmanager-log4j-1.0.0.GA-sources,jasperreports-extensions-1.3.1,saaj,commons-fileupload,batik-xml-1.6,commons-codec-1.2,jaxrpc,,jboss-logging-3.0.0.GA-sources,commons-logging-1.1.1,jakarta-oro,struts-menu-2.4.3,commons-discovery-0.2,commons-validator,servlet,batik-util-1.6,batik-dom-1.6,servletapi-2.4,jboss-logmanager-1.2.0.GA-sources,junit-3.8.1,wsdl4j-1.5.1,cewolf-1.0,commons-digester,commons-net-1.0.0-dev,commons-beanutils,batik-svggen-1.6,commons-collections,bsf,ibmjsse,cewolf-1.1.12,commons-httpclient-3.0-rc2,jcommon-1.0.0,jcommon-1.0.15,httpunit,jfreechart-demo-1.0.0,mail-1.4.1,JimiProClasses,log4j-1.2.16,struts,mysql-connector-java-5.0.4-bin,jxl,quartz-2.2.0,poi-ooxml-3.9,poi-scratchpad-3.9,jfreechart-1.0.12,itext-1.3.1,wsc-22,castor-0.9.5.2,jasperreports-1.3.3,poi-3.9,enterprise,xmlbeans-2.6.0,poi-ooxml-schemas-3.9,nsws-2013_2.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

raghu tammina wrote:
i am using following jars in my classpath,



Are you talking about the compile time classpath? That doesn't play a role at runtime/deployment time. What jars are packaged within the deployed application? See this related thread for finding jars containing that class http://www.coderanch.com/t/632035/JBoss/JBOSS-Deployment#2894471
 
raghu tammina
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jai,

Thanks for your help.

All default jars which comes along with jboss and two more jars i have added axis and Mysql-connector are used while deploying.

I forgot to tell you one thing,If i does not add org.apache.sling.commons.log-2.0.6.jar then i'm getting following exception.


org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
 
raghu tammina
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai jai,

Thanks alot...i got the solution for this..

i have used tattletale tool which you suggested.

Problem with ibmjsse.jar ,removed it then works ...
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to know it worked and thank you for posting the solution.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!