tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikola Milutinovic <Nikola.Milutino...@ev.co.yu>
Subject Re: Problem Compiling JSP under tomcat 5
Date Thu, 27 Nov 2003 10:24:38 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message