tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel Rappin <nrap...@sockeye.com>
Subject Re: JSP Compiler output?
Date Wed, 18 Jun 2003 11:08:31 GMT
One other thought: I notice that the compiler messages look like ant 
messages -- could the problem be that ant is not in my classpath or 
system path some related ant setting?

Noel

Noel Rappin wrote:

> I replicated this experiment exactly in my environment.  Tomcat 
> 4.1.24, Linux, JSDK 1.4.1_01.  Is it a Linux thing?
>
> Here's my stack trace in localhost:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>     at 
> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:500) 
>
>     at 
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150) 
>
>     at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195) 
>
>     at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> By the way, I really appreciate your time in helping with this.
>
> Noel
>
> Tim Funk wrote:
>
>> You should get something somewhere. For example ... With 4.1.24 
>> (win2k, jdk1.3, but 1.4 is the same result), I have a file called 
>> foo.jsp (at /) with the contents:
>> <% more cowbell %>
>>
>> My error screen is attached. In the logs 
>> (localhost_log.2003-06-17.txt) I get:
>> 2003-06-17 16:34:06 StandardWrapperValve[jsp]: Servlet.service() for 
>> servlet jsp threw exception
>> 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] Since fork is true, ignoring compiler setting.
>>     [javac] Compiling 1 source file
>>     [javac] Since fork is true, ignoring compiler setting.
>>     [javac] 
>> C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: 
>> ';' expected
>>     [javac]  more cowbell
>>     [javac]              ^
>>     [javac] 
>> C:\opt\jakarta\tomcat4.1.24\work\Standalone\localhost\_\foo_jsp.java:41: 
>> cannot resolve symbol
>>     [javac] symbol  : class more
>>     [javac] location: class org.apache.jsp.foo_jsp
>>     [javac]  more cowbell
>>     [javac]  ^
>>     [javac] 2 errors
>>
>>
>>
>>     at 
>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)

>>
>>
>> ...
>>
>>
>>
>>
>>
>> -Tim
>>
>>
>> Noel Rappin wrote:
>>
>>> Okay.  I did a clean install of tomcat.  I placed a compilation 
>>> error in one of the example JSPs.  I am now seeing this in the logs:
>>>
>>> * catalina.out: start/stop messages
>>> * localhost_examples: a stack trace saying that there was a 
>>> JasperException: unable to compile class for JSP
>>> * localhost_log: messages about servlet loading.
>>>
>>> What I don't see is a message saying something useful about the 
>>> compilation error -- like "Compile failed on line 10, statement 
>>> expected" or some such.  Are those messages just not generated?
>>>
>>> Noel 
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> 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




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


Mime
View raw message