tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Freitag <tho...@freit.ag>
Subject Re: Not able to get webapp context to work in Tomcat6
Date Tue, 15 Mar 2011 15:21:13 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Dharamshila,

On 15.03.11 um 11:10, Dharamshila Khandelwal wrote:
> I have my webapps's context define in
> $CATALINA_HOME/conf/Catalina/localhost.
> The application is not reading the datasource, I get the following error in
> catalina logs:
> 
> Unhandled SQL Exception:
> org.apache.tomcat.dbcp.dbcp.SQLNestedException: *Cannot
> create JDBC driver of class '' for connect URL 'null'
> *
> The connect URL is defined in the xml file.
> 
> Is there any setting that I need to do specific to Tomcat 6 so that it reads
> the xml file correctly?

Yes, you should use a correct Ressource definition syntax, see:
<http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Resource_Definitions>.
Yours looks like an ancient Tomcat 4.1 configuration. You should
remove the path attribute, check the docBase attribute, and change
your DB passwords.
 
Regards,
- -- 
Thomas Freitag
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1/g+kACgkQGE5pHr3PKuU+yQCgiTAtg/q7O6E/jEQLssIyOmuG
PD8An2KNK49g78o9xqDeJJAEYQhzXkjL
=Aipy
-----END PGP SIGNATURE-----

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


Mime
View raw message