jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases and the fly likes DataSource Error on a Shared Tomcat Java host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DataSource Error on a Shared Tomcat Java host" Watch "DataSource Error on a Shared Tomcat Java host" New topic

DataSource Error on a Shared Tomcat Java host

Chan Yan

Joined: Oct 21, 2005
Posts: 15
Hello everyone,
I use a Shared Tomcat Java hosting to host my site and have below error message:

But there is no problem to run on my local computer (I use Tomcat 5.5.25), and my site runs well on the local computer.

The host provider sent me a piece of messages in server log file, it said:

I have checked the web.xml, it is there under '/WEB-INF/'. How can it be missing? And they said, 'You should also install log4j to have your own Tomcat log to debug your application.'. I do have log4j log file inside the application. But I think that the error is on tomcat server starting. How can I log these kind of messages into my application log file?
I uploaded a small java class and jsp file to the server to test the db connection (see the below). I get same error message on the screen:

Does anyone know how I can fix the problem and what I can do next? Thanks in advance.

Related files are below.

A part of web.xml

Java test class:

I agree. Here's the link: http://aspose.com/file-tools
subject: DataSource Error on a Shared Tomcat Java host
It's not a secret anymore!