Apache
Apache

Reputation: 1806

web sphere - Web Application not found error

I'm trying deploying my application in WAS 5 & 6, there is an error message "VirtualHost or Web application not found" "The web group default_host / RbsWeb has not been defined" as below image

when the application is down, there any way so that i can change/redirect to another .jsp page for this error, how this can be done, do need to do anything in default host under Server - Environment - Virtual Host

thanks in advance

enter image description here

Upvotes: 0

Views: 1464

Answers (3)

Michael Lucas
Michael Lucas

Reputation: 783

In WAS 6 and above you can use the following custom property (set on the server's Web Container in the admin console) to return a custom message: com.ibm.ws.webcontainer.webgroupvhostnotfound

I have found that this property can even contain html code! (this was tested on WAS 8.0.0.5)

Note that for WAS 6.0, 6.1 and 7.0 this feature is available as a fixpack. See PK85685.

Instructions:

  1. In the administrative console click Servers > Server Types > WebSphere application servers > server_name > Web Container Settings > Web container .
  2. Under Additional Properties select Custom Properties.
  3. On the Custom Properties page, click New.
  4. On the settings page, enter the name of the custom property that you want to configure in the Name field (com.ibm.ws.webcontainer.webgroupvhostnotfound in this case) and the value that you want to set it to in the Value field. (as I mentioned, the value can contain html)
  5. Click Apply or OK.
  6. Click Save on the console task bar to save your configuration changes.
  7. Restart the server.

Upvotes: 1

Manglu
Manglu

Reputation: 11344

Standard practice is to front the app server with a web server.

This page (VirtualHost or Web Application not found when you application is stopped) should come back as a 404 error back to the web server.

Use a web server redirect directive to a custom page that you want to display to your customers.

HTH Manglu

Upvotes: 0

Brett Kail
Brett Kail

Reputation: 33936

Try creating an application that has a WAR with a context-root of "/". That WAR should become the "default" when no other WAR is installed.

Upvotes: 1

Related Questions