0 Replies Latest reply on Oct 19, 2005 2:46 PM by julienbaboud

    Classloading on JBoss 3.2.7

    julienbaboud

      Hi all,

      I am using jboss 3.2.7 version, having other constraints. I am deploying a Web Service of my own in a .war directory under server/default/deploy/ and as jboss starts i get a ClassNotFoundException, even so the specified class shows up in a jar file that I pointed to by mean of the JBOSS_CLASSPATH environment variable. How could this happen??? Here is the extract of the stack:

      14:24:37,333 INFO [TomcatDeployer] deploy, ctxPath=/msh, warUrl=file:/usr/local/install/dev/jboss/jboss-3.2.7/server/default/deploy/msh.war/
      14:24:39,668 ERROR [Engine] StandardContext[/msh]Error configuring application listener of class hk.hku.cecid.phoenix.message.handler.MSHServletContextListener
      java.lang.ClassNotFoundException: hk.hku.cecid.phoenix.message.handler.MSHServletContextListener


      Also to a larger extent, how do you force jboss to use you own classes (under WEB-INF/lib/ of the web service) rather than those coming with the package and result in conflicts (which seems to be the case when not using the JBOSS_CLASSPATH environment variable). Here is the stack:

      14:43:07,581 INFO [TomcatDeployer] deploy, ctxPath=/msh, warUrl=file:/usr/local/install/dev/jboss/jboss-3.2.7/server/default/deploy/msh.war/
      14:43:10,963 INFO [STDOUT] Info: using property file in /usr/local/install/dev/jboss/jboss-3.2.7/msh.properties.xml
      14:43:11,499 INFO [STDOUT] [10001] Initialization error
      Exception: hk.hku.cecid.phoenix.message.handler.InitializationException
      Message: [10501] Default MessageFactory cannot be instantiated
      Exception: javax.xml.soap.SOAPException
      Message: Failed to create MessageFactory: org.apache.axis.soap.MessageFactoryImpl
      14:43:11,507 INFO [Engine] StandardContext[/msh]Marking servlet msh as unavailable
      14:43:11,511 ERROR [Engine] StandardContext[/msh]Servlet /msh threw load() exception
      javax.servlet.ServletException: Error instantiating servlet class hk.hku.cecid.phoenix.message.handler.MessageServiceHandler


      I know there is information on http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration but this is rather confusing for me as I begin with jboss, and I am unsuccessful so far.

      Thanks for your help!
      Julien