You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ALEX HYDE <al...@btinternet.com> on 2006/03/07 21:54:34 UTC

Upgrade has broken my jndi

Hi All,

I've seen this one all over the user group but I seem
to have come to a dead end with this. I have upgraded
from tomcat 4 to 5 and I can't seem to get my app
working again. 

The part that has broken is the jndi datasource
look-up. I notice that I'm definitly not the first to
experience this problem. Perhaps things might have
been made a bit clearer. I thought I had set things up
correctly. I have extracted my old context from
server.xml and added it under my web app context. 

<Context path="/myapp" docBase="myapp"
        debug="0" reloadable="true"
crossContext="true">

  <Resource name="jdbc/testDB" auth="Container"
type="javax.sql.DataSource"
	maxActive="10" maxIdle="7" maxWait="50000"
driverClassName="com.mysql.jdbc.Driver"
	url="jdbc:mysql://localhost:1521/testdb"
username="user1" password="****"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
	/>

I now have this error where it had been working in
version 4. 

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create JDBC driver of cla
ss '' for connect URL 'null'  

Thanks for your help.


		
___________________________________________________________ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Upgrade has broken my jndi

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
here are the docs
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

I don't see them declare the "factory" attribute in 5.5, you didn't tell 
us what version you were on

Filip

ALEX HYDE wrote:
> Hi All,
>
> I've seen this one all over the user group but I seem
> to have come to a dead end with this. I have upgraded
> from tomcat 4 to 5 and I can't seem to get my app
> working again. 
>
> The part that has broken is the jndi datasource
> look-up. I notice that I'm definitly not the first to
> experience this problem. Perhaps things might have
> been made a bit clearer. I thought I had set things up
> correctly. I have extracted my old context from
> server.xml and added it under my web app context. 
>
> <Context path="/myapp" docBase="myapp"
>         debug="0" reloadable="true"
> crossContext="true">
>
>   <Resource name="jdbc/testDB" auth="Container"
> type="javax.sql.DataSource"
> 	maxActive="10" maxIdle="7" maxWait="50000"
> driverClassName="com.mysql.jdbc.Driver"
> 	url="jdbc:mysql://localhost:1521/testdb"
> username="user1" password="****"
> factory="org.apache.commons.dbcp.BasicDataSourceFactory"
> 	/>
>
> I now have this error where it had been working in
> version 4. 
>
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
> create JDBC driver of cla
> ss '' for connect URL 'null'  
>
> Thanks for your help.
>
>
> 		
> ___________________________________________________________ 
> Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org