4 Replies Latest reply on Oct 24, 2005 9:26 AM by Matrix dfcfdc

    deployment problem

    Matrix dfcfdc Newbie

      i have Jboss 4.0.2.
      i have deployed EJB in the Jboss server/deploy/default folder successfully.
      Now i am getting exception while running the client.....



      java -classpath .;C:\jboss\client\jboss-client.jar;C:\jboss\cl
      ient\jnp-client.jar; Client "golden retriever"
      
      
      
      Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
       at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:143)
       at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingConte
      xtFactory.java:41)
       at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
       at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
       at javax.naming.InitialContext.init(Unknown Source)
       at javax.naming.InitialContext.<init>(Unknown Source)
       at Client.main(Client.java:25)
      



      whats wrong ?

        • 1. Re: deployment problem
          Darran Lofthouse Master

          Instead of the two jars you have put in the classpath have you tried jbossall-client.jar?

          • 2. Re: deployment problem
            Matrix dfcfdc Newbie

            >have you tried jbossall-client.jar

            there is no such jbossall-client.jar in the lib folder of jboss.
            the lib folder contains .....

            commons-httpclient.jar,commons-logging.jar,concurrent.jar,dom4j.jar,getopt.jar,gnu-regexp.jar,jaxen.jar,jboss-common.jar,jboss-jmx.jar,jboss-system.jar,log4j-boot.jar,namespace.jar,webdavlib.jar and endorsed folder which contains xml jars.

            as u see there is no jbossall-client.jar as u mentioned in the C:\jboss\lib

            what i can do then ?

            • 3. Re: deployment problem
              Matrix dfcfdc Newbie

              i tried with adding C:\jboss\lib\commons-logging.jar in the classpath

              java -classpath .;C:\jboss\client\jboss-client.jar;C:\jboss\cl
              ient\jnp-client.jar;C:\jboss\lib\commons-logging.jar; Client "golden retriever
              "
              Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Log
              ger
              at org.jnp.interfaces.NamingContext.(NamingContext.java:143)
              at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingConte
              xtFactory.java:41)
              at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
              at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
              at javax.naming.InitialContext.init(Unknown Source)
              at javax.naming.InitialContext.(Unknown Source)
              at Client.main(Client.java:25)


              NO SUCCESS

              • 4. Re: deployment problem
                Matrix dfcfdc Newbie

                hurrah ...i have found it.

                its in the c:\jboss\client\jbossall-client.jar folder.


                NOW ITS WORKING....YOU ARE A GENEIOUS MAN