Simone Chiaretta wrote:

While trying to run for the first time a JSP I get this 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] Compiling 1 source file
[javac]
C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.com\_\org\apac
he\jsp\FileDetail_jsp.java:6: package com.piyosailing does not exist
[javac] import com.piyosailing.PiyoWebEngine;
[javac] ^
[javac]
C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.com\_\org\apac
he\jsp\FileDetail_jsp.java:44: cannot resolve symbol
[javac] symbol : variable PiyoWebEngine [javac] location: class org.apache.jsp.FileDetail_jsp
[javac] PiyoWebEngine.setSqlConnStr(sqlConnStr);
[javac] ^
[javac] 2 errors


The structure of the website is the following

D:\Documenti\Progetti\piyosailing.com\admin\FileDetail.jsp
D:\Documenti\Progetti\piyosailing.com\admin\WEB-INF\web.xml
D:\Documenti\Progetti\piyosailing.com\admin\WEB-INF\class\com\piyosailin

[SNIP]


And it seems it's not look at the place where it should look for the
class which is
D:\Documenti\Progetti\piyosailing.com\admin\WEB-INF\class\com\piyosailin
g\PiyoWebEngine.class

This is wrong. The path should be ...\WEB-INF\classes\...


Nixie.


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



Reply via email to