Re: JBOSS 5.1 help
George Thomas <[email protected]>
| Newsgroups | gmane.org.user-groups.ajug.members |
|---|---|
| Message-ID | <CAAOyL_7=Lrs-YU6Sr-zvu5shubBZh01m2_WZh_bBN4S5en=bTQ@mail.gmail.com> |
On Fri, Sep 13, 2013 at 11:57 AM, Mike Barnes <[email protected]> wrote: > I am in the process of migrating a Websphere 6.1 application with ejbs to > JBOSS 5.1 and am getting an error with JNDI binding. > > Since, the application works on Websphere, I am not sure what I need to do > to get the binding to work on JBOSS. I am using a oracle-ds.xml file which > is deployed to the deploy directory and it appears that everything is > deploying correctly, however, when I try to use the jndi connection I get > the following error. > > javax.naming.NameNotFoundException: MyDataSource not bound > org.jnp.server.NamingServer.getBinding(NamingServer.java:771) > org.jnp.server.NamingServer.getBinding(NamingServer.java:779) > If this is a lookup within the same VM, you might be missing resource references (using web.xml and jboss-web.xml) that will help the lookup work. If you are using JBoss EAP 5.1 and not WildFly (formerly known as JBoss AS), https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html-single/Administration_And_Configuration_Guide/index.html#Naming_on_JBoss-J2EE_and_JNDI___The_Application_Component_Environment has some notes that might help. regards george