NoClassDefFound again
kerstin Mar 21, 2002 7:05 AMHello,
I've a problem in running my client-application.
All work fine until the following lines:
serviceHome = (ServiceProviderHome) PortableRemoteObject.narrow(ctx.lookup("userSession"),ServiceProviderHome.class);
serviceRemote = serviceHome.create();
In the ejbCreate-method of the Bean ServiceProvider (Bean UserSession exended this one and use this ejbCreate-method) a function named "initialize" is called. In this function the first step is to call the method "getInitialContext" of the class EJBUtilities in the package com/werum/pasx/foundation/utilitiesServer. And strictly in this point following exeption occured:
[11:12:22,858,UserSessionBean] TRANSACTION ROLLBACK EXCEPTION:
javax.transaction.TransactionRolledbackException: com/werum/pasx/foundation/utilitiesServer/EJBUtilities; nested exception is:
java.lang.NoClassDefFoundError: com/werum/pasx/foundation/utilitiesServer/EJBUtilities
java.lang.NoClassDefFoundError: com/werum/pasx/foundation/utilitiesServer/EJBUtilities
at com.werum.pasx.foundation.utilitiesServer.services.ServiceProvider.initialize(ServiceProvider.java:96)
at com.werum.pasx.foundation.utilitiesServer.services.ServiceProvider.ejbCreate(ServiceProvider.java:85)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.createSession(StatefulSessionFilePersistenceManager.java:170)
at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:389)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:606)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:102)
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:119)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:142)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:103)
at org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionContainer.java:324)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:387)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I can't explain this exception myself, because the deployed jar-file which contains the Bean ServiceProvider also contain the class EJBUtilities which is looking for.
Have somebody of you an idea, how I can solve my problem?
Kerstin