cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundException: Accessing Portal Service in Webdynpro

Former Member
0 Kudos

Hi,

I need to access a Portal Service in the Webdynpro component. I have followed the steps below

1. Created the portal service (updated the key and added a custom method to the interface and implementation class).

2. Deployed the Portal service and configured the same on System Administrator-> System Configuration -> Service Configuration -> Application.

3. Created a webdynpro project.

4. Added Shared reference to the portal service (PORTAL:sap.com/myservice) in the Webdynpro Project.

5. Deployed the webdynpro component.

when i view the iView NoClassDefFoundException of the MyService is displayed.

Please let me know if i have missed any step.

Regards,

S.Divakar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

to add to the details provided above.. the error is java.lang.NoClassDefFoundError.

Am still unable to successfully get the portal service class runtime reference.

some interesting stuff that i observed is as below

createDeployArchive:

[cda] Adding module 'sp.org~testproject.wda' from current development component

[cda] Validating C:\Documents and Settings\107392.CTS\.dtc\0\t\5B84AA73FC8AB28F5D02FC67A60F4C12\gwd\application.xml

[cda] Validating C:\Documents and Settings\107392.CTS\.dtc\0\t\5B84AA73FC8AB28F5D02FC67A60F4C12\gwd\application-j2ee-engine.xml

[cda] WARNING: application-j2ee-engine.xml: No reference entry for runtime dependency on DC eg.org~commonjars

[cda] WARNING: application-j2ee-engine.xml: No reference entry for runtime dependency on DC eg.org~shareddataservice

Please provide pointers if anyone has faced such an issue.

Regards,

S.Divakar.

Former Member
0 Kudos

Hi,

The Problem was solved succesfully.

The Sharing Reference should be 'sap.com/<portal service>', i had used 'sp.org/<portal service>' as i had developed the portal service with vendor id 'sp.org'.

My Understanding is that the Portal Services are published with provider as 'sap.com'. I made the change by mistake and arrived at the solution.

Regards,

S.Divakar