This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Want to separate applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Want to separate applications" Watch "Want to separate applications" New topic
Author

Want to separate applications

Kevin Adams
Greenhorn

Joined: Nov 12, 2000
Posts: 21
I'm using Tomcat 4.01 in Windows 98.
I want to separate all of my java classes into a directory that I created off of the root. How to I tell Tomcat to look there for my classes?
Thanks in advance,
Kevin
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Is there a problem with putting your class files in the place that Tomcat will, by default, look for class files?

in CATALINA_HOME/common/lib

Having your classes off of the root (if you meant the 'root' of Tomcat) makes them browsable over the web.
Kevin Adams
Greenhorn

Joined: Nov 12, 2000
Posts: 21
Originally posted by Mike Curwen:
Is there a problem with putting your class files in the place that Tomcat will, by default, look for class files?

in CATALINA_HOME/common/lib

Having your classes off of the root (if you meant the 'root' of Tomcat) makes them browsable over the web.

I just wanted to achieve the same concept as the "My Documents" folder. It's a generic folder that doesn't get removed when you uninstall programs. That's the sort of the functionality I was going after. When I said root, I meant the C:\ or D:\ root. I thought maybe I could make something like C:\apps\myapp1\web-inf... C:\apps\myapp2\web-inf... etc...
Anyway, thanks for the help.
Kevin
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Oh, then yes you can.

You can separate your webapps from the Tomcat directory structure.

In server.xml (CATALINA_HOME/conf/server.xml), you'll find <context> entries

Check this document for the details:
CATALINA_HOME/webapps/tomcat-docs/config/context.html
Kevin Adams
Greenhorn

Joined: Nov 12, 2000
Posts: 21
Originally posted by Mike Curwen:
Oh, then yes you can.

You can separate your webapps from the Tomcat directory structure.

In server.xml (CATALINA_HOME/conf/server.xml), you'll find <context> entries

Check this document for the details:
CATALINA_HOME/webapps/tomcat-docs/config/context.html

Thanks, Mike. That's exactly what I was looking for. I appreciate your help.
Kevin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Want to separate applications
 
Similar Threads
Using servlet technology with Microsoft IIS
Sharing problems
using separate tomcat
Starting tomcat from source code
Apache Tomcat/4.0.1 - HTTP Status 404