Skip to Content
author's profile photo Former Member
Former Member

**Urgent** Reading PCD objects

How do I find the JAR file which contains these 2 classes? I spend hours using jarfinder trying different search terms.

com.sap.portal.pcm.admin.PcmConstants;

com.sap.portal.directory.Constants;

What's the name of the jar? Is it in Netweaver studio plugin directory or on portal server.

I need it for following code to lookup System properties:

-


Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,

IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);

env.put(Context.SECURITY_PRINCIPAL, request.getUser());

env.put(Constants.REQUESTED_ASPECT,

PcmConstants.ASPECT_SEMANTICS);

InitialContext iCtx = null;

try

{

String systemID = "pcd:portal_content/myFolder/mySystem";

iCtx = new InitialContext(env);

ISystem result =(ISystem)iCtx.lookup(systemID);

}

catch(Exception e)

{

}

-


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 01:42 AM

    Hey..

    AFAIK, ClassLocator is the best .. just kidding..But its cool tool man..

    com.sap.portal.pcm.admin.PcmConstants; is located in com.sap.portal.pcm.admin.apiservice_api.jar (its located on the server, not in PDK)

    com.sap.portal.directory.Constants is located in prtjndiruntime.jar (located in the list of jars downloaded from PDK)

    Thank you

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Daniel Wroblewski

      I am still getting access denied. I checked the permission of the adminstrator & he has the all permission on this system object. I also tried WDClientUser.getCurrentUser().getClientUserID()

      I am using this code in a webdynpro application. May be there is something special I need to do in a web dynpro application?

      Here is the exception I am getting:

      com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object(s): portal_content/XYZ/XYZ_0)

      [com.sapportals.portal.pcd.gl.PcdFilterContext.filterLookup(PcdFilterContext.java:390), com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1066), com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1072), com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1072), com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookupLink(PcdProxyContext.java:1168), com.sapportals.portal.pcd.gl.PcdProxyContext.proxyLookup(PcdProxyContext.java:1115), com.sapportals.portal.pcd.gl.PcdProxyContext.lookup(PcdProxyContext.java:909), com.sapportals.portal.pcd.gl.PcdGlContext.lookup(PcdGlContext.java:78), com.sapportals.portal.pcd.gl.PcdURLContext.lookup(PcdURLContext.java:238), javax.naming.InitialContext.lookup(InitialContext.java:347), javax.naming.InitialContext.lookup(InitialContext.java:347), com.documentum.ei.epiviews.relatedsearch.ListResultView.wdDoInit(ListResultView.java:194), com.documentum.ei.epiviews.relatedsearch.wdp.InternalListResultView.wdDoInit(InternalListResultView.java:205), com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61), com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215), com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274), com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200), com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540), com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422), com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130), com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41), com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200), com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134), com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374), com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593), com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59), com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249), com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154), com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116), com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48), javax.servlet.http.HttpServlet.service(HttpServlet.java:740), javax.servlet.http.HttpServlet.service(HttpServlet.java:853), com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385), com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263), com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340), com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318), com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821), com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239), com.sap.engine.services.httpserver.server.Client.handle(Client.java:92), com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147), com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37), com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71), com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37), java.security.AccessController.doPrivileged(Native Method), com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94), com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)]

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.