Yes, I am also using Hibernate with mysql in the back end. Here is the thing, I have my application working with data sources and hibernate using glassfish, and I am just trying to deploy the same WAR into Tomcat and get it working with Tomcat. The hibernate jars are in my WAR, and the mysql jars are in my WAR and in TOMCAT/lib. Before trying to use Datasources with Tomcat, I had Hibernate and Mysql working fine without data sources. So I guess my JARs are in the right place, I don't know.
It's just that my requirements changed, and now I have to deploy to Tomcat using datasources. I know some web apps tell you what datasources are deployed. Is there anyway of finding out if the datasource "jdbc/workout_logger" is actually available? I mean, it's entirely possible that the datasource enabling works and I just can't use it with Hibernate or something. But it could also just be a configuration issue that is just not working. - Arturo Caldarale, Charles R wrote: > >> From: arturoguedez [mailto:arturo.gue...@gmail.com] >> Subject: Re: Tomcat 6 JDBC connection not found > > I'm confused. > > Here it says you're using MySQL: > >> <Resource name="jdbc/workout_logger" auth="Container" >> type="javax.sql.DataSource" >> maxActive="100" maxIdle="30" maxWait="10000" >> username="user" password="password" >> driverClassName="com.mysql.jdbc.Driver" >> url="jdbc:mysql://localhost:3306/workout_logging?autoReconnect=true"/> > > But the stack trace shows a hibernate connection being attempted: > >> org.hibernate.connection.DatasourceConnectionProvider.configure >> (DatasourceConnectionProvider.java:75) > > Is it your intention to use hibernate in front of MySQL? (I know it can > be done, I'm not clear on how to do it.) > > Where are the hibernate jars located? > > Where is the MySQL driver jar located? > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Tomcat-6-JDBC-connection-not-found-tp21120259p21154216.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org