tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis LESAGE" <alexis.les...@atosorigin.com>
Subject JSP compilation path
Date Wed, 07 Nov 2001 17:01:57 GMT
How can I rewrite the URL passed by IIS, Apache or NES to the Tomcat ajp12
connector
before the JSP compilation ?

The URL http://myserver:80/tomcat/HelloWorld/HelloWorld.jsp is redirected to
ajp12
and the server.xml file defines a context as follows :
<Context path="/tomcat" docBase="webapps" crossContext="false" debug="0"
reloadable="true" >
</Context>

The URL accessed by Tomcat is webapps/HelloWorld/HelloWorld.jsp but I have
this error :
Ctx( /tomcat ): JasperException: R( /tomcat + /HelloWorld/HelloWorld.jsp +
null)
Unable to compile class for JSP/...../jakarta-tomcat-3.2.3/
work/localhost_80802Ftomcat/_0002fHelloWorld_0002fHelloWorld_0002ejspHelloWo
rld_jsp_0.java:
15: Package monPackage not found in import.
import monPackage.*;
Calling directly the JSP through tomcat http works fine with the following
URL:
http://myserver:8080/HelloWorld/HelloWorld.jsp

Is the JSP compilation classpath linked to it's  URL ?
If so,
How can I get rid of "2Ftomcat." used for the JSP compilation ?
(the monPackage directory is under WEB-INF/classes and contains the
HelloWorld.class )

Configuration if needed : Tomcat 3.2.3 on SunOs2.6 /Solaris6 and NES 3.5.1

Thank's for your help

Al


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message