Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 26th, 2001, 06:43 AM
jim_dewit jim_dewit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 1 jim_dewit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
mm.mySQL JDBC problems

Hi im having problems with the mm.mySQL connector.

Apache 1.3.20 with ApacheJServ 1.1.2 is working properly.
Tomcat 4.0 is working properly.
mySQL 3.23.42 is working properly.

I downloaded mm.mysql-2.0.2.jar connector.
I placed it in my jdk/lib directory as mysql.jar.
I added C:\jdk\lib\mysql.jar to the CLASSPATH.

I used the JSP file from "Slapping Together A JSP Development Environment", configured it to the proper mySQL settings and point my browser to the JSP file. Here is the relavant error:
Code:
org.apache.jasper.JasperException: Unable to compile class for JSP

java.lang.NumberFormatException: mysql


When I see this, I think there must be something wrong with the actual mysql.jar file. Or Tomcat, for whatever reason, cannot compile the file properly...

Any help is much appreciated.

Reply With Quote
  #2  
Old October 8th, 2001, 12:10 PM
winstonralph winstonralph is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 10 winstonralph User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I had the same problem and this is how i fixed it.

you need to uncompress the jar file by doing
cd path_to_jar_exe
jar name_of_jar_file


This will uncompress the file archive into something like

org
gjt
mm
mysql

and then inside the mysql directory will be a load of classes
i made a directory in /usr/java/java whatever/lib called mysqldrivers and copied the uncompressed directories into it. Then I set the classpath to the mysqldriver directory.
Winston

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > mm.mySQL JDBC problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT