Skip to Content
0
Former Member
Jun 30, 2006 at 06:43 AM

java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/IService

223 Views

I am trying to Call a dc Portal Service from within a Web Dynpro DC

following the steps I did,

1. Created a DC "Portal Application Standalone" project by the name myservice.

2. Created a portal service inside myservice by the name TestService.

3. Exposed ITestService.class in the public part.

4 Build and deployed the DC on server and tested it through an abstract portal component and it worked FINE !!

Now..

5. Created anoter DC of type WebDynPro

6. Added SAP_JTECHS -> epbc.prtapi._api as a "Used DC" with dependency build time and runtime

7. Added ITestService.class from the public part of portal Service as Used DC

8. Tried to reference the service using the following code..

ITestService portalservice=(ITestService)WDPortalUtils.getServiceReference(ITestService.KEY);

9.Build and deployed the DC.

10. When I run the application I am getting the following error

Processing HTTP request to servlet [dispatcher] finished with error.

The error is:

The initial exception that caused the request to fail, was:

java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/IService -


Loader Info -


ClassLoader name: [sap.com/pocserviceproject] Parent loader name: [Frame ClassLoader] References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:tccolapi library:com.sap.aii.util.misc library:tccmi library:tccolruntime Resources: F:\usr\sap\RCP\JC00\j2ee\cluster\server0\apps\sap.com\pocserviceproject\webdynpro\public\lib\sap.comserviceprojecttest.jar F:\usr\sap\RCP\JC00\j2ee\cluster\server0\apps\sap.com\pocserviceproject\webdynpro\public\lib\sap.comserviceproject~testservice.jar F:\usr\sap\RCP\JC00\j2ee\cluster\server0\apps\sap.com\pocserviceproject\src\java\src.zip F:\usr\sap\RCP\JC00\j2ee\cluster\server0\apps\sap.com\pocserviceproject\webdynpro\public\lib\app.jar Loading model: {parent,references,local} -


The error occurred while trying to load "com.test.poc.service.ITestService".

PLEASE ADVISE