问题描述
- Jboss7 里面 com.sun.proxy.$Proxy0 cannot be cast to com.ejb.impl.HelloWorldImpl
- Hashtable jndiProperties = new Hashtable();
jndiProperties.put(Context.URL_PKG_PREFIXESorg.jboss.ejb.client.naming"");try { Context initial=new InitialContext(jndiProperties); Object hello= initial.lookup (""ejb:/hello/HelloWorldImpl!com.ejb.HelloWorld""); HelloWorldImpl ho=(HelloWorldImpl)hello; System.out.print(ho.Hello(""""));
出现错误如题。。麻烦大神指点一下。我刚学EJB.
时间: 2024-11-05 04:54:23