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
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
> 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
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
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
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
> 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
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
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
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
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
11 matches
Mail list logo