aspose file tools*
The moose likes JBoss/WildFly and the fly likes Removing JBoss default page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Removing JBoss default page" Watch "Removing JBoss default page" New topic
Author

Removing JBoss default page

Sham Phadtale
Ranch Hand

Joined: Jul 29, 2008
Posts: 75
Hi....
I am trying to remove JBoss default page. I removed JBoss\jboss-5.1.0.GA\server\default\deploy\ROOT.war folder and added jboss-web.xml with
<jboss-web>
<context-root>/</context-root>
</jboss-web>
I am getting my application home page when I run run.bat file.
But when i tried JBoss as windows service I am getting error page. Is it anything I need to change while using JBoss as windows service to get my application home page as default page?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Sham, welcome to JavaRanch

Sham Phadtale wrote:Hi....
But when i tried JBoss as windows service I am getting error page.

What's the error code/page?

Is it anything I need to change while using JBoss as windows service to get my application home page as default page?


How did you install JBoss AS as a service? And what params are you passing to the service while starting? Are you sure you are starting the correct JBoss AS "default" configuration?

[My Blog] [JavaRanch Journal]
Sham Phadtale
Ranch Hand

Joined: Jul 29, 2008
Posts: 75
Thanks Jai.
When I typed http://localhost I get -
Internet Explorer cannot display the webpage
When I typed http://<serverIp>; - Explorer waits for page long time and remain in waiting.

I am using wrapper to run jboss as window service. It works fine by removing above change. I have passed some classpath variables(wrapper.jar, Java home), memory usage parameters.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

How did you go about setting up JBoss AS to run as a service? My guess is that the service failed to start, but not knowing which mechanism you used, it is hard to help you.


JBoss In Action
aman nagi
Greenhorn

Joined: Jun 15, 2010
Posts: 5

Hi Peter i am facing a same kind of problem.

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 dont 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: 5845
    
    7

aman, welcome to Java Ranch, but please do not double-post - it wastes everyone's time and also makes having a comprehensive discussion difficult.
http://www.coderanch.com/t/540379/JBoss/Remove-Jboss-home-page-GA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Removing JBoss default page