RE: cannot load db driver in Tomcat 5.0.4

2003-07-15 Thread Raible, Matt
I found that adding log4j.jar to $CATALINA_HOME/common/lib solved my
problem, but now I get the following error when I start Tomcat and there is
no logging to catalina.out:

log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.

Any help is appreciated.

Matt

-Original Message-
From: Raible, Matt 
Sent: Tuesday, July 15, 2003 2:53 PM
To: '[EMAIL PROTECTED]'
Subject: cannot load db driver in Tomcat 5.0.4


I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:

java.sql.SQLException: Cannot load JDBC driver class 'null'

This app works beautifully in Tomcat 4.1.24 and I can put the exact same
directory, app.xml and jdbc driver in common/lib and it works.  Has anything
changed configuration-wise in 5.0.4?

Thanks,

Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cannot load db driver in Tomcat 5.0.4

2003-07-15 Thread Raible, Matt
I figured it out. It looks like the context.xml file must now go in
$CATALINA_HOME/conf/Catalina/localhost, rather than $CATALINA_HOME/webapps.
Doh! Now I have to figure out a way to modify my setup-tomcat task to
detect and deploy appropriately for Tomcat 5. Here is the relevant part:

echo level=infoCopying ${webapp.name}.xml to
${tomcat.home}/webapps/echo
copy tofile=${tomcat.home}/webapps/${webapp.name}.xml
file=metadata/web/tomcat-context.xml /

Matt

-Original Message-
From: Raible, Matt 
Sent: Tuesday, July 15, 2003 3:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: cannot load db driver in Tomcat 5.0.4


I found that adding log4j.jar to $CATALINA_HOME/common/lib solved my
problem, but now I get the following error when I start Tomcat and there is
no logging to catalina.out:

log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.

Any help is appreciated.

Matt

-Original Message-
From: Raible, Matt 
Sent: Tuesday, July 15, 2003 2:53 PM
To: '[EMAIL PROTECTED]'
Subject: cannot load db driver in Tomcat 5.0.4


I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:

java.sql.SQLException: Cannot load JDBC driver class 'null'

This app works beautifully in Tomcat 4.1.24 and I can put the exact same
directory, app.xml and jdbc driver in common/lib and it works.  Has anything
changed configuration-wise in 5.0.4?

Thanks,

Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cannot load db driver in Tomcat 5.0.4

2003-07-15 Thread Tim Funk
Tomcat 5 relies on commons-logging for lots of stuff. And commons-logging has 
an interesting relationship with log4j.

Putting a log4j.properties in your common/classes directory should help.

-Tim

Raible, Matt wrote:
I found that adding log4j.jar to $CATALINA_HOME/common/lib solved my
problem, but now I get the following error when I start Tomcat and there is
no logging to catalina.out:
log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.
Any help is appreciated.

Matt

-Original Message-
From: Raible, Matt 
Sent: Tuesday, July 15, 2003 2:53 PM
To: '[EMAIL PROTECTED]'
Subject: cannot load db driver in Tomcat 5.0.4

I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:
java.sql.SQLException: Cannot load JDBC driver class 'null'

This app works beautifully in Tomcat 4.1.24 and I can put the exact same
directory, app.xml and jdbc driver in common/lib and it works.  Has anything
changed configuration-wise in 5.0.4?
Thanks,

Matt
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]