on 02-11-2007 1:48 PM
Hi All,
I am developing one WebDynpro application browsing all the worksets,pages and iviews in a Portal. I have used the code in Prakash Weblog to browse roles,pages etc, link of that blog is <</people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher
I included all the necessary portal jar files but when running the application getting an Exception "java.lang.NoClassDefFoundError: com/sapportals/portal/pcd/gl/IPcdContext".
Could you tell me the reason for getting this type of Exception and how can i eliminate this. Solution for this is very important for continuing my application.
Thanks in advance,
Sandeep Kumar Bonam
Hi Sandeep,
Check SAP Note 1021103
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
I am able to resolve the problem with some forum links and a helpful answer of yours. Now I am getting the problem while trying to access portal service user "pcd-service" from webdynpro. It is giving me Access denied Exception and object which I am trying to access using sevice user details.
In prakash weblog, he used IUserManagementEngine to get the service user details, ,how can we get those details in webdynpros.
Could you help me out of this issue.
Thanks,
Sandeep Kumar Bonam
Hi Anil,
Exception getting in browser "com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object: portal_content/...."
Stack Trace Details:
#1.5#00E08152C2AE0075000000B400000DA400042932E5ADF097#1171198485174#com.sap.portal.prt.sapj2ee.error##com.sap.portal.prt.sapj2ee.error#Administrator#28136####0bfe5df0b9cf11db8d7900e08152c2ae#SAPEngine_Application_Thread[impl:3]_10##0#0#Fatal#1#/System/Server#Java###Exception while starting: sap.com/com.sapportals.portal.prt.runtime
[EXCEPTION]
#1#com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: SAPJ2EE::local/Sample', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: SAPJ2EE::local/Sample
at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:879)
at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:488)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4279)
at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:581)
at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:392)
at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:321)
at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:170)
at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:139)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:301)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:110)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:212)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeNestedParallelTransaction(ApplicationTransaction.java:571)
at com.sap.engine.services.deploy.server.application.UpdateTransaction.finalActions(UpdateTransaction.java:599)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:332)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3064)
at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:598)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
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:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
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:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [ExternalApplicationItem.prepare]: SAPJ2EE::local/Sample
at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:188)
at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:232)
at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.start(SAPJ2EEApplicationItem.java:192)
at com.sapportals.portal.prt.service.sapj2ee.Mediator.getAndStartExternalApplication(Mediator.java:132)
at com.sap.portal.prt.sapj2ee.StartPortalApplication.coreRun(StartPortalApplication.java:59)
at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:875)
... 26 more
Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application com.sapportals.portal.prt.runtime
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:415)
at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:180)
... 31 more
Hi Andre,
These type of errors will come only at the runtime when WAS is unable to find definition for the class used in the application. In your case you have used IPcdContext, Inorder to get rid of this error, Copy the gl_api.jar into the LIB fo your application. You can get this jar file from EP.
Path for this jar file is: System Administration/Suppoort/Portal Runtime/Browse Deployment/portal/portalapps/com.sap.portal.pcd.glservice/lib/gl_api.jar
I hope this will solve your problem.
Still if you have any issues, let me know.
Thanks,
B.Sandeep Kumar
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.