You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Schantz Klausen <mi...@schantz.com> on 2007/06/20 23:59:03 UTC

Tomcat won't compile my jsp

I have just installed tomcat5.5 on my fedora 7 box together with the example apps. They all run just fine, but when i create a blank jsp with only text in it, tomcat won't run the jsp. I'm not if it's fedora, java or tomcat to blame, but I have the default GNU java installed, and I have installed the "jdk-6u1-linux-amd64.bin" from sun.

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

An error occurred at line: 1 in the jsp file: /ib.jsp
The type java.io.Writer cannot be resolved. It is indirectly referenced from required .class files
1: dfggdf

An error occurred at line: 1 in the jsp file: /ib.jsp
The method write(String) is undefined for the type JspWriter
1: dfggdf

Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.compiler.JDTCompiler.generateClass(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.JspCompilationContext.compile(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.23.jar.so)
	org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.23.jar.so)
	javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so)

RE: Tomcat won't compile my jsp

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michael Schantz Klausen [mailto:michael@schantz.com] 
> Subject: Tomcat won't compile my jsp
> 
> I'm not if it's fedora, java or tomcat to blame, but I 
> have the default GNU java installed, and I have installed the 
> "jdk-6u1-linux-amd64.bin" from sun.

Make sure Tomcat is using the real JVM.  GNU Java is unsuitable for this
purpose; best to remove it to avoid any ambiguity.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org