java.lang.NoClassDefFoundError: org/jboss/logging/Logger
dapissarenko Jun 26, 2002 4:55 PMHello!
I have a simple client application with the following code:
try
{
...
Object ref = jndiContext.lookup("JBossTest/HelloWorldBean");
System.out.println("Got reference");
HelloWorldHome home = (HelloWorldHome)PortableRemoteObject.narrow(ref, HelloWorldHome.class);
/* Error occurs on the following line */
HelloWorld helloWorld = home.create();
System.out.println("Results of helloWorld.sayHello() is :" + helloWorld.sayHello());
...
}
catch (...)
{
}
When I try to get the remote interface by
HelloWorld helloWorld = home.create();
the exception "java.lang.NoClassDefFoundError: org/jboss/logging/Logger" is thrown. The stack trace is:
java.lang.NoClassDefFoundError: org/jboss/logging/Logger
at org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:25)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.jboss.invocation.MarshalledValueOutputStream.class$(MarshalledValueOutputStream.java:26)
at org.jboss.invocation.MarshalledValueOutputStream.(MarshalledValueOutputStream.java:28)
at org.jboss.invocation.MarshalledValue.(MarshalledValue.java:47)
at org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:317)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1172)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at ebjtest.HelloWorldClient.main(HelloWorldClient.java:27)
Exception in thread "main"
Does someone know what the meaning of the exception "java.lang.NoClassDefFoundError: org/jboss/logging/Logger" is and how to solve this problem?
Thanks
Dimitri Pissarenko