on 09-05-2008 1:40 AM
Hi All,
I am trying to use SSO for my application.
I got sample codes from few of the threads related to SSO
Now I am getting ClassCastException , in the below line
ILandscapeService landSrv = (ILandscapeService) PortalRuntime.getRuntimeResources().getService(ILandscapeService.KEY);
Can some one guide me how to solve this issue, what are the api/jar that I need to include.
try this SAP Note # 1147966...i don't think this is exact match...but related to this only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The actual return type for
PortalRuntime.getRuntimeResources().getService(ILandscapeService.KEY)
I get is com.sapportals.portal.service.CompatibilityService
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The com.sap.portal.compatibility50.systemlandscape_api.jar
has ILandscapeService
U can find that in Portal server SystemAdministration->support->portal runtime->portal deployment->ROOT/WEB-INF/portal/portalapps/com.sap.portal.compatibility50.systemlandscape/lib
Koti Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reddy,
I have included the below mentioned jars already,
com.sap.portal.compatibility50.systemlandscape_api.jar
com.sap.portal.ivs.api_landscape_api.jar
com.sap.portal.ivs.systemlandscapeservice_api.jar
com.sap.portal.pcmbuilderservice_api.jar
lafapi.jar
prtapi.jar
prtconnection.jar
prtcoreservice.jar
prtdeploymentapi.jar
prtjsp_api.jar
prttest.jar
Is there anything else, do I need to add, any off my included jar conflicts.
Regards,
Bala
Hi Reddy,
I saw the above mentioned thread, but still i could resolve the error
As I already have the above mentioned jar files with me,
PortalRuntime.getRuntimeResources().getService(ILandscapeService.KEY);
is returning the object of type
"com.sapportals.portal.service.CompatibilityService" and the error is during the type casting to "ILandscapeService"
Also when tried with
ISystems mm_systemsService = (ISystems) PortalRuntime.getRuntimeResources().getService(ISystems.KEY);
I could not able to locate the interface ISystems
please advice
Regards,
Bala
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.