2 Replies Latest reply on Jul 31, 2002 5:10 PM by Stefan Tamasi

    what is correct CLASSPATH and where to set it?

    scott Newbie

      When I startup jboss (run -c all), the jboss.net module does not load - it gives me:

      19:38:05,169 ERROR [MainDeployer] could not start deployment: file:/usr/local/jboss-3.0.0/server/all/deploy/jboss-net.sa
      r
      java.lang.NoSuchMethodError: org.apache.axis.deployment.wsdd.WSDDService.getQName()Ljavax/xml/rpc/namespace/QName;
      at org.jboss.net.axis.Deployment.deployService(Deployment.java:118)
      [many more error lines like the one above]


      I am pretty sure this is because I do not have the correct classpath set. I have the environment variables (JAVA_HOME, J2EE_HOME, JBOSS_DIST & JBOSS_HOME, ANT... etc.) set, but when the jboss server starts up and it shows the variables, it says

      CLASSPATH: /usr/local/jboss-3.0.0/bin/run.jar:/usr/local/java/lib/tools.jar


      Java environment is j2sdk1.4 and j2ee1.3.1.

      Any guidance?

        • 1. Re: what is correct CLASSPATH and where to set it?
          scott Newbie

          update on the above problem:

          Out of frustration, I moved all of the 3rd-party/add-on jar files (xerces, soap, etc.) that were in $JAVA_HOME into the server/all/lib directory and that problem went away. (QName was in soap.jar, but soap.jar needed to be in server/all/lib.) Now I get a LinkageError when the Code.class is used. JBoss says the class already exists so it fails to deploy. This class is in the tt-bytecode.jar file, but I only have one copy of tt-bytecode.jar, so I'm still on the outside looking in.

          • 2. Re: what is correct CLASSPATH and where to set it?
            Stefan Tamasi Newbie

            Which version of axis do you use? I had similiar exceptions when I tried to change axis to Beta3 version (jboss.net uses still Beta1, Beta3 version interface changed)