One more types of errors with JDBC Adapter. After setting up the JDBC Adapter, I was getting an error message as shown below from my JDBC Adapter module.

[6/12/08 15:58:44:565 IST] 00000069 SecurityColla A   SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Bean)ejb/com/ibm/events/bus/EventBus createEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent):3 securityName: /UNAUTHENTICATEDaccessID: UNAUTHENTICATED is not granted any of the required roles: eventAdministrator eventCreator catalogAdministrator 
[6/12/08 15:58:45:003 IST] 00000069 ResourceAdapt W com.ibm.j2ca.extension.logging.cei.ErrorManager error(String msg, Exception ex, int code) Error Code:1
javax.ejb.AccessLocalException:   nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Bean)ejb/com/ibm/events/bus/EventBus createEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent):3 securityName: /UNAUTHENTICATEDaccessID: UNAUTHENTICATED is not granted any of the required roles: eventAdministrator eventCreator catalogAdministrator 
com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Bean)ejb/com/ibm/events/bus/EventBus createEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent):3 securityName: /UNAUTHENTICATEDaccessID: UNAUTHENTICATED is not granted any of the required roles: eventAdministrator eventCreator catalogAdministrator 
	at com.ibm.ws.security.core.SecurityCollaborator.performAuthorization(SecurityCollaborator.java:491)
	at com.ibm.ws.security.core.EJSSecurityCollaborator.preInvoke(EJSSecurityCollaborator.java:193)
	at com.ibm.ejs.container.EJSContainer.preInvokeAfterActivate(EJSContainer.java:3543)
	at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2840)
	at com.ibm.events.bus.EJSLocalStatelessEventBusEjb_08b07f2d.createEvent(Unknown Source)
	at com.ibm.events.emitter.impl.EventBusSender.sendEvents(EventBusSender.java:582)
	at com.ibm.events.emitter.impl.EmitterImpl.sendEventX(EmitterImpl.java:1986)

Fix for this error is also very easy. Login to admin console. Click on Applications -> Enterprise Applications -> Event Sever. From the page opened up. Click on Map security roles to users and groups. The page came up will list all the roles available for EventServer application. Select Everyone checkbox for required roles and Apply it. Save the changes to master configuration. Restart the application/server. We are done.

Share/Save/Bookmark

If you enjoyed this post, make sure you subscribe to my RSS feed!