[jboss-user] [JBoss Tools] - [AS 7.1] missing JARs for JNDI lookup in client
Wolfgang Knauf
do-not-reply at jboss.com
Mon Feb 13 15:27:59 EST 2012
Wolfgang Knauf [https://community.jboss.org/people/WolfgangKnauf] created the discussion
"[AS 7.1] missing JARs for JNDI lookup in client"
To view the discussion, visit: https://community.jboss.org/message/716322#716322
--------------------------------------------------------------
Hi all,
I tried to build an EJB remote client following this tutorial: https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI
It seems that the JBoss Tools server runtime for JBoss 7.1 misses quite a bunch of JARs required to start the client. Just for the records: it started with this error when doing a JNDI lookup:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
Finally I managed to call my EJB by adding the JARs in the attached screenshot to my build path (sorry for posting a screenshot of the file list, but I you require a copy/paste capable list, I can post it here, too ;-) ).
Is this a known issue or maybe already fixed, or shall I create a JIRA?
Best regards
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/716322#716322]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120213/9be1ae8b/attachment.html
More information about the jboss-user
mailing list