Skip to Content
0
Former Member
Nov 28, 2006 at 05:14 PM

Landscape Service

32 Views

I'm trying to use the Landscape Service as follows, but get a NoClassDefFoundError for the .ILandscapeService Class at runtime whilst debugging.

    ILandscapeService landscapeService = (ILandscapeService) PortalRuntime.getRuntimeResources().getService(ILandscapeService.KEY);
					
    ISystem system = landscapeService.getSystem(systemAlias);

I have included the com.sap.portal.compatibility50.systemlandscape_api.jar in the build path and included a reference to the landscape service in portalapp.xml:

<?xml version="1.0" encoding="utf-8"?>
<application>
  <application-config/>
  <components/>
  <services>
    <service name="EmsAccountAndRoleMaintenance">
      <service-config>
        <property name="className" value="com.aaa.bbb.ems.usermaintenance.service.EmsAccountAndRoleMaintenance"/>
        <property name="ServicesReferences" value="com.sap.portal.ivs.connectorservice, landscape"/>
      </service-config>
    </service>
  </services>
</application>

Is there something else I am missing? Im using EP6 SP14, and the documentation seems to suggest the EP5 service is still the currently recommended way of accessing landscape information?

Cheers,

Steve