webspherewebsphere-8

How to change the message "webgroup/virtual host to handle has not been defined"?


When I stop an application on Websphere 8.5, and try to access the application, I get the message: webgroup/virtual host to handle has not been defined which is normal.

I want to change this message to something else. Is this possible?


Solution

  • Found the solution :

    open IBM admin console

    https://localhost:9043/ibm/console

    Navigate to Servers ->Server Types -> WebSphere Application Server -> server1-> Web Container Settings -> Web container -> Custom Properties

    Click on New button to add new properties and fill the details as given below and Apply and Ok.

    Name : com.ibm.ws.webcontainer.webgroupvhostnotfound

    Value : Custom Error Message. (For Eg. Server is under maintenance. Please visit after some time)

    restart the WAS.