aspose file tools*
The moose likes Tomcat and the fly likes How does Tomcat know where to look for web applications? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How does Tomcat know where to look for web applications?" Watch "How does Tomcat know where to look for web applications?" New topic
Author

How does Tomcat know where to look for web applications?

Mike Rolf
Greenhorn

Joined: Mar 04, 2008
Posts: 13
Hey,

Simple Tomcat question hopefully, how does it know where to look for web applications, is it set in some xml file?

For example;

I have tomcat installed in ../servers/tomcat
I use netbeans to create a web app, which creates it in ../NetBeansProjects/WebApplication1

How does tomcat know to look in ../NetBeansProjects/WebApplication1 ?

Cheers,

Mike
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Things are a little different when you're using the embedded version of Tomcat that ships with a particular IDE.

For a default, standalone instance of Tomcat, the engines and hosts are defined in tomcat/conf/server.xml.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How does Tomcat know where to look for web applications?
 
Similar Threads
Communication between servlets of two different applications in Tomcat
Sending SMS through webapplication
Deployment of web application
Requesting the method in the WS hangs
Communication between servlets of two different applications