3 Replies Latest reply on Jul 15, 2011 1:22 PM by asmoores

    Problem running ejb3 tutorial

    asmoores Newbie

      Hello

       

      I can't get the tutorial to run.  I have JDK5 and JBoss 5 on Mac OS X.  When I execute mvn install -PRunSingleTutorial in the stateless folder I get the error below. JBoss is starting up as I can access the console when the mvn task is running.

       

      Any help gratefully received.

       

      Regards

      Andrew

       

      [INFO] Executing tasks

           [echo] *********************************** JBoss EJB3 Tutorials ***********************************

           [echo] **** Running org.jboss.tutorial.stateless.client.Client

           [java] Exception in thread "main" javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException]

           [java]           at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1472)

           [java]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:818)

           [java]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)

           [java]           at javax.naming.InitialContext.lookup(InitialContext.java:392)

           [java]           at org.jboss.tutorial.stateless.client.Client.main(Client.java:34)

           [java] Caused by: java.lang.reflect.UndeclaredThrowableException

           [java]           at $Proxy0.createProxyBusiness(Unknown Source)

           [java]           at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)

           [java]           at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

           [java]           at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)

           [java]           at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

           [java]           at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1447)

           [java]           at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1464)

           [java]           ... 4 more

           [java] Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.proxy.intf.EjbProxy

           [java]           at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)

           [java]           at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)

           [java]           at java.lang.Class.forName0(Native Method)

           [java]           at java.lang.Class.forName(Class.java:247)

           [java]           at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveProxyClass(ObjectInputStreamWithClassLoader.java:253)

           [java]           at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1530)

           [java]           at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1492)

           [java]           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)

           [java]           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

           [java]           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

           [java]           at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:119)

           [java]           at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)

           [java]           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)

           [java]           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

           [java]           at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

           [java]           at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

           [java]           at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

           [java]           at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

           [java]           at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

           [java]           at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)

           [java]           at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)

           [java]           at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)

           [java]           at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)

           [java]           at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)

           [java]           at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)

           [java]           at org.jboss.remoting.Client.invoke(Client.java:1724)

           [java]           at org.jboss.remoting.Client.invoke(Client.java:629)

           [java]           at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

           [java]           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

           [java]           at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:72)

           [java]           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

           [java]           at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

           [java]           at $Proxy0.createProxyBusiness(Unknown Source)

           [java]           at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)

           [java]           at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

           [java]           at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)

           [java]           at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

           [java]           at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1447)

           [java]           at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1464)

           [java]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:818)

           [java]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)

           [java]           at javax.naming.InitialContext.lookup(InitialContext.java:392)

           [java]           at org.jboss.tutorial.stateless.client.Client.main(Client.java:34)

           [java]           at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

           [java]           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

           [java]           at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:72)

           [java]           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

           [java]           at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

           [java]           ... 11 more