Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004
    Posts
    4

    Unanswered: Newbie problem delpoying J2EE onto JBOSS with Eclispe! plz help!

    hi, I am following the Tutorial for building J2EE Applications using JBOSS and ECLIPSE at http://www.tusc.com.au/tutorial/html/chap3.html

    I have followed everything up to the end. It all worked until I ran my application and it gave me these..what's going on? is it becuz I am using different versions of stuff that they're using?

    javax.naming.NameNotFoundException: StoreAccessBean not bound
    at org.jnp.server.NamingServer.getBinding(NamingServe r.java:495)
    at org.jnp.server.NamingServer.getBinding(NamingServe r.java:503)
    at org.jnp.server.NamingServer.getObject(NamingServer .java:509)
    at org.jnp.server.NamingServer.lookup(NamingServer.ja va:282)
    at sun.reflect.GeneratedMethodAccessor37.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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$ConnectionHandl er.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unk nown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:528)
    at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:507)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at au.com.tusc.client.SessionClient.getHome(SessionCl ient.java:26)
    at au.com.tusc.client.SessionClient.testBean(SessionC lient.java:47)
    at au.com.tusc.client.SessionClient.main(SessionClien t.java:67)

  2. #2
    Join Date
    May 2004
    Posts
    4
    I added something like "/**
    * Unsets the session context
    * @param javax.ejb.SessionContext ctx value
    * @ejb.method unsetSessionContext
    *
    **/ "
    and my result became like this but it still didn't work.

    Request from client :
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: RuntimeException; nested exception is:
    java.lang.NullPointerException
    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$ConnectionHandl er.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unk nown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub. invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerPr oxy.invoke(JRMPInvokerProxy.java:135)
    at org.jboss.invocation.InvokerInterceptor.invoke(Inv okerInterceptor.java:96)
    at org.jboss.proxy.TransactionInterceptor.invoke(Tran sactionInterceptor.java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(Securit yInterceptor.java:45)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.in voke(StatelessSessionInterceptor.java:100)
    at org.jboss.proxy.ClientContainer.invoke(ClientConta iner.java:85)
    at $Proxy1.loginUser(Unknown Source)
    at au.com.tusc.client.SessionClient.testBean(SessionC lient.java:54)
    at au.com.tusc.client.SessionClient.main(SessionClien t.java:67)
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
    java.lang.NullPointerException
    at org.jboss.ejb.plugins.LogInterceptor.handleExcepti on(LogInterceptor.java:361)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:195)
    at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalIn voke(StatelessSessionContainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:700)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.mx.capability.ReflectedMBeanDispatcher.i nvoke(ReflectedMBeanDispatcher.java:284)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:546)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invok e(JRMPInvoker.java:367)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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$ConnectionHandl er.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at au.com.tusc.dao.StoreAccessDAOImpl.loginUser(Store AccessDAOImpl.java:67)
    at au.com.tusc.session.StoreAccessSession.loginUser(S toreAccessSession.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.ejb.StatelessSessionContainer$ContainerI nterceptor.invoke(StatelessSessionContainer.java:6 83)
    at org.jboss.resource.connectionmanager.CachedConnect ionInterceptor.invoke(CachedConnectionInterceptor. java:185)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInte rceptor.invoke(StatelessSessionInstanceInterceptor .java:72)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:267)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:128)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(S ecurityInterceptor.java:118)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:191)
    ... 21 more

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •