File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 separate tomcat
Sharing problems
Apache Tomcat/4.0.1 - HTTP Status 404
Using servlet technology with Microsoft IIS
Starting tomcat from source code