[jboss-user] [JNDI/Naming/Network] - Re: EJB3: @Resource name only EJBContext, not in InitialCont
wingtung.leung
do-not-reply at jboss.com
Fri Feb 15 07:44:30 EST 2008
"jaikiran" wrote : Which version of JBoss do you use? I tested this on my local JBoss-4.2.2 setup with an sample application:
|
JBoss-4.0.5 with extra EJB3 support.
I have tested it on JBoss-4.2.2, and it works fine there. So we will need to update our EJB3 component, or upgrade JBoss completely.
The original exception:
| Exception in thread "Main Thread" javax.naming.NameNotFoundException: env not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
|
Thanks for the solution!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129627#4129627
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129627
More information about the jboss-user
mailing list