Stupid question - cannot load servlet name - mm.mysql related ??
Hello. I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. Why does it still fail? Any ideas? I'm stuck. *sigh* Regards, Christopher Cato Rational Software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Stupid question - cannot load servlet name - mm.mysql related ??
Hello. I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. Why does it still fail? Any ideas? I'm stuck. *sigh* Regards, Christopher Cato - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Stupid question - cannot load servlet name - mm.mysql related ??
I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. Same config file also ? So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. Ant is a fine stuff. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. mm.mysql is now at 2.0.4 Don't forget also to use a pool like Turbine-Pool on other like DBConBroker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Stupid question - cannot load servlet name - mm.mysql related ??
Do you perhaps have an older version of the mysql driver in your classpath before the new ones? Maybe it's sitting in jdk1.3/jre/lib/ext? I'd try writing a short console program just to open a connection to the db and get that to run, then at least you you where your problem lies for sure. Then you can figure out what part of the classpath is getting munged by tomcat. Note that I believe the tomcat.sh scripts munge your classpath, so you might want to try putting mm.mysql.jar in your tomcat/lib folder. Good luck --erik -Original Message- From: Cato, Christopher [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 10:02 AM To: '[EMAIL PROTECTED]' Subject: Stupid question - cannot load servlet name - mm.mysql related ?? Hello. I have two identical linux redhat 6.2 machines, both running TomCat standalone. On machine A, I've been testing out a system I'm developing. It runs okay on that machine. Now I want it on machine B instead. So, I move the sources to machine B (together with the build.sh script (which works fine on machine A) and all the other files). I compile without errors, Ant moves the classes and web.xml into the correct directories. BUT, when I start TomCat I get a whole bunch of "cannot load servlet name: whatever name" messages. Looking at the other logs, It seems to load and initialize the servlets okay. So, I try to connect to TomCat. Every servlet which does not use the mm.mysql db driver works ok. Those using it wont work. It just states "cannot load database driver". This message comes from a try clause around the driver loader in each servlet. Now, I've moved the mysql drivers to machine B and added the mm.mysql-2.0.2.bin.jar to the classpath. Why does it still fail? Any ideas? I'm stuck. *sigh* Regards, Christopher Cato - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]