on 10-16-2008 9:02 AM
Hi all,
I am currently trying to write a WebDynpro application, which should access the portal-UWL.
In this context I am trying to access a PortalRuntime-method.
I have read, that I have to add a shared reference to my project....PORTAL:sap.com/com.sapportals.portal.prt.runtime.PortalRuntime
But this reference does not work.
Does anybody have an idea how to solve this problem?
Thank you and kind regards, Patrick.
Hi,
use WDPortalUtils.getServiceReference instead of PortalRuntime.
IUWLService uw = (IUWLService)WDPortalUtils.getServiceReference(IUWLService.ALIAS_KEY);
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tested this on my local server which is NW2004s Sp14
i made this tckmcbc.uwl~api entry in library reference tab of WD DC
And uw object is not null i didn't encounter any exception as well.
you should try this also.
try{
IUWLService uw = (IUWLService)WDPortalUtils.getServiceReference(IUWLService.ALIAS_KEY);
wdComponentAPI.getMessageManager().reportSuccess("UWL :--"+uw);
wdComponentAPI.getMessageManager().reportSuccess("UWL :--"+uw.isTestMode());
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportSuccess("UWL :--"+e.getMessage());
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try putting tckmcbc.uwl~api value only in service reference Tab of WD Application.
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi BalaKrishnan!
I am currently working on NW7.0 SPS15.
I tried to add the line in library references, which has been mentioned before. There is no deployment warning, if I do this, but
still the same runtime error:
java.lang.NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime
It is caused by this line of code:
IUWLService uwlService = (IUWLService) PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);
Regards, Patrick.
Edited by: Patrick Lotter on Oct 17, 2008 9:35 AM
try giving this value:
PORTAL:sap.com/tckmcbc.uwl~api
and see if it works
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please give me the jar file name for UWL service
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you using UWL Portal service to Work with UWL ,in that case in your WD application you have to give shared reference of this service.
Check the following thread:
Also for Portal runtime Api you have to include prt.jar file either in your build path or through used dc if you are on NWDI.
Siddharth
Edited by: Siddharth Jain on Oct 16, 2008 10:15 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.