Thursday 8 November 2012

A WebGroup Virtual Host to handle has not been defined.

com.ibm.ws.webcontainer.util.VirtualHostContextRootMapper map SRVE0316W: Request matches the context root [/SpringMVC/*] under the virtual host alias of [node02:9080].
com.ibm.ws.webcontainer.util.VirtualHostContextRootMapper map SRVE0317W: You may need to add a new virtual host alias of *:<your port> to the same virtual host that [node02:9080] is under.
webcontainer  E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual Host to handle /SpringMVC/new_car.html has not been defined.


Solution:

From DMGR Go here:

Virtual Hosts > default_host > Host Aliases

Add a new entry */<node2 port> ( In my case default host port).
Restart node 2.
This resolved the issue.

6 comments:

  1. Worked like a charm

    ReplyDelete
  2. worked great for me too!

    ReplyDelete
  3. Thanks for this great info!

    ReplyDelete
  4. thank you Wasi, appreciate your post..!!

    ReplyDelete
  5. Thank you so much.

    ReplyDelete
  6. also, if there is an entry in:
    Virtual Hosts > default_host > Host Aliases
    which is not in serverindex.xml
    you might get an error like:
    com.ibm.ws.webcontainer.util.VirtualHostContextRootMapper map SRVE0316W: Request matches the context root [/my-app/*] under the virtual host alias of [*:80].

    either you may add to serverindex.xml a value or remove it from the virtual host.
    it happened to me when there are more then one domain at the same host with the same WAS 8.5.5.8 installation

    ReplyDelete