You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Phillip Rhodes <rh...@rhoderunner.com> on 2000/11/09 06:55:31 UTC

make tomcat use apache docroot for jsps?

How can I get tomcat to look in the webserver document root for a JSP?  I call a jsp in my apache document root and I get the following error:
JSP file "/usr/local/jakarta-tomcat/webapps/ROOT/hello.jsp (No such file or directory)" not found 

I am running apache 1.3.9, latest tomcat.  FreeBSD 3.4 stable, JDK1.2.2 native.
Thanks!

AddType test/jsp .jsp
AddHandler jserv-servlet .jsp

LoadModule jserv_module libexec/apache/mod_jserv.so
<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServLogFile /usr/local/etc/apache/mod_jserv.log

ApJServDefaultHost localhost
ApJServDefaultPort 8007

# 1 Creating an Apache virtual host configuration
NameVirtualHost 216.55.177.74

<VirtualHost 216.55.177.74>
DocumentRoot /usr/local/www/rhoderunner
ServerName www.rhoderunner.com
ApJServMount /examples ajpv12://localhost:8007/examples
</VirtualHost>
</IfModule>