2 Replies Latest reply on Aug 27, 2002 9:44 AM by Adrian Brock

    Unable to connect local client to local EJB Object

    Aaron Lee Newbie

      Hi, I am trying to connect a local test client to a EJB with local home interface. I specified all the necessary tags in jboss-web.xml and web.xml and successfully deployed it in JBoss 3.0. The local interface is valid as can be seen in JNDIView. Unfortunately when I run the client I obtain the following error messages:

      =======================
      I am using JBoss 3.0 with Tomcat 4.0.3 embedded with Java 1.4.0_01. It seems to me the error is:

      java.lang.NoClassDefFoundError: org/jboss/system/Service

      but I don't which which jar file should I include, help please! -Aaron
      =======================

      C:\j2sdk1.4.0_01\bin\javaw.exe -classpath C:\j2sdk1.4.0_01\jre\lib\rt.jar;C:\j2sdk1.4.0_01\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.0_01\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.0_01\jre\lib\ext\localedata.jar;C:\j2sdk1.4.0_01\jre\lib\ext\sunjce_provider.jar;G:\jboss-3.0.0_tomcat-4.0.3\server\all\lib\javax.servlet.jar;G:\jboss-3.0.0_tomcat-4.0.3\server\all\lib\jboss-j2ee.jar;G:\jboss-3.0.0_tomcat-4.0.3\server\all\lib\jnet.jar;G:\jboss-3.0.0_tomcat-4.0.3\client\jboss-client.jar;G:\jboss-3.0.0_tomcat-4.0.3\client\jbosssx-client.jar;G:\jboss-3.0.0_tomcat-4.0.3\client\log4j.jar;G:\jboss-3.0.0_tomcat-4.0.3\client\jnp-client.jar;G:\jboss-3.0.0_tomcat-4.0.3\client\jboss-common-client.jar;G:\j2eeDEV\example2;G:\jboss-3.0.0_tomcat-4.0.3\server\all\lib\jboss.jar imageserver.client.ImageServerLocalClient
      java.lang.NoClassDefFoundError: org/jboss/system/Service
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      at java.lang.Class.getDeclaredFields0(Native Method)
      at java.lang.Class.privateGetDeclaredFields(Class.java:1480)
      at java.lang.Class.getField0(Class.java:1713)
      at java.lang.Class.getDeclaredField(Class.java:1176)
      at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1404)
      at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:45)
      at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:331)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.ObjectStreamClass.(ObjectStreamClass.java:329)
      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:249)
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:444)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1830)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1756)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
      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.MarshalledValuePair.get(MarshalledValuePair.java:30)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:449)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at imageserver.client.ImageServerLocalClient.main(ImageServerLocalClient.java:26)
      Exception in thread "main" Process terminated with exit code 1