Hi, I bet it's just your webapp code that's looking for "jdbc" instead of "jdbc/myapp" ;) Your config (original: you don't need to do the GlobalResources stuff, your original config is better) looks fine.
Yoav Shapira >-----Original Message----- >From: Mauro Romano Trajber [mailto:[EMAIL PROTECTED] >Sent: Saturday, October 09, 2004 11:34 AM >To: [EMAIL PROTECTED] >Subject: Name jdbc is not bound in this Context > >I have configured the following datasource in >$TOMCAT_HOME/conf/Catalina/localhost/myapp.xml: > ><Context ...> ><Resource name="jdbc/myapp" type="javax.sql.DataSource"/> ><ResourceParams name="jdbc/myapp"> ><parameter><name>factory</name><value>org.apache.commons.dbcp.BasicData Sour >ceFactory</value></parameter> ><parameter><name>driverClassName</name><value>com.mysql.jdbc.Driver</va lue> ></parameter> ><parameter><name>url</name><value>jdbc:mysql://localhost/myappt</value> </pa >rameter> >... ></ResourceParams> ></Context> > >Then in my web.xml: >... ><resource-ref> ><res-ref-name>jdbc/myapp</res-ref-name> ><res-type>javax.sql.DataSource</res-type> ><res-auth>Container</res-auth> ></resource-ref> >... > >I'm trying to use Hibernate throung Hibernate Synchronizer Eclipse >Plugin, using JNDI. But I keep getting the error: > >javax.naming.NameNotFoundException: Name jdbc is not bound in this Context > >What's missing ? > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
