You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rodrigo Avila <rd...@gmail.com> on 2005/02/03 14:53:36 UTC
JSP Compilation Problem
Hi!
When I create a new JSP file in tomcat 5.0.24 and try to run it, the
Tomcat send me this error:
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] Compiling 1 source file
/usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7:
org.apache.jsp.web.Test_jsp is not abstract and does not override
abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase
public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase
^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
[...]
The jsp file is Test.jsp. I don try to compile it manually; that error
appear when Tomcat try to compile it. I try clean work/ directory; no
sucess. I try to change to newest Tomcat binary: no sucess. And, it
occur in only one context. If I create another context, create a new
.jsp file, all works ok.
I make searches in Google, but nothing resolve my problem.
Thanks the attention!
--
Rodrigo de Avila
rdeavila@gmail.com
http://www.avila.eti.br
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP Compilation Problem
Posted by Rodrigo Avila <rd...@gmail.com>.
Oh, my God... Idiot!
I have in my classpath the jasper-runtime.jar (I use it in the Eclipse
classpath)...
duh!
Clouse, it works now!
Thanks the attention!
On Thu, 03 Feb 2005 09:25:29 -0500, Tim Funk <fu...@joedog.org> wrote:
> 1) try a newer version
> 2) you might have older jasper libraries in your path
>
> -Tim
>
> Rodrigo Avila wrote:
>
> > Hi!
> > When I create a new JSP file in tomcat 5.0.24 and try to run it, the
> > Tomcat send me this error:
> >
> > 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] Compiling 1 source file
> >
> > /usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7:
> > org.apache.jsp.web.Test_jsp is not abstract and does not override
> > abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase
> > public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase
> > ^
> > 1 error
> >
> >
> > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
> > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306)
> > org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
> > [...]
> >
> > The jsp file is Test.jsp. I don try to compile it manually; that error
> > appear when Tomcat try to compile it. I try clean work/ directory; no
> > sucess. I try to change to newest Tomcat binary: no sucess. And, it
> > occur in only one context. If I create another context, create a new
> > .jsp file, all works ok.
> >
> > I make searches in Google, but nothing resolve my problem.
> >
> > Thanks the attention!
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Rodrigo de Avila
rdeavila@gmail.com
http://www.avila.eti.br
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: JSP Compilation Problem
Posted by Tim Funk <fu...@joedog.org>.
1) try a newer version
2) you might have older jasper libraries in your path
-Tim
Rodrigo Avila wrote:
> Hi!
> When I create a new JSP file in tomcat 5.0.24 and try to run it, the
> Tomcat send me this error:
>
> 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] Compiling 1 source file
>
> /usr/local/jakarta-tomcat-5.0.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7:
> org.apache.jsp.web.Test_jsp is not abstract and does not override
> abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase
> public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase
> ^
> 1 error
>
>
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
> [...]
>
> The jsp file is Test.jsp. I don try to compile it manually; that error
> appear when Tomcat try to compile it. I try clean work/ directory; no
> sucess. I try to change to newest Tomcat binary: no sucess. And, it
> occur in only one context. If I create another context, create a new
> .jsp file, all works ok.
>
> I make searches in Google, but nothing resolve my problem.
>
> Thanks the attention!
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org