Error when sending event (NameNotFoundException)

My event source application encounters an error when trying to send an event to the event service. The log file indicates a NameNotFoundException with a message such as First component in name events/configuration/emitter/Default not found.

Cause

This problem indicates that the event service is not available and might be caused by either of the following conditions:
  • The event service has not been deployed.
  • The event service is disabled.

Remedy

To deploy the event service:
  1. Start the wsadmin tool.
  2. Use the AdminTask object to run the deployEventService administrative command.
  3. Restart the server.
To enable the event service using the wsadmin tool:
  1. Start the wsadmin tool.
  2. Use the AdminTask object to run the enableEventService administrative command.
  3. Restart the server.
To enable the event service using the administrative console:
  1. Click Applications > Application Types > WebSphere enterprise applications > server > Container Services > Common Event Infrastructure Service.
  2. Select the Enable service at server startup property.
  3. Click OK to save your changes.
  4. Restart the server.