aspose file tools*
The moose likes Tomcat and the fly likes IS webapp folder must? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "IS webapp folder must?" Watch "IS webapp folder must?" New topic
Author

IS webapp folder must?

Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
Can we create our own folder for web application and place it where ever we wnat or should it be only wepapp folder with standard directory path?

Please help me?



Thanks & Regards,
Author
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

If you are talking about can your web application reside outside of the webapps folder, then yes you can do that. You just need to define your application's context path and location. In tomcat you can go into %CATALINA_HOME%/conf/Catalina/ and create an xml file there with something like this as the content


(This is all in reference to Tomcat)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Ankit Garg wrote: In tomcat you can go into %CATALINA_HOME%/conf/Catalina/ and create an xml file there with something


well Ankit, what is the name of the xml ? [i am not sure] you can put the contaxt tag inside the server.xml or create a context.xml under META-INF[which is preferable]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Here's the tomcat configuration reference. If you are talking about the server.xml of tomcat, then in that page you'll see

For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file. This is because it makes modifing the Context configuration more invasive since the main conf/server.xml file cannot be reloaded without restarting Tomcat.


I think this is what you are talking about
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

yes ankit .

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60979
    
  65

Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IS webapp folder must?