Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't run code outside CATALINA_HOME

 
Dave Berkheimer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

I've been trying to setup tomcat in such a way that the source code is outside of the CATALINA_HOME directory. The location of my code is "c:\testapp". I assumed that all I needed to do was set the docbase in the apps xml file(testapp.xml) located in the localhost directory to accomplish this.

Example:
Context path="/testapp" docbase="c:\testapp"

But alas, it does not work.

I can't seem to find any clear answer as to how I accomplish this?

Any suggestion or help will be deeply apprecitated.

Thanks
D.B.
[ November 30, 2005: Message edited by: Dave Berkheimer ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That should work.
Is c:\testapp a valid webapp?
Does it have a WEB-INF directory in it?
 
Dave Berkheimer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the WEB-INF directory, as well as the necessary subdirectories are included. In order to make things as crystal clear as possible I'll include the entire contents of my testapp.xml file.

<Context path="/testapp" docbase="c:\testapp" debug="0" realoadable="true"/>

Thanks
D.B.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dave Berkheimer:
Yes, the WEB-INF directory, as well as the necessary subdirectories are included. In order to make things as crystal clear as possible I'll include the entire contents of my testapp.xml file.

<Context path="/testapp" docbase="c:\testapp" debug="0" realoadable="true"/>

Thanks
D.B.


I think I found it.
Try "docBase" instead of "docbase" (case sensitive).
 
Dave Berkheimer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That did the trick.

Ben... you are indeed "Da Man"

Many thanks
D.B.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic