Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

newbe cant get mysql with jsp

Thread view: 
joe - 27 Feb 2007 16:55 GMT
Hello I am getting

org.apache.jasper.JasperException: Exception in JSP: /test.jsp:13

10: //try {
11:
12: Connection ocon = null;
13: Class.forName("org.gjt.mm.mysql.Driver");
14:
15: ocon = DriverManager.getConnection("jdbc:mysql://localhost/
test","test","test");
16: //ocon = DriverManager.getConnection("jdbc:mysql://localhost/test?
user=test&password=te

My database is call test, my table is called test and the username and
password are call test

I added this to the tomcat5.conf
LD_LIBRARY_PATH=/usr/share/java
#LD_LIBRARY_PATH=/usr/share/java/mysql-connector-java.jar

#CLASSPATH=${CLASSPATH}:/usr/share/java/mysql-connector-java.jar
CLASSPATH=${CLASSPATH}:/usr/share/java/mysql-connector-java-3.1.12.jar

but no cheese, please help.
joe - 28 Feb 2007 13:07 GMT
Got it found this link

http://csci.csusb.edu/turner/archive/notes/gentoo/tomcat.html

Got rid off the last lines classpath and ld_ and then just create a
link for mysql and it worked :)

> Hello I am getting
>
[quoted text clipped - 21 lines]
>
> but no cheese, please help.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.