Brendon,
I am having problems establishing the same configuration that you are
trying to do:
/home/domain1.com/servlet
/home/domain2.com/servlet
And accessing the jsps for each domain from the document root or below.
This way all the servlets and jsps are under the domain's doc root.
Being pretty green in tomcat installation (and yet to get it working for
an embedded configuration), I am not sure if this will work but hoping
it will.
Jeff Kilbride suggests a configuration:
> www.tld.com
> access to DocumentRoot in httpd.conf
> www.tld.com/mywebapp
> access to the docBase in server.xml
> ability to run JSP files in the docBase directory
> www.tld.com/servlet
> access to servlets/JSP in your WEB-INF/classes directory
> ability to run servlets/JSP from WEB-INF/classes
But I would like the config I mentioned earlier if it can work.
When I try to follow the same basic configuration you have, I get
"Internal Server Error" via a browser request and the mod_jk.log says:
[jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
jk_tcp_socket_rec
vfull failed
[jk_ajp13_worker.c (619)]: Error reading request
-------------------------------------
The only difference I between our configuration is the name of your test
servlet being servletexample (I assume) and mine being HelloWorldExample
and our declarations in web.xml:
You have:
> <servlet>
> <servlet-name>
> hello
> </servlet-name>
> <servlet-class>
> HelloWorldExample
> </servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>
> hello
> </servlet-name>
> <url-mapping>
> /hello
> </url-mapping>
> </servlet-mapping>
I have:
<servlet>
<servlet-name>HelloWorldExample</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
Do you have any insight after my comments or Jeff's suggestions?
Thanks,
Brian
--
+-------------------------------+----------------------------------+
| Brian Elliott | Unplugged Systems / ESWC.com / |
| President & CTO | ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged & Wireless Systems |
| | http://www.unpluggedsystems.com |
+-------------------------------+----------------------------------+