cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError with IApplication

Former Member
0 Kudos

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)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

from my point of view there is a needed sharing reference missing? Which sharing references did you define?

Regards

Jochen

Former Member
0 Kudos

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