• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Want to separate applications

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic