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
 
Problem Compiling JSP under TOMCAT 5.0.18; please help me

Problem Compiling JSP under TOMCAT 5.0.18; please help me

2004-02-04       - By Kal Govindu

 Back
Reply:     1     2  

You can try this and restart tomcat.
1. Copy tools.jar from your-jsdk\lib\tools.jar to your-
tomcat\common\lib\tools.jar This may not be necessary, but the installer
does
attempt to copy this file so it won't hurt to do the same.

And if that does not work try this step next and restart tomcat.
2.Change registry entry for

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Apache Tomcat 4.1\Parameters\JVM Library

from (adjust these paths to your machine and java version)
C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll

to
C:\j2sdk1.4.1_02\jre\bin\server\jvm.dll

Hope that helps
Kal

-- --Original Message-- --
From: De Toffoli Garry [mailto:g.detoffoli@(protected)]
Sent: Monday, February 02, 2004 11:59 AM
To: 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/ts
t_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.ja
va:552)
       at
org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper(JspServletWrapper.ja
va: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(Applica
tionFilterChain.java:284)
       at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFilt
erChain.java:204)
       at
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValv
e.java:257)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:5
64)
       at
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardCon
textValve.java:245)
       at
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextValv
e.java:199)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
       at
org.apache.catalina.authenticator.AuthenticatorBase Source code of org.apache.catalina.authenticator.AuthenticatorBase(Authenticator
Base.java:509)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:5
64)        
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:5
64)
       at
org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.java
:195)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.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(StandardValveCo
ntext.java:149)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:5
64)
       at
org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve.
java:156)
       at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
       at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:5
64)
       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:82
8)
       at
org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:700)
       at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
4)
       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:58
4)
       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/ja
karta-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/cl
asses/:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/endorsed/xercesImpl.jar:/usr/ja
karta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/endorsed/xmlParserAPIs.jar:/usr/jakarta-tomca
t-5.0.18/common/lib/ant.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/common
s-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-t
omcat-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/jas
per-runtime.jar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx-remote-tools.j
ar:/usr/jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.18/common/lib/jmx-remote.jar:/usr/jakarta-tom
cat-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/jak
arta-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/nam
ing-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/bootstra
p.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/d
nsns.jar:/usr/j2sdk1.4.2_02/jre/lib/ext/ldapsec.jar:/usr/j2sdk1.4.2_02/j
re/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/t
st_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/ts
t_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.ja
va:552





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




CONFIDENTIALITY NOTE:  All e-mail sent to or from this address will be received
by the Waterfield Group corporate e-mail system and is subject to archival,
monitoring, and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information,
which is privileged and confidential.  This e-mail is intended solely for the
use of the individual or entity to which it is addressed.  If you are not the
intended recipient of this e-mail, you are hereby notified that any
dissemination, distribution, copying, or action taken in relation to the
contents of and attachments to this e-mail is strictly prohibited and may be
unlawful.  If you have received this e-mail in error, please notify the sender
immediately and permanently delete the original and any copy of this e-mail and
any printout.  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.