Lomboz tutorial problems in ch5
d3nn1503 Nov 2, 2003 2:00 AMHi, I am getting a *javax.naming.NameNotFoundException: ejb not bound*
error in chapter 5. This is occuring while running the ejb test client for the customer. here's the stack trace:
----
03:10:41,630 INFO [STDOUT] Entering StoreAccessBean.ejbCreate()
03:10:41,690 ERROR [STDERR] javax.naming.NameNotFoundException: ejb not bound
03:10:41,690 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
03:10:41,690 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
03:10:41,690 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
03:10:41,690 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
03:10:41,690 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
03:10:41,690 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
03:10:41,690 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
03:10:41,690 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
03:10:41,690 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:347)
03:10:41,690 ERROR [STDERR] at au.com.tusc.bmp.CustomerUtil.getLocalHome(CustomerUtil.java:67)
03:10:41,690 ERROR [STDERR] at au.com.tusc.session.StoreAccessBean.ejbCreate(StoreAccessBean.java:74)
03:10:41,690 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
03:10:41,690 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
03:10:41,690 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
03:10:41,690 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseContext.java:52)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:35)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:58)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
03:10:41,690 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
03:10:41,701 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
03:10:41,701 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
03:10:41,701 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
03:10:41,701 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:674)
03:10:41,701 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
03:10:41,701 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
03:10:41,701 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
03:10:41,701 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
03:10:41,701 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
03:10:41,701 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
03:10:41,701 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
03:10:41,701 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
03:10:41,701 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
03:10:41,701 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
03:10:41,701 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
03:10:41,701 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
03:10:41,701 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:148)
03:10:41,701 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
03:10:41,701 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
03:10:41,701 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
03:10:41,701 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
03:10:41,701 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
03:10:41,701 INFO [STDOUT] Leaving StoreAccessBean.ejbCreate()
03:10:41,701 INFO [STDOUT] Entering StoreAccessBean
03:10:41,701 INFO [STDOUT] Leaving StoreAccessBean
03:10:41,731 INFO [STDOUT] Entering StoreAccessDAOImpl.init()
03:10:41,731 INFO [STDOUT] Leaving StoreAccessDAOImpl.init()
03:10:41,731 INFO [STDOUT] Entering StoreAccessDAOImpl.loginUser()
03:10:41,751 INFO [STDOUT] UserID is: U2
03:10:41,761 INFO [STDOUT] Leaving StoreAccessDAOImpl.init()
03:10:41,821 INFO [STDOUT] Entering StoreAccessBean.getCustomerData()
03:10:41,821 INFO [STDOUT] Error in StoreAccessBean.getCustomerData()java.lang.NullPointerException
03:10:41,821 INFO [STDOUT] Leaving StoreAccessBean.getCustomerData()
-----
i suspect that it has something to do with the
jboss.xml configuration. i have made the correction that is suggested ( <ejb-ref> ---> <ejb-local-ref>) by vishal, but I still get the error.
i assume that others have ran into this problem. any suggestions on how to resolve this issue will be appreciated, thanks.
dennis