Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.gjt.mm.mysql.Driver...(URGENT)  RSS feed

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
my jsp is giving "java.Lang.ClassNotFoundException" and showing "Unable to load org.gjt.mm.mysql.Driver"..
i m using Tomcat on WIN2000.
was working fine previously till i loaded JMF2.1.1..have unintsalled it...
tia
malhar
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is JMF2.1.1 ?

Anyways, place the mysql driver package in the lib directory for tomcat, and restart. That is where i have my oracle driver package, and there are no problems.

Tomcat 3.2.1: <tomcat-install>/lib
Tomcat 4.0.1: <tomcat-install>/common/lib

From your description, you are probably using 3.2.1, as it uses System CLASSPATH. Your mySQL drivers were probably in this CLASSPATH. If you installed something that stomped on that CLASSPATH, your Tomcat wouldn't find them.

But by placing the drivers in the lib directory of Tomcat, you don't need them on the system CLASSPATH.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear mike
JMF == Java Media Framework..
abt the problem...no it still gives the same message...
as u said..the CLASSPATH has been stomped...that is what JMF installation does..
any other solution..
thanx
malhar
Originally posted by Mike Curwen:
what is JMF2.1.1 ?

Anyways, place the mysql driver package in the lib directory for tomcat, and restart. That is where i have my oracle driver package, and there are no problems.

Tomcat 3.2.1: <tomcat-install>/lib
Tomcat 4.0.1: <tomcat-install>/common/lib

From your description, you are probably using 3.2.1, as it uses System CLASSPATH. Your mySQL drivers were probably in this CLASSPATH. If you installed something that stomped on that CLASSPATH, your Tomcat wouldn't find them.

But by placing the drivers in the lib directory of Tomcat, you don't need them on the system CLASSPATH.

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey
hope someone can provide the solution to this prob...
expecting more replies...this one must be quite easy fr u buddies...
luv
malhar
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's odd that placing the jar files in your <lib> directory did not solve the problem.

You do need a server re-start after doing this.

The other thing (if it's Tomcat 3.2.1)... is try placing the mySQL jar file in the system CLASSPATH. This won't work with Tomcat 4.0.1, as it doesn't (seem to) use the system CLASSPATH.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear mike
its working now, i wrote the CLASSPATH again in the "properties" of WIN2000...n it started working..
thanx fr yr efforts:-)
malhar
Originally posted by Mike Curwen:
It's odd that placing the jar files in your <lib> directory did not solve the problem.

You do need a server re-start after doing this.

The other thing (if it's Tomcat 3.2.1)... is try placing the mySQL jar file in the system CLASSPATH. This won't work with Tomcat 4.0.1, as it doesn't (seem to) use the system CLASSPATH.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!