cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: com/<vendor>/<service-name>

Former Member
0 Kudos

Hi,

I followed this thread to create portal service DC and added it as a used DC to a WD DC.

When I run, I get following exception.

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


Loader Info -


ClassLoader name: [<name>.com/repadmin] 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:cross interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:tcwdwslib 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:com.sap.aii.util.misc library:tccmi Resources: D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\src.zip D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\smtp.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\ojdbc14.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\com.sap.security.api.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\mail.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\<name>.comwhoppersExternalLibAssembly.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\sqljdbc.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\<name>.comrepadmin.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\app.jar D:\usr\sap\EPD\JC01\j2ee\cluster\server0\apps\<name>.com\repadmin\webdynpro\public\lib\activation.jar Loading model: {parent,references,local} -


The error occurred while trying to load "com.<name>.<Iservice-name>".

The portal DC uses a library DC with multiple jar files.

Thanks

Srinivas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I get another exception

java.lang.NoClassDefFoundError: com/xxx/Iservice

Has anybody come across this and fixed it...

Former Member
0 Kudos

Hi,

Did you add in your project

Web Dynpro Reference” > “Sharing reference” tab

portal:sap.com/<Portal Application name>

if not add and check it

Regards,

Manivannan P

Former Member
0 Kudos

Hi Manivannan,

I already added the shared reference under properties> WebDynpro References>Sharing References

"PORTAL:xxx.com/<name of the Portal DC>"

Is there something wrong above ?

Can you let me know how do we go about testing a portal service DC ?

Thanks

Srinivas