<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    jboss-4.2.0.GA  jboss-commons-client.jar conflict
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/usman.tahir">Usman Mir</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/619755#619755">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello, </p><p>I have an application built in Spring, deployed on <a class="jive-link-external-small" href="http://www.coderanch.com/forums/f-63/JBoss" target="_new">jboss</a>. datasource is defined in a mssql file in jboss/seerver/default/deploy directory. It runs fine. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>There is a web service deployed on jboss as well. When my application tries to access the web service, i encounter a<a class="jive-link-external-small" href="http://download.oracle.com/javase/6/docs/api/java/lang/ClassNotFoundException.html" target="_new">ClassNotFoundException</a> 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. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am using jboss-4.2.0.GA </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The libs in my classpath are </p><p>&lt;classpath&gt; </p><p>&lt;classpathentry kind="src" path="src"/&gt; </p><p>&lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_18"/&gt;</p><p>&lt;classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/&gt; </p><p>&lt;classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/&gt; </p><p>&lt;classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/antlr-2.7.6.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/asm.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/cglib-2.2.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-collections-2.1.1.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/ejb3-persistence.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/fscontext.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-annotations.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-commons-annotations.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-entitymanager.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate-validator.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/hibernate3.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-standard.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/jta.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.11.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/msbase.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/mssqlserver.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/msutil.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/persistence.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-beans.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-core.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jdbc.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-orm.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-tx-2.5.5.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-web.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webmvc.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/sqljdbc4.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/xerces-2.6.2.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/xml-apis.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="C:/Documents and Settings/usman.tahir/Desktop/libs/sso-client.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/xstream-1.3.1.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-ws-core-1.5.4.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-xml-1.5.4.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-oxm-1.5.4.jar"/&gt; </p><p>&lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/saaj-impl-1.3.2.jar"/&gt; </p><p>&lt;classpathentry kind="output" path="WebContent/WEB-INF/classes"/&gt; </p><p>&lt;/classpath&gt; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can any one help me to identify what is causing this conflict? I will be GREATFUL. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Regards, </p><p>Usman </p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/619755#619755">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>