Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5 on hosting service

 
s liu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic