Tuesday, May 19, 2015

on
In this tutorial, let us see how to change the error message  "SRVE0255E: A WebGroup/Virtual Host to handle /Your Application Name/ has not been defined." to customized error message.

You may get the error, when you access an application.
   for Example, when you hit the URL http://localhost:9080/TestWeb/, the below error occurs.

SRVE0255E: A WebGroup/Virtual Host to handle /TestWeb/ has not been defined.

IBM WebSphere Application Server

The above error is thrown by Websphere Application Server not by IBM Http server.

If the application requested by you is not found on the server, then the error occurs.  Some times the below situation may occur. You have deployed an application (For Eg. EmployeeWeb) on production. But when application changes occur, you may need to deploy new ear, by uninstalling old ear. When you uninstall ear, the user may get the  error "SRVE0255E: A WebGroup/Virtual Host to handle /EmployeeWeb/ has not been defined". You may want to change the  error message to customized error message. Follow the below steps to change the error message.

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 properies 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)





Now new property added. You have to restart the WAS.


Now you can check any application which is not found on the server.


http://localhost:9080/MyTest




Note : The above new property will work with latest WebSphere Application Server.

11 comments:

  1. Thanks a lot...
    nice share... how to handling error page 500 and what the name properties in web container?

    ReplyDelete
  2. When choosing an application server platform on which to run applications and services, architects and developers need to know that WAS will support new JEE features and improved coding practices. IBM Web Application Server has evolved as a product with each new update of the JEE standard, and IBM has continued to provide new versions of WAS to support available features of each new JEE release.

    ReplyDelete
  3. Beberapa Cara Merawat Ayam Aduan Untuk Menjadi Ganas Dan Sadis Klik Di Sini

    Agen Sabung Ayam Online Terbaik Dan Juga Terpercaya http://www.bakarayam.co

    Informasi Terlengkap Mengenai Sabung Ayam

    http://bakarayam330033.blogspot.com/2018/08/memperkokoh-otot-ayam-jago-bangkok.html/

    ReplyDelete
  4. Really It is very useful information for us. thanks for sharing ..
    CEH Training In Hyderabad

    ReplyDelete
  5. online IT support
    Great post . thanks for sharing a clear step by step process on getting in the nice.thank you.

    ReplyDelete

  6. Firstly talking about the Blog it is providing the great information providing by you . Thanks for that . Next i want to share some information about websphere tutorial .

    ReplyDelete
  7. Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck with the upcoming Profile.
    To learn more about Increase Spacebar Speed. Please do refer to the Profile Why Spacebar Speed. Here you will learn more. Thank you for your attention.

    ReplyDelete
  8. Wow. That is so elegant and logical and clearly explained. Brilliantly goes through what could be a complex process and makes it obvious.I want to refer about the best
    sap abap training in bangalore . They Provide 100% Placement Program .

    ReplyDelete