You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ralf Poppen <po...@sf-datentechnik.de> on 2003/11/25 15:33:28 UTC
MySQL DBCP Example
Hello,
I tried the MySQL DBCP Example. I used the j2sdk1.2.4_02 and the tomcat
4.1.24. After i have compiled the DBTest.java with javac
foo/DBTest.java, i copied the class into the path :
C:\jakarta-tomcat-4.1.24\webapps\DBTest\foo and the test.jsp into the
path C:\jakarta-tomcat-4.1.24\webapps\DBTest. After that i startet
tomcat. Then i startet the browser with
http://localhost:8080/DBTest/test.jsp
<http://localhost:8080/DBTest/test.jsp> . I can't see the fruits of my
work. I got the follwing error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac]
C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\DBTest\test_jsp.java:
48: package foo does not exist
[javac] foo.DBTest tst = new foo.DBTest();
[javac] ^
[javac]
C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\DBTest\test_jsp.java:
48: package foo does not exist
[javac] foo.DBTest tst = new foo.DBTest();
[javac] ^
[javac] 2 errors
Who can help.
Ralf.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org