on 12-15-2004 6:27 PM
Hello,
we can cast an IApplication, which we get from the DeploymentManager, without problems:
ITest service = (ITest) WDPortalUtils.getServiceReference("Test1.Test");
String name = wdContext.currentContextElement().getFromWelcome();
IApplication appli = (IApplication)service.getApplication(name);
But when we want to call a method from the Application class it throws a NoClassDefFoundError:
wdContext.currentContextElement().setMyTest(appli.getAlias());
Error stacktrace:
java.lang.NoClassDefFoundError: com/sapportals/portal/prt/deployment/descriptor/IApplication
at com.sap.console.Result.wdDoInit(Result.java:138)
at com.sap.console.wdp.InternalResult.wdDoInit(InternalResult.java:116)
at com.sap.tc.webdynpro.progmodel.generation.IControllerDelegate$LegacyAdapter.wdDoInit(IControllerDelegate.java:39)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
Hi,
from my point of view there is a needed sharing reference missing? Which sharing references did you define?
Regards
Jochen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think that is the real problem because when I call toString method it's work, but it doesn't work with methods returning an Application object.
Should it be a security access problem for this kind of object because we call it from a web dynpro application using a portal service ?
Thanks
Badr
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.