Simple problem (hopefully) and I've been here before, but for some reason I can't find my way through this error.
Here's the scenario:
I've written a
servlet which I'm deploying in
Tomcat 5.5 using Apache 2.2 as the web server. The servlet is a controller for one domain I have on my server (lets call it the 'abc' domain.) The servlet is bundled into a war file and deploys into Tomcat with no errors. The servlet-mapping in the web.xml file defines the following:
<!-- Controller Servlet Configuration -->
<servlet>
<servlet-name>controller</servlet-name>
<servlet-class>com.abc.framework.controller.ControlServlet</servlet-class>
</servlet>
<!-- Controller Servlet Mapping -->
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>/abc</url-pattern>
</servlet-mapping>
I've configured my httpd-vhosts.conf file to do a proxy pass through as follows:
<VirtualHost
www.abc.com> DocumentRoot /work/abc/abc-app/deploy/var/www/htdocs/abc
ServerName
www.abc.com ServerPath /abc
ErrorLog logs/abc/www.abc.com-error_log
CustomLog logs/abc/www.abc.org-access_log common
ProxyRequests Off
ProxyPass /
http://localhost:8080/abc ProxyPassreverse /
http://localhost:8080/abc </VirtualHost>
When I point my browser at
http://www.abc.com/, I get a Tomcat error "The requested resource (/abc) is not available."
This indicates to me that the proxy pass through is working properly in Apache, but that Tomcat is not handing off the request to my serlvet.
What have I done wrong?
Thanks for the help.
Darren Hall
[ July 18, 2006: Message edited by: Bear Bibeault ]