This content has been marked as final.
Show 5 replies
-
1. Re: Want to change the default page as my webapp's page
jaikiran Oct 9, 2007 6:39 AM (in response to vmayakri)See the first comment by Peter, at
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104203 -
2. Re: Want to change the default page as my webapp's page
vmayakri Oct 9, 2007 7:13 AM (in response to vmayakri)Thanks for your reply. Is it possible to set another web application as default? so that we can point out to the default page.
Thanks,
Venkatesh -
3. Re: Want to change the default page as my webapp's page
jaikiran Oct 9, 2007 7:45 AM (in response to vmayakri)"vmayakri" wrote:
Is it possible to set another web application as default? so that we can point out to the default page.
That's what we just did, isn't it? Did i understand your question wrong? -
4. Re: Want to change the default page as my webapp's page
vmayakri Oct 9, 2007 7:48 AM (in response to vmayakri)Hi,
Already I have deployed under /server/default/deploy/sample.war/*.* and I want to make this as a default web app. Instead of removing the ROOT.war, is it possiblt to make this as default?
Thanks,
Venkatesh -
5. Re: Want to change the default page as my webapp's page
jaikiran Oct 9, 2007 8:19 AM (in response to vmayakri)"vmayakri" wrote:
Hi,
Instead of removing the ROOT.war, is it possiblt to make this as default?
OK, i get what you are saying. I guess, you are worried about deleting the ROOT.war. Fair enough. I just tried the following on my setup and got it working:
1) Rename ROOT.war (present in server/xxx/deploy/jbossweb-tomcat55.sar/ or server/xxx/deploy/jboss-web.deployer depending on the JBoss version you are using) to some other name (Let's rename it to jboss-webconsole.war for simplicity).
2) Create a jboss-web.xml file in *your web-application's WEB-INF folder* containing the following:<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/</context-root> </jboss-web>
This should get the desired result. Now, whenever you access http://localhost:8080, your application will be considered the default application. Also, your concern that the ROOT.war web-application (which actually is the JBoss web console) will be lost, is addressed by this approach, as you can now access it using http://localhost:8080/jboss-webconsole (or whatever you renamed ROOT.war to).