aspose file tools*
The moose likes JBoss/WildFly and the fly likes Remove Jboss home page in 501GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Remove Jboss home page in 501GA" Watch "Remove Jboss home page in 501GA" New topic
Author

Remove Jboss home page in 501GA

aman nagi
Greenhorn

Joined: Jun 15, 2010
Posts: 5

Hi,

I have 2 wars deployed ABC and DEF and removed ROOT.war from JBOSS501GA folder.

For ABC.war i have <context-root>\<context-root> and for DEF it is <context-root>\DEF<context-root>

but when i am hitting http://server/ it gives me a 404 page error and when i hit http://server/DEF it does takes me to the second application

I need to redirect default page to my ABC war

Please note that i am using an Apache layer and have set up virtual ip for my second application DEF in http.conf file. I don't think apache have anything to do with the problem. I Just cannot figure it out.

~Aman
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Do not use back-slashes in context-root! Backslashes are usually interpreted as escape characters. Use forward slashes instead.


JBoss In Action
aman nagi
Greenhorn

Joined: Jun 15, 2010
Posts: 5

still even with forward slashed i am getting HTTP 404 when i hit http://server/.

<jboss-web>
<security-domain>java:/jaas/security-module</security-domain>
<context-root>/</context-root>
</jboss-web>

~Aman
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Hi,

You can follow the below article for step by step changes that needs to be done.

http://weblogic-wonders.com/weblogic/2011/03/11/changing-default-application-in-jboss/


Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Have you defined a welcome-file-list win web.xml? Did you try with a URL that references a file, example: http:/server/index.html?

when i hit http://server/.

Did you change the HTTP port from 8080 to 80? If not you will have to use http://server:8080/
aman nagi
Greenhorn

Joined: Jun 15, 2010
Posts: 5

Appreciated peter!!! and noted your point on posts.
got the problem, i was using a different port.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Remove Jboss home page in 501GA