Ex 4_01a client issue
gv_web Dec 23, 2003 2:47 AM
"gv_web" wrote:"gv_web" wrote:
I am using JDK 1.4, JBOSS 4.0 DR2. The Bean gets deployed fine. But the client gets a no class def error.
Buildfile: build.xml
prepare:
compile:
ejbjar:
run.client_41a:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBeanSupport
[java] at java.lang.ClassLoader.defineClass0(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[java] at java.lang.ClassLoader.defineClass0(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:219)
[java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:154)
[java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
[java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
[java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
[java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
[java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
[java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
[java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
[java] at java.io.ObjectInputStream.skipCustomData(ObjectInputStream.java:1810)
[java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1772)
[java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
[java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
[java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
[java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
[java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
[java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
[java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
[java] at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:113)
[java] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
[java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
[java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
[java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
[java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
[java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
[java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
[java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
[java] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
[java] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:479)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
[java] at com.titan.clients.Client_1.main(Client_1.java:19)
[java] Java Result: 1
BUILD SUCCESSFUL
Should'nt the ant script take care of setting the classpath correctly? I echoed the classpath for client:
run.client_41a:
[echo] /scratch/jboss/jboss-4.0.0DR2/client/jboss-common-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jnp-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-system-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/log4j.jar:/scratch/jboss/jboss-4.0.0DR2/client/getopt.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-j2ee.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-transaction-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-persistence-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jmx-rmi-connector-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jmx-ejb-connector-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jmx-connector-client-factory.jar:/scratch/jboss/jboss-4.0.0DR2/client/concurrent.jar:/scratch/jboss/jboss-4.0.0DR2/client/gnu-regexp.jar:/scratch/jboss/jboss-4.0.0DR2/client/jbosssx-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-jaas.jar:/scratch/jboss/jboss-4.0.0DR2/client/jsse.jar:/scratch/jboss/jboss-4.0.0DR2/client/jcert.jar:/scratch/jboss/jboss-4.0.0DR2/client/jnet.jar:/scratch/jboss/jboss-4.0.0DR2/client/jbossmq-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jbossha-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jbossmqha.jar:/scratch/jboss/jboss-4.0.0DR2/client/jbossjmx-ant.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-jsr77-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-net-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-iiop-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jacorb.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-jms-p2p-client.jar:/scratch/jboss/jboss-4.0.0DR2/client/jboss-all-client.jar:/scratch/jboss/workbook/ex04_1/build/classes:/scratch/jboss/workbook/ex04_1/jndi
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBeanSupport
I am new to jboss and any help is appreciated.