This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Register a resource (database) in Tomcat. 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 "Register a resource (database) in Tomcat." Watch "Register a resource (database) in Tomcat." New topic

Register a resource (database) in Tomcat.

Dmitry Zhuravlev
Ranch Hand

Joined: Apr 14, 2010
Posts: 91
Gentlemen, need help with registering Tomcat resources.

My task is to deploy a Java CMS named dotCMS on remote Tomcat server. This CMS is already running on local server, but a problem is that dotCMS by default uses ROOT.xml file located in tomcat\conf\Catalina\localhost to register a database connection with Resource tag. I cannot change ROOT.xml on hosting server, and also I suppose its better to place resource definitions in special context.xml file for each application deployed. Thats why I copied Resource tag into the context.xml located in webapps/myApp/META-INF and removed the ROOT.xml file. Unfortunately this helped me not: my application failed to start.

Where I went wrong?
May be I need to change some other tomcat settings?
I agree. Here's the link:
subject: Register a resource (database) in Tomcat.
Similar Threads
JAMon and DataSources
DB connection pool per webapp if defined in context.xml?
tomcat connection pooling
can anybody tell me if dotcms provides web services?
How to set default "Context Root" for all urls in the webapp?