server.xml for tomcat integrated with IntelliJ

Hi,

I am trying to figure out how to use my own server.xml file while using Tomcat v5 through the IDE. I've tried just replacing the server.xml file in the Tomcat installation but my datasources don't seem to exist when I start the server.

I see this in the console:
INFO: Processing Context configuration file URL file:C:\Documents and Settings\matt.rossner\.IntelliJIdea60\system\tomcat__c4386d85\conf\Standalone\localhost\ROOT.xml

I've noticed there is a server.xml file in the conf directory that is quite empty, then there is server.xml.0 which is the one from my actual tomcat installation, so which one is getting used here, and how can I get it to use the good one.

I've also tried adding a context descriptor through the IDE and copying the relevant information (datasources and stuff) to this section in hopes that it would work but this does not work either.

Any thoughts on this?
Thanks

3 comments
Comment actions Permalink

Did you try:
- exit Idea
- remove directories tomcat_*
- restart Idea/

Tom

rozner wrote:

Hi,

I am trying to figure out how to use my own server.xml file while using Tomcat v5 through the IDE. I've tried just replacing the server.xml file in the Tomcat installation but my datasources don't seem to exist when I start the server.

I see this in the console:
INFO: Processing Context configuration file URL file:C:\Documents and Settings\matt.rossner\.IntelliJIdea60\system\tomcat__c4386d85\conf\Standalone\localhost\ROOT.xml

I've noticed there is a server.xml file in the conf directory that is quite empty, then there is server.xml.0 which is the one from my actual tomcat installation, so which one is getting used here, and how can I get it to use the good one.

I've also tried adding a context descriptor through the IDE and copying the relevant information (datasources and stuff) to this section in hopes that it would work but this does not work either.

Any thoughts on this?
Thanks

0
Comment actions Permalink

I just tried that but the result is the same, any other ideas? Thanks for your help.

0
Comment actions Permalink

I have the same question. Can someone answer please...

0

Please sign in to leave a comment.