-
1. Re: Jboss AS Config - changing deployment context for ROOT.w
peterj Sep 26, 2008 8:21 PM (in response to meetoblivion)If I understand you correctly, you still want access to the "JBoss Home page" via some url such as http://localhost:8080/home
One possibility: rename ROOT.war to home.war and move it to the deploy directory
Another possibility: add a jboss-web.xml file to ROOT.war/WEB-INF and set the context (similar to what you did for your other app that is now using the "/" context) -
2. Re: Jboss AS Config - changing deployment context for ROOT.w
meetoblivion Sep 26, 2008 8:34 PM (in response to meetoblivion)That appears to work. I'm just curious why the default appears to be hard coded somewhere (or maybe it's just in a config file somewhere hidden?)
(btw, I did the previous by setting the path to / in application.xml, so this is technically my first use of jboss-web.xml) -
3. Re: Jboss AS Config - changing deployment context for ROOT.w
peterj Sep 27, 2008 1:25 PM (in response to meetoblivion)Yes, I think that ROOT.war by default is assigned the '/' context.
(you didn't indicate your WAR was deployed within an EAR, so I had to make a guess as to how you deployed) -
4. Re: Jboss AS Config - changing deployment context for ROOT.w
peterj Sep 27, 2008 1:38 PM (in response to meetoblivion)It appears to be worse than I thought. There is no "static String" set to "ROOT" which is used to identify the ROOT.war - instead the literal string "ROOT" is spread throughout the code. Along with literal strings for "/", ".war", "META-INF" and "WEB-INF". This leads me to believe that the code must be fairly old, I cannot imagine anyone writing this kind of code nowadays.