• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to package Diiferent Context Root in a .WAR file

 
vijay dadhwal
Ranch Hand
Posts: 47
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i have a comm.war file, how do i package different context root say
/communciation in war file. So that whenever i deploy this war file on tomcat it takes context root as /communicate.

I did it successfully using server.xml <context ....>
but can i do such things from with in war file ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64992
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Setting up contexts is part of the container setup, not the web app setup.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I assume from the name of the config file (server.xml) that you're using Apache Tomcat?
 
vijay dadhwal
Ranch Hand
Posts: 47
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's Tomacat 6

regards
vj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic