Comentários (2)

1 Mahesh_007 comentou às Link permanente

Hi All,

 
I am having one issue while accessing Roles for that Portlet using AccessControl classes. Please help me.
RunData runData = RunData.from((ServletRequest)request);
response.getWriter().println("
Step...2");
ControlCompositionNode control = (ControlCompositionNode)runData.getAttribute("com.ibm.wps.composition.element");
response.getWriter().println("
Step...3");
javax.naming.Context ctx = new javax.naming.InitialContext();
response.getWriter().println("
Step...4");
AccessControlHome home = (AccessControlHome) ctx.lookup(AccessControlHome.JNDI_NAME);
response.getWriter().println("
Step...5");
response.getWriter().println("
getRoleData="+home.getRoleData(control));
 
I am getting the below error:
com.ibm.wps.ac.ResourceNotFoundException: EJPSB0153E: The resource with ObjectID [ObjectIDImpl 'Z7_INDO2JV64AGPF0I1DSL3SG00I5', NAVIGATION_NODE, VP: 0, [Domain: rel], DB: 0000-F2362CE63744C1FC800C8DD7C12100B2] was not found since it is either registered as dependent resource or not registered at all.
 
 
Thanks,
Mahesh.

2 ry_wilson comentou às Link permanente

Mahesh what is your use-case?
You should not be using the RunData object since this is not a public class.

Incluir um Comentário Incluir um Comentário