tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dharamshila Khandelwal <dharmshil...@gmail.com>
Subject Re: Not able to get webapp context to work in Tomcat6
Date Tue, 15 Mar 2011 16:08:43 GMT
Thank you Mark and Thomas! I was able to get that to work. I didn't realize
the syntax as I am upgrading from Tomcat 5 to Tomcat 6.

On Tue, Mar 15, 2011 at 11:21 AM, Thomas Freitag <thomas@freit.ag> wrote:

> -----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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message