tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Chiaretta" <sim...@piyosailing.com>
Subject Problem Compiling JSP under tomcat 5
Date Thu, 27 Nov 2003 09:41:11 GMT
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
g\PiyoWebEngine.class

Looking in the launcher.log I find this one

27-nov-2003 10.35.33 org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile:
javaFileName=C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.c
om\_\org\apache\jsp\FileDetail_jsp.java
 
classpath=C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.com\
_/tags;C:/j2sdk1.4.2_01/jwsdp-1.2/shared/classes/;C:/j2sdk1.4.2_01/jwsdp
-1.2/common/classes/;C:/j2sdk1.4.2_01/jwsdp-1.2/apache-ant/lib/ant.jar;C
:/j2sdk1.4.2_01/jwsdp-1.2/apache-ant/lib/optional.jar;C:/j2sdk1.4.2_01/j
wsdp-1.2/common/lib/commons-dbcp.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/common/l
ib/commons-el.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/commons-fileuplo
ad-1.0.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/commons-logging-api.jar
;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/commons-pool.jar;C:/j2sdk1.4.2_01
/jwsdp-1.2/common/lib/jasper-compiler.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/com
mon/lib/jasper-runtime.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/jmx.jar
;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/jsp-api.jar;C:/j2sdk1.4.2_01/jwsd
p-1.2/common/lib/naming-common.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib
/naming-factory.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/naming-java.ja
r;C:/j2sdk1.4.2_01/jwsdp-1.2/common/lib/naming-resources.jar;C:/j2sdk1.4
.2_01/jwsdp-1.2/common/lib/servlet-api.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/ja
xb/lib/jaxb-api.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jaxb/lib/jaxb-impl.jar;C:
/j2sdk1.4.2_01/jwsdp-1.2/jaxb/lib/jaxb-libs.jar;C:/j2sdk1.4.2_01/jwsdp-1
.2/jaxb/lib/jaxb-xjc.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jaxp/lib/jaxp-api.ja
r;C:/j2sdk1.4.2_01/jwsdp-1.2/jaxr/lib/castor-0.9.3.9-xml.jar;C:/j2sdk1.4
.2_01/jwsdp-1.2/jaxr/lib/fscontext.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jaxr/l
ib/jaxr-api.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jaxr/lib/jaxr-impl.jar;C:/j2s
dk1.4.2_01/jwsdp-1.2/jaxrpc/lib/jaxrpc-api.jar;C:/j2sdk1.4.2_01/jwsdp-1.
2/jaxrpc/lib/jaxrpc-impl.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jsf/lib/jsf-api.
jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jsf/lib/jsf-ri.jar;C:/j2sdk1.4.2_01/jwsdp
-1.2/jsf/lib/jstl.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jsf/lib/standard.jar;C:
/j2sdk1.4.2_01/jwsdp-1.2/jstl/lib/jstl.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/js
tl/lib/standard.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/activati
on.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/commons-beanutils.jar
;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/commons-collections.jar;C:/
j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/commons-digester.jar;C:/j2sdk1.
4.2_01/jwsdp-1.2/jwsdp-shared/lib/commons-logging.jar;C:/j2sdk1.4.2_01/j
wsdp-1.2/jwsdp-shared/lib/jaas.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shar
ed/lib/jax-qname.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/jta-spe
c1_0_1.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/mail.jar;C:/j2sdk
1.4.2_01/jwsdp-1.2/jwsdp-shared/lib/namespace.jar;C:/j2sdk1.4.2_01/jwsdp
-1.2/jwsdp-shared/lib/providerutil.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-
shared/lib/relaxngDatatype.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/jwsdp-shared/l
ib/xsdlib.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/saaj/lib/saaj-api.jar;C:/j2sdk1
.4.2_01/jwsdp-1.2/saaj/lib/saaj-impl.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/wsi-
sampleapp/lib/pbclient.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/wsi-sampleapp/lib/
wsi-client.jar;C:/j2sdk1.4.2_01/jwsdp-1.2/xws-security/lib/jaxrpc-sec.ja
r;C:/j2sdk1.4.2_01/jwsdp-1.2/xws-security/lib/xmlsec.jar
 
cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\bin\commons-launcher.jar;C:\j
2sdk1.4.2_01\lib\tools.jar;C:\j2sdk1.4.2_01\jwsdp-1.2\bin;C:\j2sdk1.4.2_
01\jwsdp-1.2\bin\bootstrap.jar;C:\j2sdk1.4.2_01\lib\tools.jar;C:\j2sdk1.
4.2_01\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_01\jwsdp-1.2\jstl\tld
 
cp=C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.com\_\tags
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\shared\classes
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\classes
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\apache-ant\lib\ant.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\apache-ant\lib\optional.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\commons-dbcp.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\commons-el.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\commons-fileupload-1.0.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\commons-logging-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\commons-pool.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\jasper-compiler.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\jasper-runtime.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\jmx.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\jsp-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\naming-common.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\naming-factory.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\naming-java.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\naming-resources.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\common\lib\servlet-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxb\lib\jaxb-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxb\lib\jaxb-impl.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxb\lib\jaxb-libs.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxb\lib\jaxb-xjc.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxp\lib\jaxp-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxr\lib\castor-0.9.3.9-xml.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxr\lib\fscontext.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxr\lib\jaxr-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxr\lib\jaxr-impl.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxrpc\lib\jaxrpc-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jaxrpc\lib\jaxrpc-impl.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jsf\lib\jsf-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jsf\lib\jsf-ri.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jsf\lib\jstl.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jsf\lib\standard.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jstl\lib\jstl.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jstl\lib\standard.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\activation.jar
 
cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\commons-beanutils.jar
 
cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\commons-collections.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\commons-digester.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\commons-logging.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\jaas.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\jax-qname.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\jta-spec1_0_1.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\mail.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\namespace.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\providerutil.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\relaxngDatatype.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\jwsdp-shared\lib\xsdlib.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\saaj\lib\saaj-api.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\saaj\lib\saaj-impl.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\wsi-sampleapp\lib\pbclient.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\wsi-sampleapp\lib\wsi-client.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\xws-security\lib\jaxrpc-sec.jar
     cp=C:\j2sdk1.4.2_01\jwsdp-1.2\xws-security\lib\xmlsec.jar
     work
dir=C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.com\_
 
srcDir=C:\j2sdk1.4.2_01\jwsdp-1.2\work\Catalina\admin.piyoserver.com\_
    include=org/apache/jsp/FileDetail_jsp.java


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

And, since I already looked at the FAQ the include statement is
<%@ page import = "com.piyosailing.PiyoWebEngine" %>

Simone


-------------------------
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic 


---------------------------------------------------------------------
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