Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
<AUTO > 'Getty=001-015-886 'Problem Compiling JSP under TOMCAT 5.0.
   18; please h

<AUTO > 'Getty=001-015-886 'Problem Compiling JSP under TOMCAT 5.0.
   18; please h

2004-02-02       - By Getty Images USA License

 Back
Hello and thank you for your email. We strive to respond to all email inquiries
within one business day. If your issue cannot wait that long, please call us at
877-438-8966. Our hours are 6:00 a.m. to 6:00 p.m. Pacific Standard Time,
Monday through Friday.

For reference, your assigned case ID is:1015886



-- --Original Message-- --
From: De Toffoli Garry [g.detoffoli@(protected)]
Sent: Monday, Feb 2 2004 9:01AM
To: tomcat-user@(protected) [tomcat-user@(protected)]
Subject: Problem Compiling JSP under TOMCAT 5.0.18; please help me



Hi to all,

   I would like to pass from tomcat 3.2.x to tomcat 5.0.18;

   under tomcat 3.2.x I have some package under the WEB-INF/classes of
all my sites, and run OK;

   passing to tomcat 5.0.18 I have changed only tomcat, leaving
untouched all the directory where resides the sites; but when I call a
.jsp that use a package, I have this error:

org.apache.jasper.JasperException Source code of org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 6 in the jsp file: /tst_sitengine/testDB.jsp

Generated servlet error:
   [javac] Compiling 1 source file

/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst
_005fsitengine/testDB_jsp.java:7: package db does not exist

import db.*;
^

On catalina.log I have a detail about the error, where is reported the
classpath where jasper is looking for, and doesn't appear WEB-INF;
I think that this is why I have the error;

but How can I correct this?

Please, could someone help me? I have the same error with tomcat 5.0.16;

here there is the content of catalina.log
2-feb-2004 (See http://feb-2004.ora-code.com) 17.50.46 org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler generateClass
GRAVE: Javac exception
Compile failed; see the compiler error output for details.
       at org.apache.tools.ant.taskdefs.Javac Source code of org.apache.tools.ant.taskdefs.Javac(Javac.java:978)
       at org.apache.tools.ant.taskdefs.Javac Source code of org.apache.tools.ant.taskdefs.Javac(Javac.java:799)
       at
org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:390)
       at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:458)
       at
org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:439)        at
org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:439)
       at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationContext.java:552)
       at
org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper(JspServletWrapper.java:291)
       at
org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:301)
       at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:248)
       at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:856)
       at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:284)
       at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFilterChain
.java:204)
       at
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValve.java
:257)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:151)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:564)
       at
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve
(StandardContextValve.java:245)
       at
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextValve.java
:199)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:151)
       at
org.apache.catalina.authenticator.AuthenticatorBase Source code of org.apache.catalina.authenticator.AuthenticatorBase(AuthenticatorBase
.java:509)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:149)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:564)    
   
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:149)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:564)
       at
org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.java:195)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:151)
       at
org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.java:164)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:149)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:564)
       at
org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve.java
:156)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext
.java:151)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:564)
       at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:972)
       at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
       at
org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor.java:828)
       at
org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
.processConnection(Http11Protocol.java:700)
       at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
       at
org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:683)        
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
       at
org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:683)
       at java.lang.Thread Source code of java.lang.Thread(Thread.java:534)
2-feb-2004 (See http://feb-2004.ora-code.com) 17.50.46 org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler generateClass
GRAVE: Env: Compile:
javaFileName=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_//org/apache
/jsp/tst_005fsitengine/testDB_jsp.java
   
classpath=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_:/usr/jakarta
-tomcat-5 (See http://cat-5.ora-code.com).0.18/shared/classes/:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/classes/:/usr
/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/endorsed/xercesImpl.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18
/common/endorsed/xmlParserAPIs.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/ant.jar
:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-collections.jar:/usr/jakarta
-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-dbcp-1 (See http://bcp-1.ora-code.com).1.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common
/lib/commons-el.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-pool-1 (See http://ool-1.ora-code.com).1.jar:
/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jasper-compiler.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com)
.0.18/common/lib/jasper-runtime.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx
-remote-tools.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx-remote.jar:/usr
/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib
/jsp-api.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming-common.jar:/usr
/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming-factory.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18
/common/lib/naming-java.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming
-resources.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/servlet-api.jar:/usr/j2sdk1
.4.2_02/lib/tools.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/bin/bootstrap.jar:/usr/jakarta
-tomcat-5 (See http://cat-5.ora-code.com).0.18/bin/commons-logging-api.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/sunjce
_provider.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/dnsns.jar:/usr/j2sdk1.4.2_02/jre
/lib/ext/ldapsec.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/localedata.jar

   
cp=/usr/java/lib/tools.jar:/usr/tomcat/bin/bootstrap.jar:/usr/tomcat/bin
/commons-logging-api.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/shared/classes    
cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/shared/classes
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/classes
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/endorsed/xercesImpl.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/endorsed/xmlParserAPIs.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/ant.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-collections.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-dbcp-1 (See http://bcp-1.ora-code.com).1.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-el.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/commons-pool-1 (See http://ool-1.ora-code.com).1.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jasper-compiler.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jasper-runtime.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx-remote-tools.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx-remote.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jsp-api.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming-common.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming-factory.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming-java.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/naming-resources.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/servlet-api.jar
   cp=/usr/j2sdk1.4.2_02/lib/tools.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/bin/bootstrap.jar
   cp=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/bin/commons-logging-api.jar
   cp=/usr/j2sdk1.4.2_02/jre/lib/ext/sunjce_provider.jar
   cp=/usr/j2sdk1.4.2_02/jre/lib/ext/dnsns.jar
   cp=/usr/j2sdk1.4.2_02/jre/lib/ext/ldapsec.jar
   cp=/usr/j2sdk1.4.2_02/jre/lib/ext/localedata.jar
   work dir=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_
   extension dir=/usr/j2sdk1.4.2_02/jre/lib/ext
   srcDir=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_    
extension dir=/usr/j2sdk1.4.2_02/jre/lib/ext
   srcDir=/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_
   include=org/apache/jsp/tst_005fsitengine/testDB_jsp.java
 
2-feb-2004 (See http://feb-2004.ora-code.com) 17.50.46 org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler generateClass
GRAVE: Error compiling file:
/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_//org/apache/jsp/tst
_005fsitengine/testDB_jsp.java    
[javac] Compiling 1 source file
 
/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/work/Catalina/www.test.it/_/org/apache/jsp/tst
_005fsitengine/testDB_jsp.java:7:
package db does not exist
import db.*;
^  










       at
org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext(JspCompilationContext.java:552





-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



=======================================================
This email and its contents are confidential. If you
are not the intended recipient, please do not disclose
or use the information within this email or its
attachments. If you have received this email in error,
please delete it immediately. Thank you.

=======================================================

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.