cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: IUrlGeneratorService

Former Member
0 Kudos

I am using the following Code :-

IUrlGeneratorService urlGenService = (IUrlGeneratorService) PortalRuntime. getRuntimeResources().getService(IUrlGeneratorService.KEY);

IPortalUrlGenerator urlGenerator =(IPortalUrlGenerator) urlGenService.getSpecializedUrlGenerator(PortalUrlGenerator.KEY);

I have added the com.sap.portal.appintegrator.sap.bwc_api.jar in the classpath .

But still I am getting the error :-

java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/urlgenerator/IUrlGeneratorService

Kindly let me how to resolve the error.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ravi,

Add the Sharing reference in your portalapp.xml to let the PRT know that you are using this service.

For e.g.

<application-config>

<property name="SharingReference" value="urlgenerator"/>

</application-config>

Hope this helps.

Ankur

Answers (0)