Put the class in:
C:\jakarta-tomcat-4.1.24\webapps\WEB-INF\classes\PACKAGE\CLASS



On Tuesday 25 November 2003 02:22 pm, Lee, Paul NYC wrote:
> Your error here speaks for itself.  Tomcat can't find "foo".  Check your
> classpath.
>
> -----Original Message-----
> From: Ralf Poppen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2003 9:33 AM
> To: [EMAIL PROTECTED]
> Subject: 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison & Company, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to