wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat Doubts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Doubts" Watch "Tomcat Doubts" New topic
Author

Tomcat Doubts

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I am using Tomcat 5.5.20..

Whether it is possible to have the application & deploy it other than webapps folder..?If so, how to do this?

Whether Tomcat is web server or web container.. ? What is Apache..?
[ January 05, 2007: Message edited by: Micheal John ]

Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41024
    
  43
A web app directory does not need to be in the webapps directory. You can use the docBase attibute of the Context to tell Tomcat where it is.

What's the difference between a web server and a web container?

Apache is a web server (see here)), and also the name of the project/foundation that is behind all the software at apache.org.


Ping & DNS - my free Android networking tools app
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
Thanks Ulf Dittmer..


I have tired to have the web application other than webapps folder:

I just created a war file for the wep application which is working properly under webapps folder.

Placed the war file under D:\MyAppln\BeerApplnWar.war

Created a new xml file called MyConf.xml as below:


Placed MyConf.xml file under D:\Tomcat-5.5.20\conf\Catalina\localhost

I don't know whether it's right place to place it..?

Restarted the web application and in the Admin Tool, I can able to see the Context(/MyConf) in the Host (localhost)..

But the BeerApplnWar.war was not deployed...

When i tried to http://localhost:8080/MyConf/
it's giving 404 error..?

Any help on it..?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41024
    
  43
If you use a war file, then docBase needs to point to the file, not the directory it's in, just like it's explained in the page I linked to.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Doubts
 
Similar Threads
Tomcat 5.1 is Application or WebServer
Server
Whether Tomcat handles Request ?
Problem invoking a servlet directly from FireFox browser
How to Deploye WAR in Tomcat?