Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread arturoguedez
Hi Filip, I found the problem. It had to do with how a datasource is retrieved from the data context. I found this out after digging in the source code of Hibernate. It seems, like when I wrote a simple servlet to get a connection like this: String datasourceName = "jdbc/workout_logger" Context

Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread Filip Hanik - Dev Lists
check the logs earlier, if you havent moved the mysql-xxx.jar into TC_HOME/lib, then tomcat can't create the connection pool, and the JDBC name will not exist Filip arturoguedez wrote: The error hasn't actually changed from the one I posted originally. Is there any way of changing Tomcat's lo

RE: Tomcat 6 JDBC connection not found

2008-12-23 Thread Caldarale, Charles R
> From: arturoguedez [mailto:arturo.gue...@gmail.com] > Subject: RE: Tomcat 6 JDBC connection not found > > > The hibernate jars are in my WAR, and the mysql jars > are in my WAR and in TOMCAT/lib. There's one problem: the MySQL jars must be *only* in Tomcat's lib dire

Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread arturoguedez
The error hasn't actually changed from the one I posted originally. Is there any way of changing Tomcat's logging to display more information? I know there is a reference to a Ejb3Configuration.buildEntityManagerFactory but i am not actually using EJB3's. I am just using the EntityManagers/EntityM

RE: Tomcat 6 JDBC connection not found

2008-12-23 Thread arturoguedez
g. 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 s

Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread Filip Hanik - Dev Lists
post the actual error you see with the new config arturoguedez wrote: Thanks for the help. I just tried it and it still does work. Here is the exact content of my current server.xml and my context.xml Server.xml: url="jdbc:mysql://localhost:3306/w

RE: Tomcat 6 JDBC connection not found

2008-12-23 Thread Caldarale, Charles R
> 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: > type="javax.sql.DataSource" >maxActive="100" maxIdle="30" maxWa

Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread arturoguedez
Thanks for the help. I just tried it and it still does work. Here is the exact content of my current server.xml and my context.xml Server.xml: Context.xml WEB-INF/web.xml I check and my

Re: Tomcat 6 JDBC connection not found

2008-12-22 Thread Filip Hanik - Dev Lists
put this inside the in server.xml Put this inside the elemement in conf/context.xml and try again Filip arturoguedez wrote: hey, sorry about that. The actual string I have in my app is "workout_logger" I just tried to replace my strings for "my_jdbc_name" for the posting. I guess I f

Re: Tomcat 6 JDBC connection not found

2008-12-22 Thread arturoguedez
hey, sorry about that. The actual string I have in my app is "workout_logger" I just tried to replace my strings for "my_jdbc_name" for the posting. I guess I forgot to rename the in the error. other than that, do you see anything else wrong? Filip Hanik - Dev Lists wrote: > > here is the nam

Re: Tomcat 6 JDBC connection not found

2008-12-22 Thread Filip Hanik - Dev Lists
here is the name you specify jdbc/my_jdbc_name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasource