For your resource ref you would have to use a lookup like:

new InitialContext.lookup("java:comp/env/jdbc.atalk")

but your probably doing:

new InitialContext.lookup("java:comp/env/jdbc/atalk")

The JBoss jnp JNDI provider uses '/' as name component seperators. Your
probably used to the weblogic '.' as a seperator. The correct resource-ref
for the latter lookup is:

<web-app>
   <resource-ref>
        <res-ref-name>jdbc/atalk</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>       
    </resource-ref>

You will most likely need to change your database pool jndi name as well.

----- Original Message ----- 
From: "Scott Bermon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 12:05 PM
Subject: [JBoss-user] javax.naming.NameNotFoundException: jdbc not bound


> I know that this question has been asked a few times, but
> none of the responses that I've read have got me through
> this.
> 
> I'm running the jBoss with Embedded Tomcat:
> 
> [EmbeddedTomcatSX] Starting
> [EmbeddedTomcatSX] Starting EmbeddedTomcatSX....
> 2001-06-11 01:28:56 - ContextManager: Adding context Ctx( /examples )
> 2001-06-11 01:28:56 - ContextManager: Adding context Ctx( /admin )
> [EmbeddedTomcatSX] Starting tomcat. Check logs/tomcat.log for error messages
> 2001-06-11 01:28:56 - ContextManager: Adding context Ctx(  )
> 2001-06-11 01:28:56 - ContextManager: Adding context Ctx( /test )
> 2001-06-11 01:28:57 - PoolTcpConnector: Starting HttpConnectionHandler 
> on 8080
> 2001-06-11 01:28:57 - PoolTcpConnector: Starting Ajp12ConnectionHandler 
> on 8007
> [EmbeddedTomcatSX] OK
> [EmbeddedTomcatSX] Started
> 
> 
> I've added the resource tag to my web.xml within the war file
> that contains the servlet that connects to the database:
> <web-app>
>   <resource-ref>
>        <res-ref-name>jdbc.atalk</res-ref-name>
>        <res-type>javax.sql.DataSource</res-type>
>        <res-auth>Container</res-auth>       
>    </resource-ref>
>   
> 
> The [Auto deploy] says that the datasource is Linked (does this mean 
> bound?):
> 



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to