my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5 on hosting service" Watch "Tomcat 5 on hosting service" New topic
Author

Tomcat 5 on hosting service

s liu
Greenhorn

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 (AnHosting.com), 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="www.usmobilelink.com"
appBase="/home/usmoliu1/public_html">
<Context path="" reloadable="true"
docBase="/home/usmoliu1/public_html" debug="1"/>
s liu
Greenhorn

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.

thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat 5 on hosting service
 
Similar Threads
Servlet 404 and JkMount configuration - encountered some problem (Apache/Tomcat)
Context path in tomcat 5.5 problems with mod_jk
My web.xml is good?, why no run my servlets into folder /servlets/ ???
server.xml problem
include doesn't recognize relative path from sub folder