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
Add a comment