This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes web.inf location 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 "web.inf location" Watch "web.inf location" New topic
Author

web.inf location

Mike Dev
Greenhorn

Joined: Jul 11, 2005
Posts: 11
Hi,

I have a list of application and folders that I would like to include in Tomcat. I already modified the server.xml to use my own directory and not the Tomcat default's one. The problem I have now is that my web.inf is growing larger and larger. Is there any possibility to having one web.xml for each application. Currently, my web.xml is in the WEB-INF folder.

Thanks.
Mike
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Per the spec there is only one web.xml for each application.
It sounds to me like you have several projects running under on application.

To learn more about the definition of a web application in J2EE, you can download the Servlet Spec (link in my signature).
If you like, you can also download and run any of the demo apps that are one my site. Each is packaged as a war file that will unpack into a complete web application -- with it's own WEB-INF folder and web.xml file.

http://simple.souther.us

PS: Until you have a firm understanding of the concept, I recommend NOT altering the Tomcat config files. Just build your webapps in the tomcat/webapps folder.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mike Dev
Greenhorn

Joined: Jul 11, 2005
Posts: 11
OK. I see. I am studying for the Web Dev exam and was experimenting some stuff and wondered whether I missed something about the DD. I think that WAR files will simplify things. I agree with your suggestion: keep it simple.

Thanks!
Mike



Originally posted by Ben Souther:
Per the spec there is only one web.xml for each application.
It sounds to me like you have several projects running under on application.

To learn more about the definition of a web application in J2EE, you can download the Servlet Spec (link in my signature).
If you like, you can also download and run any of the demo apps that are one my site. Each is packaged as a war file that will unpack into a complete web application -- with it's own WEB-INF folder and web.xml file.

http://simple.souther.us

PS: Until you have a firm understanding of the concept, I recommend NOT altering the Tomcat config files. Just build your webapps in the tomcat/webapps folder.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.inf location
 
Similar Threads
tomcat error
WEB.XML file not found when using Ecllipse IDE
Servelet Request Redirect
Newbie: get tomcat run helloworld
how to open msword file in weblogic