You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Schalk Neethling <sc...@volume4.co.za> on 2004/08/12 19:21:07 UTC

Servlet.service error

Hey there all!

I am running Tomcat 5.0.25 on Windows XP. I have set-up a .jsp in my 
web.xml so that I can all it as I do servlets:

<servlet>
     <servlet-name>footer</servlet-name>
   <jsp-file>/secure/includes/footer.jsp</jsp-file>
</servlet>
<servlet-mapping>
     <servlet-name>footer</servlet-name>
     <url-pattern>*.footer</url-pattern>
</servlet-mapping>

When I call a page that includes this .jsp as follows:
<jsp:include page="process.footer" flush="true" />

I get the following error in the Tomcat log:
2004-08-12 14:43:41 ApplicationDispatcher[/lawillustrated] 
Servlet.service() for servlet footer threw exception
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 path.

I did copy the tools.jar from my Java sdk to common/lib and also have 
set my Environment Variables to my JAVA_HOME/lib/ for both user and 
system. Restarted my system as well as Tomcat. Still get exactly the 
same result. All other .jsp's that are not mapped in the web.xml work 
fine without any errors. Any idea as to what is going wrong? Thanks!

-- 
Kind Regards
Schalk Neethling


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


RE: Servlet.service error

Posted by Mark Thomas <ma...@apache.org>.
Yes. Try posting on the tomcat-user mailing list.

Mark 

> -----Original Message-----
> From: Schalk Neethling [mailto:schalk@volume4.co.za] 
> Sent: Thursday, August 12, 2004 10:29 PM
> To: Tomcat Developers List
> Subject: Re: Servlet.service error
> 
> Hey all!
> 
> Does anyone have a suggestion here, or I am missing something simple?
> 
> Schalk Neethling wrote:
> 
> > Hey there all!
> >
> > I am running Tomcat 5.0.25 on Windows XP. I have set-up a 
> .jsp in my 
> > web.xml so that I can all it as I do servlets:
> >
> > <servlet>
> >     <servlet-name>footer</servlet-name>
> >   <jsp-file>/secure/includes/footer.jsp</jsp-file>
> > </servlet>
> > <servlet-mapping>
> >     <servlet-name>footer</servlet-name>
> >     <url-pattern>*.footer</url-pattern>
> > </servlet-mapping>
> >
> > When I call a page that includes this .jsp as follows:
> > <jsp:include page="process.footer" flush="true" />
> >
> > I get the following error in the Tomcat log:
> > 2004-08-12 14:43:41 ApplicationDispatcher[/lawillustrated] 
> > Servlet.service() for servlet footer threw exception
> > 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 path.
> >
> > I did copy the tools.jar from my Java sdk to common/lib and 
> also have 
> > set my Environment Variables to my JAVA_HOME/lib/ for both user and 
> > system. Restarted my system as well as Tomcat. Still get 
> exactly the 
> > same result. All other .jsp's that are not mapped in the 
> web.xml work 
> > fine without any errors. Any idea as to what is going wrong? Thanks!
> >
> 
> -- 
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.President
> Volume4.Development.Multimedia.Branding
> emotionalize.conceptualize.visualize.realize
> Tel: +27125468436
> Fax: +27125468436
> email:schalk@volume4.co.za
> web: www.volume4.co.za
>  
> This message contains information that is considered to be 
> sensitive or confidential and may not be forwarded or 
> disclosed to any other party without the permission of the 
> sender. If you received this message in error, please notify 
> me immediately so that I can correct and delete the original 
> email. Thank you.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 



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


Re: Servlet.service error

Posted by Schalk Neethling <sc...@volume4.co.za>.
Hey all!

Does anyone have a suggestion here, or I am missing something simple?

Schalk Neethling wrote:

> Hey there all!
>
> I am running Tomcat 5.0.25 on Windows XP. I have set-up a .jsp in my 
> web.xml so that I can all it as I do servlets:
>
> <servlet>
>     <servlet-name>footer</servlet-name>
>   <jsp-file>/secure/includes/footer.jsp</jsp-file>
> </servlet>
> <servlet-mapping>
>     <servlet-name>footer</servlet-name>
>     <url-pattern>*.footer</url-pattern>
> </servlet-mapping>
>
> When I call a page that includes this .jsp as follows:
> <jsp:include page="process.footer" flush="true" />
>
> I get the following error in the Tomcat log:
> 2004-08-12 14:43:41 ApplicationDispatcher[/lawillustrated] 
> Servlet.service() for servlet footer threw exception
> 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 path.
>
> I did copy the tools.jar from my Java sdk to common/lib and also have 
> set my Environment Variables to my JAVA_HOME/lib/ for both user and 
> system. Restarted my system as well as Tomcat. Still get exactly the 
> same result. All other .jsp's that are not mapped in the web.xml work 
> fine without any errors. Any idea as to what is going wrong? Thanks!
>

-- 
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you.



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