File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat 5 on hosting service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5 on hosting service" Watch "Tomcat 5 on hosting service" New topic

Tomcat 5 on hosting service

s liu

Joined: Jul 26, 2005
Posts: 3
I have some jsp pages connecting to MySQL database.
On my local machine I know the config difference
moving from Tomcat 4.1 to 5.5 -- in 5.5 there's no
need to edit server.xml and instead add a
[web app dir]/WEB-INF/context.xml file. Also my
application is deployed as a .war file in
[tomcat dir]/webapps/

Now I'm using a hosting service (, and
recently they moved from Tomcat 4.1 to 5.5, and my
MySQL connections are lost. Basically they share a
server and Tomcat among several customers, and add
this xml element in their server.xml on my behalf:
<Host name=""
<Context path="" reloadable="true"
docBase="/home/usmoliu1/public_html" debug="1"/>
s liu

Joined: Jul 26, 2005
Posts: 3
sorry the message got posted before I finish ...

basically the hosting service added some directives in
server.xml posting to my directory. And I couldn't get MySQL
connection after several tries. Any idea how to fix it?
The help desk at the service doesn't know but willing to
do whatever I ask them.

I agree. Here's the link:
subject: Tomcat 5 on hosting service
jQuery in Action, 3rd edition