-
1. Re: jndi reference problem(urgent)?
peterj Dec 15, 2006 10:15 AM (in response to augustfox)Try changing your jboss.xml to:
<resource-ref>
<res-ref-name>jdbc/test</res-ref-name>
<jndi-name>comp/env/jdbc/test</jndi-name>
</resource-ref>
or was it
<resource-ref>
<res-ref-name>comp/env/jdbc/test</res-ref-name>
<jndi-name>jdbc/test</jndi-name>
</resource-ref>
One of those should work. -
2. Re: jndi reference problem(urgent)?
augustfox Dec 17, 2006 8:05 PM (in response to augustfox)thanks PeterJ!
But both still failed.
when try
<resource-ref>
<res-ref-name>jdbc/test</res-ref-name>
<jndi-name>comp/env/jdbc/test</jndi-name>
</resource-ref>
the error is:
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: comp not bound]
and when try
<resource-ref>
<res-ref-name>comp/env/jdbc/test</res-ref-name>
<jndi-name>jdbc/test</jndi-name>
</resource-ref>
the error is:
javax.naming.NameNotFoundException: test not bound -
3. Re: jndi reference problem(urgent)?
peterj Dec 18, 2006 11:22 PM (in response to augustfox)Finally figured it out. Change jboss-web.xml to:
<resource-ref> <res-ref-name>jdbc/test</res-ref-name> <jndi-name>java:jdbc/test</jndi-name> </resource-ref>
-
4. Re: jndi reference problem(urgent)?
augustfox Dec 19, 2006 2:21 AM (in response to augustfox)Thanks PeterJ very much!
Now it works well.
^_^