Apache server - tomcat - jk, virtual hosts, database/context.xml question?
843859Nov 11 2005 — edited Dec 5 2005Hello,
I have an web application that runs perfectly in Tomcat 5.5 when running tomcat stand-alone.
I also have Apache HTTP server integrated with Tomcat using the jk connector and running virtual hosts in a mod_jk.conf file, which is working for html files. When I run apache and tomcat at the same time, the jsp opens but the servlet cannot get a database connection.
To run virtual hosts and apache and tomcat, I added this host container to server.xml:
<Host name="www.mydomain.com" debug="0" appBase="d:/WebApps/mydomain"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="" debug="0"/>
</Host>
Does anybody see anything wrong with this? Is there some reason why the context.xml (which contains the database info) is not being read?
Any suggestions are greatly appreciated.
Thank you,
Logan