4 Replies Latest reply on Aug 9, 2002 10:53 AM by lkmanda

    testing the client

    aamarnazir

      hi
      i deploy the statless sessin bean in JBOSS under windows 2000. i test the ejb using a simple client but i find the exception "ClassNotFound org/jboss/logging/Logger"

      i can not find this file in any jar file that present in the lib directory. please help me where i can find this file.

      thanks

        • 1. Re: testing the client

          It is in
          client/jboss-common-client.jar

          Regards,
          Adrian

          • 2. Re: testing the client
            lkmanda

            Does any one know why iam gettign this error after adding jboss-common-client.jar to my classpath

            iam using jboss3.0.1RC1 and trying to access Sessionbean from simple java client and at ctx.lookup(), it fails and throws me below error message..


            -- Initializing bean access.
            before Initial Context
            after initial Context
            context is not null
            ctx.lookup()
            Exception in thread "main" java.lang.ExceptionInInitializerError
            at sun.rmi.runtime.Log$LoggerLogFactory.createLog(Log.java:155)
            at sun.rmi.runtime.Log.getLog(Log.java:121)
            at sun.rmi.server.LoaderHandler.(LoaderHandler.java:60)
            at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629)
            at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
            at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.jav
            a:200)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:150
            3)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
            616)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
            at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
            at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:169)
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:995)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:441)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:434)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at com.basystems.netman.cmmgr.BasEntityTestClient.(BasEntityTestCl
            ient.java:58)
            at com.basystems.netman.cmmgr.BasEntityTestClient.main(BasEntityTestClie
            nt.java:225)
            Caused by: java.lang.IllegalArgumentException: Null charset name
            at java.nio.charset.Charset.lookup(Charset.java:376)
            at java.nio.charset.Charset.isSupported(Charset.java:405)
            at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:67)

            at java.io.OutputStreamWriter.(OutputStreamWriter.java:93)
            at java.util.logging.StreamHandler.setOutputStream(StreamHandler.java:11
            6)
            at java.util.logging.StreamHandler.(StreamHandler.java:92)
            at sun.rmi.runtime.Log$InternalStreamHandler.(Log.java:261)
            at sun.rmi.runtime.Log$1.run(Log.java:169)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.runtime.Log$LoggerLog.(Log.java:165)
            ... 19 more


            Ur Response is appreciated.
            Thanks
            leela

            • 3. Re: testing the client

              > Caused by: java.lang.IllegalArgumentException: Null
              > charset name
              > at java.nio.charset.Charset.lookup(Charset.java:376)
              > at
              > java.nio.charset.Charset.isSupported(Charset.java:405)
              >
              > at
              > sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamE
              > coder.java:67)
              >
              > at
              > java.io.OutputStreamWriter.(OutputStreamWriter.j
              > va:93)
              > at
              > java.util.logging.StreamHandler.setOutputStream(Stream
              > andler.java:11
              > 6)
              > at
              > java.util.logging.StreamHandler.(StreamHandler.j
              > va:92)
              > at
              > sun.rmi.runtime.Log$InternalStreamHandler.(Log.j
              > va:261)

              It looks like you have a problem with the
              new java 1.4 java.util.logging used by rmi.

              Some problem with the character set?

              Regards,
              Adrian

              • 4. Re: testing the client
                lkmanda

                I tried with jdk1.31 also .. it seems my charset on my local computer seems to be corrupted.

                How to restore it.

                Thanks.
                Leela