dcsimg
can't compile index.jsp with tomcat 4.1.24
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   HENRY_MEJIA
Posted On:   Tuesday, December 9, 2003 05:09 PM

This is what displays on my browser: See below to see the log error. I know the Tomcat path must be working because I can create an html page and view it from localhost. type: Exception report message: description The server encountered an internal error () that prevented it from fulfilling this request. exception: 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] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting   More>>

This is what displays on my browser: See below to see the log error. I know the Tomcat path must be working
because I can create an html page and view it from localhost.



type: Exception report



message:


description The server encountered an internal error () that prevented it from fulfilling this request.



exception:


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] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] D:Tomcat4.1workStandalonelocalhostexamplesjsp
um
umguess_jsp.java:107: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
[javac] if (pageContext != null) pageContext.handlePageException(t);
[javac] ^
[javac] 1 error

			

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:484)



--------------------------------------------------------------------------------


			
This is the Tomcat log error file int includes messages from starting up Tomcat and the messages when i tried bringing an example.:




2003-12-08 18:56:59 HostConfig[localhost]: Deploying configuration descriptor admin.xml
2003-12-08 18:57:02 HostConfig[localhost]: Deploying configuration descriptor manager.xml
2003-12-08 18:57:03 WebappLoader[/manager]: Deploying class repositories to work directory D:Tomcat4.1workStandalonelocalhostmanager
2003-12-08 18:57:03 ContextConfig[/manager]: Configured an authenticator for method BASIC
2003-12-08 18:57:03 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2003-12-08 18:57:03 StandardManager[/manager]: Seeding of random number generator has been completed
2003-12-08 18:57:03 StandardWrapper[/manager]: Loading container servlet default
2003-12-08 18:57:03 default: init
2003-12-08 18:57:03 StandardWrapper[/manager]: Loading container servlet invoker
2003-12-08 18:57:03 invoker: init
2003-12-08 18:57:03 jsp: init
2003-12-08 18:57:03 HostConfig[localhost]: Deploying web application directory ROOT
2003-12-08 18:57:03 StandardHost[localhost]: Installing web application at context path from URL file:D:Tomcat4.1webappsROOT
2003-12-08 18:57:03 WebappLoader[]: Deploying class repositories to work directory D:Tomcat4.1workStandalonelocalhost\_
2003-12-08 18:57:03 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2003-12-08 18:57:03 StandardManager[]: Seeding of random number generator has been completed
2003-12-08 18:57:03 StandardWrapper[]: Loading container servlet default
2003-12-08 18:57:03 default: init
2003-12-08 18:57:03 StandardWrapper[]: Loading container servlet invoker
2003-12-08 18:57:03 invoker: init
2003-12-08 18:57:03 jsp: init
2003-12-08 18:57:03 HostConfig[localhost]: Deploying web application directory tomcat-docs
2003-12-08 18:57:03 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:D:Tomcat4.1webapps omcat-docs
2003-12-08 18:57:03 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory D:Tomcat4.1workStandalonelocalhost omcat-docs
2003-12-08 18:57:03 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2003-12-08 18:57:03 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed
2003-12-08 18:57:03 StandardWrapper[/tomcat-docs]: Loading container servlet default
2003-12-08 18:57:03 default: init
2003-12-08 18:57:03 StandardWrapper[/tomcat-docs]: Loading container servlet invoker
2003-12-08 18:57:03 invoker: init
2003-12-08 18:57:03 jsp: init
2003-12-08 18:57:03 HostConfig[localhost]: Deploying web application directory webdav
2003-12-08 18:57:03 StandardHost[localhost]: Installing web application at context path /webdav from URL file:D:Tomcat4.1webappswebdav
2003-12-08 18:57:03 WebappLoader[/webdav]: Deploying class repositories to work directory D:Tomcat4.1workStandalonelocalhostwebdav
2003-12-08 18:57:03 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2003-12-08 18:57:03 StandardManager[/webdav]: Seeding of random number generator has been completed
2003-12-08 18:57:03 StandardWrapper[/webdav]: Loading container servlet default
2003-12-08 18:57:03 default: init
2003-12-08 18:57:03 StandardWrapper[/webdav]: Loading container servlet invoker
2003-12-08 18:57:03 invoker: init
2003-12-08 18:57:03 jsp: init
2003-12-08 19:00:29 Error compiling file: D:Tomcat4.1workStandalonelocalhostexamplesjsp
um/numguess_jsp.java [javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] D:Tomcat4.1workStandalonelocalhostexamplesjsp
um
umguess_jsp.java:107: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
[javac] if (pageContext != null) pageContext.handlePageException(t);
[javac] ^
[javac] 1 error


2003-12-08 19:00:29 Info: Compile: javaFileName=D:Tomcat4.1workStandalonelocalhostexamplesjsp
um/numguess_jsp.java
classpath=/D:/Tomcat4.1/webapps/examples/WEB-INF/classes/;/D:/Tomcat4.1/webapps/examples/WEB-INF/classes/;D:/Tomcat4.1/shared/classes/;D:/Tomcat4.1/common/classes/;D:/Tomcat4.1/common/endorsed/xercesImpl.jar;D:/Tomcat4.1/common/endorsed/xmlParserAPIs.jar;D:/Tomcat4.1/common/lib/activation.jar;D:/Tomcat4.1/common/lib/ant.jar;D:/Tomcat4.1/common/lib/commons-collections.jar;D:/Tomcat4.1/common/lib/commons-dbcp.jar;D:/Tomcat4.1/common/lib/commons-logging-api.jar;D:/Tomcat4.1/common/lib/commons-pool.jar;D:/Tomcat4.1/common/lib/jasper-compiler.jar;D:/Tomcat4.1/common/lib/jasper-runtime.jar;D:/Tomcat4.1/common/lib/jasper.jar;D:/Tomcat4.1/common/lib/jdbc2_0-stdext.jar;D:/Tomcat4.1/common/lib/jndi.jar;D:/Tomcat4.1/common/lib/jta.jar;D:/Tomcat4.1/common/lib/mail.jar;D:/Tomcat4.1/common/lib/naming-common.jar;D:/Tomcat4.1/common/lib/naming-factory.jar;D:/Tomcat4.1/common/lib/naming-resources.jar;D:/Tomcat4.1/common/lib/servlet.jar;D:/Tomcat4.1/common/lib/tools.jar
cp=D:Tomcat4.1webappsexamplesWEB-INFclasses
cp=D:Tomcat4.1webappsexamplesWEB-INFclasses
cp=D:Tomcat4.1sharedclasses
cp=D:Tomcat4.1commonclasses
cp=D:Tomcat4.1commonendorsedxercesImpl.jar
cp=D:Tomcat4.1commonendorsedxmlParserAPIs.jar
cp=D:Tomcat4.1commonlibactivation.jar
cp=D:Tomcat4.1commonlibant.jar
cp=D:Tomcat4.1commonlibcommons-collections.jar
cp=D:Tomcat4.1commonlibcommons-dbcp.jar
cp=D:Tomcat4.1commonlibcommons-logging-api.jar
cp=D:Tomcat4.1commonlibcommons-pool.jar
cp=D:Tomcat4.1commonlibjasper-compiler.jar
cp=D:Tomcat4.1commonlibjasper-runtime.jar
cp=D:Tomcat4.1commonlibjasper.jar
cp=D:Tomcat4.1commonlibjdbc2_0-stdext.jar
cp=D:Tomcat4.1commonlibjndi.jar
cp=D:Tomcat4.1commonlibjta.jar
cp=D:Tomcat4.1commonlibmail.jar
cp=D:Tomcat4.1commonlib
aming-common.jar
cp=D:Tomcat4.1commonlib
aming-factory.jar
cp=D:Tomcat4.1commonlib
aming-resources.jar
cp=D:Tomcat4.1commonlibservlet.jar
cp=D:Tomcat4.1commonlib ools.jar
work dir=D:Tomcat4.1workStandalonelocalhostexamples
srcDir=D:Tomcat4.1workStandalonelocalhostexamples
include=jsp/num/numguess_jsp.java
Exception compiling Compile failed; see the compiler error output for details.

2003-12-08 19:00:29 Exception:
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:484)

   <<Less

Re: can't compile index.jsp with tomcat 4.1.24

Posted By:   AlessandroA_Garbagnati  
Posted On:   Wednesday, December 10, 2003 12:59 AM

Hi,

As far as I know, this type of error can be connected to a wrong setting of the JAVA_HOME environment variable, or a problem connected with the version of the JDK in use. Are you using J2SE or the J2RE ?
About | Sitemap | Contact