Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Apache server - tomcat - jk, virtual hosts, database/context.xml question?

843859Nov 11 2005 — edited Dec 5 2005
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2006
Added on Nov 11 2005
2 comments
127 views