3 Replies Latest reply on Apr 26, 2002 5:33 AM by L Stitz

    logger error using db2

    Pete Luellen Newbie

      I'm running JBoss-3.0.0RC1 and trying to implement the CMP-CD example using DB2 as the database.

      I've gone through the steps to create a DB2 data source and the CDBean table is created just fine when I deploy the application. When I try to add records via the Upload client, I get the following: java.lang.NoClassDefFoundError: org/jboss/logging/Logger.

      This problem looks to be identical to the one described in thread http://jboss.org/forums/thread.jsp?forum=46&thread=13041.

      Apparently I should add %JBOSS_DIST%\lib\jboss-common.jar and %JBOSS_DIST%\lib\log4j.jar in my 'beta' classpath.

      What is a 'beta' classpath? I've made those changes to my operating system (NT 4.0) environment classpath with no effect. What classpath needs to be updated?

      Thanks for your help.

        • 1. Re: logger error using db2
          Pete Luellen Newbie

          My guess is this is not a problem with my DB2 configuration. I get the same problem with mySQL -- the cd.jar deploys correctly and a "cdbean" table is created in the mySQL test database.

          When I try to add records via the upload client, I get the following:

          [java] java.lang.NoClassDefFoundError: org/jboss/logging/Logger
          [java] at org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:25)
          [java] at java.lang.Class.forName0(Native Method)
          [java] at java.lang.Class.forName(Class.java:120)
          [java] at org.jboss.invocation.MarshalledValueOutputStream.class$(MarshalledValueOutputStream.java:23)
          [java] at org.jboss.invocation.MarshalledValueOutputStream.(MarshalledValueOutputStream.java:25)
          [java] at org.jboss.invocation.MarshalledValue.(MarshalledValue.java:47)
          [java] at org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:317)
          [java] at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1172)
          [java] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
          [java] at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268)
          [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)
          [java] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
          [java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
          [java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
          [java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
          [java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
          [java] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
          [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
          [java] at $Proxy0.create(Unknown Source)
          [java] at org.jboss.docs.cmp.cd.Upload.uploadFile(Upload.java:72)
          [java] at org.jboss.docs.cmp.cd.Upload.main(Upload.java:38)
          [java] Exception in thread "main"
          [java] Java Result: 1

          Any suggestions?

          • 2. Re: logger error using db2
            Pete Luellen Newbie

            I figured it out:

            I needed to add


            to my ant build script

            • 3. Re: logger error using db2
              L Stitz Newbie

              Hey, great,

              I had the same problem, but this fixed it for me.

              Lots of jars needed nowadays in the classpath...

              Thanks a lot! :)