[jboss-user] [EJB 3.0] - Re: NullPointerException in HelloWorld

2006-07-12 Thread wolfc
Try the following code: InitialContext ctx = new InitialContext(); | | HelloRemote bin = (HelloRemote) ctx.lookup("HelloBean/remote"); It needs some exception handling. Depending on the method of deployment the JNDI name may vary. Look in the JMX console -> JNDIView for the true name. View

[jboss-user] [EJB 3.0] - Re: NullPointerException in HelloWorld

2006-07-12 Thread qbacomarch
And what to do with this NPE?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957249#3957249 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957249 ___ jboss-user mailing list

[jboss-user] [EJB 3.0] - Re: NullPointerException in HelloWorld

2006-07-11 Thread PeterJ
Since your client is a standalone application, the @EJB annotation is ignored. Hence the NPE. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957030#3957030 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957030 ___