You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by dh...@curvet.net on 2003/12/24 10:01:08 UTC

jsp compilation error

Hi all,

         i Set up every thing for tomcat and postgresql and now i created a jsp file and accessing a bean in that by using useBean tag ,by opening the jsp file i am getting the following 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.16/work/Catalina/localhost/OnlineExam/org/apache/jsp/Jsp/welcome_jsp.java:6: '.' expected
import QuestionBean;
                   ^
1 error


        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
        org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


pls
Help to solve this problem 


Regards
Dhayalan.G

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: jsp compilation error

Posted by Antony Paul <an...@hotmail.com>.
Where is the java bean class file residing. It must be in WEB-INF\classes or
WEB-INF\lib(as jar file).
Antony Paul

----- Original Message -----
From: <dh...@curvet.net>
To: <to...@jakarta.apache.org>
Sent: Wednesday, December 24, 2003 2:31 PM
Subject: jsp compilation error


> Hi all,
>
>          i Set up every thing for tomcat and postgresql and now i created
a jsp file and accessing a bean in that by using useBean tag ,by opening the
jsp file i am getting the following 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.16/work/Catalina/localhost/OnlineExam/org/apac
he/jsp/Jsp/welcome_jsp.java:6: '.' expected
> import QuestionBean;
>                    ^
> 1 error
>
>
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:127)
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
51)
>
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
>         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> pls
> Help to solve this problem
>
>
> Regards
> Dhayalan.G
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org