aspose file tools*
The moose likes Tomcat and the fly likes Can't run code outside CATALINA_HOME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Watch "Can New topic
Author

Can't run code outside CATALINA_HOME

Dave Berkheimer
Greenhorn

Joined: Feb 05, 2001
Posts: 26
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 ]

Sun Certified Java Programmer
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

That should work.
Is c:\testapp a valid webapp?
Does it have a WEB-INF directory in it?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Dave Berkheimer
Greenhorn

Joined: Feb 05, 2001
Posts: 26
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Feb 05, 2001
Posts: 26
That did the trick.

Ben... you are indeed "Da Man"

Many thanks
D.B.
 
 
subject: Can't run code outside CATALINA_HOME