java.rmi.RemoteException can occur by defining multiple VirtualHosts with aliases that are not unique across all VirtualHosts defined.
 Technote (troubleshooting)
 
Problem(Abstract)
IBM® WebSphere® Application Server could not match your URI to an application deployed to the Server.
 
Cause
This exception can be caused by defining multiple VirtualHosts and a specific URI could match in more than one VirtualHost. You can find a verbose description in DOC APAR PQ92051. You can also refer to the WebSphere Application Server Information Center; search on the phrase How requests map to virtual host aliases.
 
Resolving the problem
Here is an excerpt from APAR PQ92051: This exception occurs because the desired application could not be found in the first virtual host on which an alias match was made. There is no way to determine which virtual host the Application Server will search first when looking for a matching alias.
For example, if the following is specified:
VHOST1: Aliases: myhost.com:80
VHOST2: Aliases: *:80
MyApp: Deployed to VHOST2,
contextRoot:/MyApp
URL: 'http://myhost.com/MyApp'

The URL can match on both VHOST1 and VHOST2. However, if the
Application Server matches on myhost.com in VHOST1. your request
will fail because MyApp is not deployed on VHOST1.

You can resolve this problem by doing one of the following:

  1. Use a single VirtualHost if possible.
  2. If using more than one VirttualHost, be cautious when coding Aliases in multiple VirtualHosts that a single URI could match on. Also, avoid using the * for the Alias hostname.
 
Related information
V5.0 Information Center
V5.1 Information Center
 
 
 


Document Information


Current web document: swg21188369.html
Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > HTTP Transport
Operating system(s): z/OS
Software version: 5.1
Software edition:
Reference #: 1188369
IBM Group: Software Group
Modified date: Mar 31, 2006