on 09-10-2008 9:12 AM
Hi experts,
want to use the Portal Service IClusterInformation in an Abstract Portal Application. To do so I have imported / added
- the jar com.sap.portal.runtime.system.clusterinformation_api.jar to the project
- and the reference <property name="ServiceReference" value="com.sap.portal.runtime.system.clusterinformation"/> to portalapp.xml
IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
IService iService = runtimeResources.getService("com.sap.portal.runtime.system.clusterinformation.clusterinformation");
//response.write(iService.getKey());
IClusterInformation clusterInfo = (IClusterInformation)iService; <-- EXCEPTION
In the cast IClusterInformation (last line of code) i get the exception java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/clusterinformation/IClusterInformation
The application is running on EP70 SP16
What I am doing wrong !?!? Can anybody help me, please ?
Regards
Flo
Hi,
I tried this its working fine
Abstract Portal Component
IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
IService aService =
runtimeResources.getService(IClusterInformation.KEY);
IClusterInformation myService = (IClusterInformation)aService;
String lok = myService.getSAPJ2EEServerDirectory();
response.write(lok);
Portalapp.xml
<application>
<application-config>
<property name="SharingReference" value="com.sap.portal.runtime.system.clusterinformation"/>
</application-config>
<components>
<component name="accesservice">
<component-config>
<property name="ClassName" value="com.lok.accesservice"/>
</component-config>
<component-profile/>
</component>
</components>
<services/>
</application>
Thanks & Regards,
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of adding servicereference in portalapp.xml, add sharing reference com.sap.portal.runtime.system.clusterinformation to the deployment descriptor.
Regards,
Praveen Gudapati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.