My event source application encounters an error when
trying to send an event to the event server. The log file indicates
a ServiceUnavailableException with the message "A communication failure
occurred while attempting to obtain an initial context with the provider
URL."
Cause
This problem indicates that the event
source application cannot connect to the event server. This might
be caused by either of the following conditions:
- The event server is not running.
- The event source application is not configured to use the correct
JNDI provider URL.
Remedy
To correct this problem, follow these
steps:
- To check the status of the event server, go to the /WebSphere/V6R2/DeploymentManager/default/bin/bin
directory and run the serverStatus command:
serverStatus servername
- If the event server is not running, use the startServer command to start it:
startServer servername
- Check the host name and Remote Method Invocation (RMI) port for
the server containing the application that can not connect to the
event server. Confirm that the same values are specified in the JNDI
URL configured for the event source application. If the CEI server
is located on another server, then the JNDI needs to be resolved with
that remote deployment target.