What version of Tomcat are you running?

If it's  < 5.5 you need to make sure that your JAVA_HOME environment
variable points to a full jdk not just a jre.





On Fri, 2004-10-15 at 10:59, Xeth Waxman wrote:
> Ben:
> 
> I changed it, and now I'm getting a different error - here's the head
> of the output:
> SEVERE: Javac exception
> Compile failed; see the compiler error output for details.
>         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
>         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
>         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:388)
>         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
>         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
>         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
> .java:555)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> .java:291)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
> 01)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:284)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:204)
>         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:742)
>         at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
> tionDispatcher.java:506)
>         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
> ispatcher.java:443)
>         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
> patcher.java:359)
>         at com.gcc.creditclaim.ConfirmClaim.processRequest(ConfirmClaim.java:115
> )
>         at com.gcc.creditclaim.ConfirmClaim.doPost(ConfirmClaim.java:42)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:284)
> 
> However, falling the stack trace I came across this:
> Unable to compile class for JSP
> 
> No Java compiler was found to compile the generated source for the JSP.
> This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the
>  JDK
> to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
> 
> If using an alternate Java compiler, please check its installation and access pa
> th.
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> No Java compiler was found to compile the generated source for the JSP.
> This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the
>  JDK
> to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
> 
> If using an alternate Java compiler, please check its installation and access pa
> th.
> I moved the tools.jar referenced into $CATALINA_HOME/common/lib and
> restarted as instructed, but I still get the same error.  I've got
> several other apps running on this server that are still functioning
> fine, and I'm not using an alternative JDK, so I guess you could say
> I'm stumped :)
> --Xeth
> 
> 
> 
> On Fri, 15 Oct 2004 10:33:48 -0400, Ben Souther <[EMAIL PROTECTED]> wrote:
> > Try:
> > 
> > <%@ page import="java.util.ArrayList, com.gcc.creditclaim.CreditClaim"%>
> > 
> > 
> > 
> > 
> > On Fri, 2004-10-15 at 10:28, Xeth Waxman wrote:
> > > Greetings all.  I have a jsp running on Tomcat 5.0.12.  When this jsp
> > > is called, I get the following exception:
> > >
> > > /ConfirmClaim.jsp(85,0) Unterminated &lt;%@ page tag
> > > org.apache.jasper.JasperException: /ConfirmClaim.jsp(85,0) Unterminated &lt;%@ p
> > > age tag
> > >         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
> > > andler.java:83)
> > >         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
> > > ava:402)
> > >         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
> > > ava:170)
> > >         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:553)
> > >         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1625)
> > >         at org.apache.jasper.compiler.Parser.parse(Parser.java:173)
> > >         at org.apache.jasper.compiler.ParserController.parse(ParserController.ja
> > >
> > > Here is the page tag on my JSP:
> > > <%@ page import="java.util.ArrayList", "com.gcc.creditclaim.CreditClaim"; %>
> > >
> > > I believe that since I'm trying to import a custom class, that's why
> > > the error is being tossed.  I did a google search for this issue, and
> > > could only find results (and the one page is chineese):
> > >
> > > http://www.google.com/search?q=%22Unterminated+%26lt%3B%25%40+page+tag%22&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
> > >
> > > As always, any help would be greatly appreciated!
> > 
> > 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to