Scott what is the actual lookup you are performing? it should appear as

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("jdbc.atalk");

Al


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Bermon
Sent: Monday, June 11, 2001 3:05 PM
To: [EMAIL PROTECTED]
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>




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

Reply via email to