[jboss-user] [EJB/JBoss] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam
thomas2008ch
do-not-reply at jboss.com
Thu May 8 03:25:47 EDT 2008
The exception of compatabability obve is resolved.
Client
Now I got another exception:
Exception in thread "main" javax.ejb.EJBException: Invalid invocation of local interface (null container)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:77)
at $Proxy0.test(Unknown Source)
at com.wei.chen.TestClient.main(TestClient.java:27)
And here is my code of "TestClient.java":
...
Context context;
try {
context = new InitialContext();
MyBeanLocal beanLocal = (MyBeanLocal) context.lookup(TestMyBean.LocalJNDIName);
beanLocal.test("Wei Chen");
} catch (NamingException e) {
e.printStackTrace();
}
...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149329#4149329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149329
More information about the jboss-user
mailing list