on 02-13-2006 9:49 AM
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>
This problem occurs when using Tomcat and WEB AS on one machine ( which is strange ).
If i decouple them, there is no such problem or it comes rarely.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i don't understand you. Can you explain what & where i have to write something ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI vasil ,
from this stack trace could realize that user guest don't have the permission to execute this create method.
have you given the method permission in ejb-jar.xml?.
Regards
Kishor gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI vasil ,
In your EJB Project ,
In the ejb-j2ee-engine.xml file
click on the security roles Tab,
- Here u can see the roles u have created.
- click on particular role
for one particular role,
- in the right side , there select role based mapping.
there u can select particular role from the dropdown below the Server Role Name.
try this.
i haven't tried this.
i think , for our use , we can create roles, then map certain users to this role , and assign here.
Regards
Kishor Gopinathan
Message was edited by: Kishor Gopinathan
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.