that error looks like a name is specified incorrectly in web.xml file,
either the global name of the datasource or the local name of that
connection to the global data source more likely.

the local instance of the global data source name should be specified
explicity in a server.xml context and explicity in the web.xml file.
-paul.

----- Original Message ----- 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Mark Matthews" <[EMAIL PROTECTED]>
Cc: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 09, 2004 1:26 PM
Subject: Re: JNDI Datasource Reference in DD Not Necessary?


> > You don't want to do this, as Tomcat's DBCP doesn't wrap connection pool
> > data sources currently (or if they do, I can't find it documented
anywhere).
> >
> > If you follow the example given in the Tomcat documentation
> > _to_the_letter_ things work out fine. Once you have _that_ working, then
> > start tweaking from there. I've found that trying to plug the right
> > magic values from scratch into server.xml never works as you'd expect.
>
> Ok i've tried following the example
>
> http://200.10.10.14:8080/tomcat-docs/jndi-datasource-examples-howto.html
>
> using the 3.1.x alpha MySQL / JDBC connector and I've tried with the 2.x
> version of the MySQL / JDBC connector and I'm still getting no dice, the
> error is
>
> javax.naming.NameNotFoundException: Name java:comp is not bound in this
> Context
>
> and the only thing changed from the example in the DOCs for the MySQL
> DBCP Example is change the DB name.
>
> I've got the server.xml config (from the example) in the
> $CATALINA_HOME/conf/Catalina/localhost/app_name.xml file instead as it
> seems the most logical place for it (no contexts in the server.xml in TC
> 5 it would seem)
>
> I'm clearly missing something simple here...
>
> TIA for any help
> -- 
> David Smith <[EMAIL PROTECTED]>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to