[jboss-dev-forums] [EJB 3.0 Development] - Re: javax.naming.NameNotFoundException: QName_ejb_vehicle no
jaikiran
do-not-reply at jboss.com
Fri Dec 4 02:04:43 EST 2009
I don't have the details of those tests, so i am not sure what exactly might be going on. But looking at the stacktrace, it appears to be an application client which appears to be doing a JNDI lookup and running into a NameNotFoundException. Looking the ENC of that application client:
+- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
| +- metaData (class: org.jboss.metadata.client.jboss.JBossClientMetaData)
| +- env (class: org.jnp.interfaces.NamingContext)
| | +- ejb (class: org.jnp.interfaces.NamingContext)
| | | +- EJBVehicle[link -> SOAPFaultException_ejb_vehicle] (class: javax.naming.LinkRef)
| +- classPathEntries (class: java.util.ArrayList)
|
I think the right jndi name to use would be java:comp/env/ejb/EJBVehicle in the lookup.
A bit weird part in that exception stacktrace is, it probably isn't reporting the jndi name which is leading to this exception. For example, i see this in the stacktrace:
javax.naming.NameNotFoundException: SOAPFaultException_ejb_vehicle not bound
and also this:
javax.naming.NameNotFoundException: QName_ejb_vehicle not bound
It would be weird if the code is really looking up "SOAPFaultException_ejb_vehicle" or "QName_ejb_vehicle".
As a side note, you probably would want to see this http://www.jboss.org/community/wiki/HowtouseanapplicationclientinJBoss-5, just in case it's a configuration issue.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268926#4268926
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268926
More information about the jboss-dev-forums
mailing list