I followed the 5-minute Tutorial on Enterprise Application Development with
Eclipse and Geronimo. And in my web client the EJB works fine. However, when
I tested it in my application client, as following:
public class Main{
@EJB
private static RemoteBusinessInterface remoteBusinessIntf;
public static void main(String[] args) {
System.out.println(remoteBusinessIntf.sayHello("justin"));
}
I got this error:Exception in thread "main" java.lang.NullPointerException.
Can anyone help me out?
Thanks a lot.
-----
--
Best Wishes!
Justin Tsao
--
View this message in context:
http://www.nabble.com/Exception-in-thread-%22main%22-java.lang.NullPointerException--tf4943169s134.html#a14150835
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.