PDA

View Full Version : some jsps will not compile



thisObject
22nd April 2006, 06:11 AM
Hello,

I cannot compile SOME jsp pages for some reason.
I have something like this:
http://www.mydomain.net:8080/WEB/index.jsp - this comiles
http://www.mydomain.net:8080/WEB/BLAH/BLAH/index.jsp - will not compile where BLAH is a bunch of different folders.
I have it all working on Win XP. Now I am trying to make it work on FC5.

Thanks.

thisObject
22nd April 2006, 06:27 AM
Hello,

I took the page that can compile and moved it to BLAH/BLAH folder and it does not compile now!

What is going on? Any ideas?

Thanks.

thisObject
22nd April 2006, 06:50 AM
Here is the error message that I get:



org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:342)
org.apache.jasper.compiler.AntCompiler.generateCla ss(AntCompiler.java:248)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:288)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:267)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:255)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

root cause

Compile failed; see the compiler error output for details.
org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:944)
org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:764)
org.apache.jasper.compiler.AntCompiler.generateCla ss(AntCompiler.java:216)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:288)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:267)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:255)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)



Thanks!

thisObject
22nd April 2006, 06:54 AM
I just put a blank jsp page into BLAH/BLAH folder and it produced the same error...

thisObject
22nd April 2006, 07:37 AM
Hello,

I just solved the problem. I looked into logs.
I had several .jar files in /common/lib corrupted so I just replaced them with fresh ones.

Thanks.