0 Replies Latest reply on Dec 13, 2005 4:13 PM by Shany Carle

    java.lang.reflect.UndeclaredThrowableException

    Shany Carle Newbie

      Hi here is my error from jboss:

      ERROR [LogInterceptor] EJBException in method: public abstract com.sisca.demo.U106.UserRemote com.sisca.demo.U106.UserHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException, causedBy:java.lang.reflect.UndeclaredThrowableException
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:178)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:78)
       at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90).........


      Here is my log file :

      2005/12/13 15:43:57.809 (I18n): U100.loginDialog.validatingUser found in bundle U100.
      2005/12/13 15:43:58.122 (Infra): ORB created for ORB JBoss
      2005/12/13 15:43:58.137 (Infra): Looking for bean UserRemote in ejb.
      2005/12/13 15:43:58.137 (Infra): Looking up bean ejb/UserRemote.
      2005/12/13 15:43:58.137 (Infra): Using URL jnp://pdt019:1099/ejb/UserRemote.
      2005/12/13 15:43:59.809 (Infra): Bean ejb/UserRemote looked up.
      2005/12/13 15:44:00.387 (App): Error while calling the EJB (java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
       java.rmi.ServerException: EJBException:; nested exception is:
       javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
       null).
      2005/12/13 15:44:00.387 (Logger): Dumping stack trace for exception RemoteException occurred in server thread; nested exception is:
       java.rmi.ServerException: EJBException:; nested exception is:
       javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
       null.
      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
       java.rmi.ServerException: EJBException:; nested exception is:
       javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
       null
       at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292).........


      I think that it must be an error in my classpath. My deployed file is named Demo.jar. DO I have to put Demo.jar in the classpath of my main and in the sources?

      Also what is supposed to be in the classpath and sources of JBOSS when I start it? I'm confused.

      Thank SLAY