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.
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.
Thanks a lot...
ReplyDeletenice share... how to handling error page 500 and what the name properties in web container?
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.
ReplyDeleteBeberapa Cara Merawat Ayam Aduan Untuk Menjadi Ganas Dan Sadis Klik Di Sini
ReplyDeleteAgen 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/
Really It is very useful information for us. thanks for sharing ..
ReplyDeleteCEH Training In Hyderabad
online IT support
ReplyDeleteGreat post . thanks for sharing a clear step by step process on getting in the nice.thank you.
This is my first time pay a quick visit at here and i am genuinely happy to read all at alone place.
ReplyDeletehttp://www.caradaftaridnplay.com
http://www.capsasusunonline.net
http://www.sbobetcasino338a.org
http://www.panduan-sbobet.com
http://www.daftarsbobetcasino338a.com
ReplyDeleteFirstly 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 .
Nice blog.
ReplyDeletepower bi training
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.
ReplyDeleteTo 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.
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
ReplyDeletesap abap training in bangalore . They Provide 100% Placement Program .
javaplay88 situs judi slot gacor idn poker casino sportsbook terbaik | Bongkar Trick Rahasia Slot Online Gacor Menang Banyak | Situs Slot Gacor Maxwin Malam Ini Mudah Menang | Situs Slot Gacor Online Joker123 Online Terbaik |
ReplyDelete