Skip to Content
0
Former Member
Feb 13, 2006 at 09:49 AM

Problem accessing EJB

17 Views

Hi,

when i try to get an instance of a stateless EJB through its creat() method, I've got this:

#1#com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create().

at com.icwapi.apisystem.ApiStartHomeImpl0.create(ApiStartHomeImpl0.java:115)

at com.icwapi.apisystem.ApiStartHomeImpl0p4_Skel.dispatch(ApiStartHomeImpl0p4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized!

at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)

at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)

at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)

at com.icwapi.apisystem.ApiStartHomeImpl0.create(ApiStartHomeImpl0.java:113)

... 10 more

I have set permission to this EJB in ejb-jar.xml:

<security-role-ref>

<role-name>all</role-name>

<role-link>all</role-link>

</security-role-ref>