Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Register a resource (database) in Tomcat.  RSS feed

Dmitry Zhuravlev
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!