[jboss-user] [Beginner's Corner] - jboss-4.2.0.GA jboss-commons-client.jar conflict

Usman Mir do-not-reply at jboss.com
Sat Aug 6 03:21:03 EDT 2011


Usman Mir [http://community.jboss.org/people/usman.tahir] created the discussion

"jboss-4.2.0.GA  jboss-commons-client.jar conflict"

To view the discussion, visit: http://community.jboss.org/message/619755#619755

--------------------------------------------------------------
Hello, 
I have an application built in Spring, deployed on  http://www.coderanch.com/forums/f-63/JBoss jboss. datasource is defined in a mssql file in jboss/seerver/default/deploy directory. It runs fine. 

There is a web service deployed on jboss as well. When my application tries to access the web service, i encounter a http://download.oracle.com/javase/6/docs/api/java/lang/ClassNotFoundException.html ClassNotFoundException for org/jboss/logging logger class. I tried to add the jboss-common-client.jar to my classpath. but when i did i got some jar conflict and at server startup, i started getting jndi exception as if there is no object bound with my datasource name. 

I am using jboss-4.2.0.GA 


The libs in my classpath are 
<classpath> 
<classpathentry kind="src" path="src"/> 
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_18"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/> 
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> 
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/antlr-2.7.6.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-2.2.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections-2.1.1.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/ejb3-persistence.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/fscontext.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-annotations.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-commons-annotations.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-entitymanager.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-validator.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate3.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-standard.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jta.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.11.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/msbase.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mssqlserver.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/msutil.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/persistence.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-beans.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-core.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jdbc.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-orm.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-tx-2.5.5.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-web.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webmvc.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/sqljdbc4.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xerces-2.6.2.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xml-apis.jar"/> 
<classpathentry kind="lib" path="C:/Documents and Settings/usman.tahir/Desktop/libs/sso-client.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/xstream-1.3.1.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-ws-core-1.5.4.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-xml-1.5.4.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-oxm-1.5.4.jar"/> 
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/saaj-impl-1.3.2.jar"/> 
<classpathentry kind="output" path="WebContent/WEB-INF/classes"/> 
</classpath> 


Can any one help me to identify what is causing this conflict? I will be GREATFUL. 


Regards, 
Usman
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/619755#619755]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110806/1141021c/attachment-0001.html 


More information about the jboss-user mailing list