aspose file tools*
The moose likes JDBC and the fly likes JDBC connection error on a share Tomcat host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC connection error on a share Tomcat host " Watch "JDBC connection error on a share Tomcat host " New topic
Author

JDBC connection error on a share Tomcat 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 I don't have any problem to run on my local computer (I use Tomcat 5.5.25), and my site runs well on the local computer.

When I read doc on 'http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html'. I found this paragraph in the page:

In addition, the names and values of all <env-entry> elements included in the web application deployment descriptor (/WEB-INF/web.xml) are configured into the initial context as well, overriding corresponding values from conf/server.xml only if allowed by the corresponding <Environment> element (by setting the override attribute to "true").


Does anyone know how to this 'override' attribute to "true"? where is it suppose to be? Is it the issue to cause the error?

Thanks in advance.

----------
Here is my context.xml (under '/public_html/META-INF/') and part of web.xml (under '/public_html/WEB-INF/'). I have a test.jsp to test the connection. I found the error occurs at this line in class DBTest.java

conn = ds.getConnection();
-----------------

[ October 15, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

"north, cloud", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Failure to comply will result in the removal of your account.

bear
JavaRanch Sheriff
[ October 15, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC connection error on a share Tomcat host