This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DataSource Error on a Shared Tomcat Java host" Watch "DataSource Error on a Shared Tomcat Java host" New topic
Author

DataSource Error on a Shared Tomcat Java host

Chan Yan
Greenhorn

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:

test.jsp
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DataSource Error on a Shared Tomcat Java host
 
Similar Threads
DataSource Error on a Shared Tomcat Java host
Solution ------ Cannot create JDBC driver of class '' for connect URL 'null'
JDBC connection error on a share Tomcat host
Struts, ''dataSource'' is null
DataSource is Null in JNDI Connection with Tomcat