Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IS webapp folder must?

 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)...
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64980
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Tomcat questions in the Tomcat forum. I have moved this post there for you.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic