2 Replies Latest reply on Oct 21, 2002 1:25 AM by lalmon

    EJB- java.lang.NoClassDefFoundError: org/jboss/logging/Logge

    lalmon Newbie

      I have deployd an EJB in the server .But when I try to run the client application, it shows the following error.

      Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
      at org.jnp.interfaces.NamingContext.(NamingContext.java:89)
      at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory
      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.getInitialContext(Client.java:31)
      at Client.amethod(Client.java:17)
      at Client.main(Client.java:13)

      can anybody help me??
      Also how do we do hot deploymnt in jboss 3.0.2???
      thanx to all....

        • 1. Re: EJB- java.lang.NoClassDefFoundError: org/jboss/logging/L
          prabhakar chaganti Apprentice

          You need to include the "jboss-common-client.jar" from the client directory on your classpath. Take a look at all the jars in that dir. Your client will need at least some of them on the classpath.

          To do hot deployment in jboss, copy the jar,war,ear, *-service.xml file to the deploy dir. That's all!!


          • 2. Re: EJB- java.lang.NoClassDefFoundError: org/jboss/logging/L
            lalmon Newbie

            Thanx a lot Mr Prabhakar
            Well, that error is solved now.but I am getting some error as shown below.
            E:\ejb>java Client
            Connecting to Lalmon
            log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).
            log4j:WARN Please initialize the log4j system properly.
            Exception in thread "main" javax.naming.CommunicationException: Receive timed out. Root
            exception is java.io.InterruptedIOException: Receive timed out
            at java.net.PlainDatagramSocketImpl.receive(Native Method)
            at java.net.DatagramSocket.receive(Unknown Source)
            at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:930)
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1017)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:447)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:440)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at Client.amethod(Client.java:19)
            at Client.main(Client.java:13)
            after deploymnt , server is showing this message. I hope the deployment is fine...
            04:04:55,391 INFO [MainDeployer] Starting deployment of package: file:/E:/jBoss3.2/jboss
            04:04:55,511 INFO [EjbModule] Creating
            04:04:55,541 INFO [EjbModule] Deploying MyBean
            04:04:55,571 INFO [EjbModule] Created
            04:04:55,571 INFO [EjbModule] Starting
            04:04:55,581 INFO [EjbModule] Started
            04:04:55,581 INFO [MainDeployer] Deployed package: file:/E:/jBoss3.2/jboss-3.0.2/server/
            hope to hear from u.....