Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

war files.

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you put the war file say beer.war under webapp/ and make a first request to it, Tomcat will unpack it webapp/beer and after
that it will behave like a normal webapp. Note that webapp/beer.war and webapp/beer/ will exists after the war file is unpacked.
However if you delete the webapp/beer/ and keep the beer.war then welcome files will behave a bit differently as explained below

The static content in the WAR is as follows
/foo/index.html
/foo/default.jsp
/foo/orderform.html
/foo/home.gif
/catalog/default.jsp
/catalog/products/shop.jsp
/catalog/products/register.jsp
� A request URI of /foo will be redirected to a URI of /foo/. --> In an unpacked version it will go to the welcome file
� A request URI of /foo/ will be returned as /foo/index.html.
� A request URI of /catalog will be redirected to a URI of /catalog/. --> In an unpacked version it will go to the welcome file
� A request URI of /catalog/ will be returned as /catalog/default.jsp.
� A request URI of /catalog/index.html will cause a 404 not found
� A request URI of /catalog/products will be redirected to a URI of /catalog/products/.
� A request URI of /catalog/products/ will be passed to the �default� servlet,
if any. If no �default� servlet is mapped, the request may cause a 404 not

Do not move this to other forum. I am asking this question wrt SCWCD only.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Deepak Jain:
[QB]Once you put the war file say beer.war under webapp/ and make a first request to it, Tomcat will unpack it webapp/beer


you just start the server . it will unpack the war. no need for first request

HOpe This Helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic