Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherProject Help Wanted

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 16th, 2003, 10:59 PM
Mikil Mikil is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Singapore
Posts: 2 Mikil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Mikil Send a message via Yahoo to Mikil
Post Project on Linux 7.2, tomcat 4.1, mysql 4.0.15

the subject mentions environment I am working in. My jsp page executes but I get error when I try to execute .jsp that has mysql commands.

For your knowledge, below is the part of file responsible to read db.
------------------------------------------------------------------------
<%
Class.forName("com.mysql.jdbc.Driver");

Connection con = DriverManager.getConnection("jdbc:mysql://support.mysite.com/DBMysqlTest?user=usr&password=mypassword);

Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
......
.....
%>
-----------------------------------------------------------------------------

When I execute the above file, I get the following errors:

------------------------------------------------------------------------
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 7 in the jsp file: /testfolder/testDSN.jsp

Generated servlet error:
[javac] Compiling 1 source file

/opt/jakarta-tomcat-4.1.27/work/Standalone/localhost/_/testfolder/testDSN_jsp.java:59: unclosed string literal



An error occurred at line: 7 in the jsp file: /testfolder/testDSN.jsp

Generated servlet error:
Connection con = DriverManager.getConnection("jdbc:mysql://support.mysite.com/DBMysqlTest?user=usr&password=mypassword);
^



An error occurred at line: 7 in the jsp file: /testfolder/testDSN.jsp

Generated servlet error:
/opt/jakarta-tomcat-4.1.27/work/Standalone/localhost/_/testfolder/testDSN_jsp.java:61: ')' expected
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
^
2 errors
--------------------------------------------------------------------------

Pls assist me on the matter.

Thank you in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherProject Help Wanted > Project on Linux 7.2, tomcat 4.1, mysql 4.0.15


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 4 hosted by Hostway