Skip to Content
author's profile photo Former Member
Former Member

NoClassDefFoundError with IApplication

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)

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 16, 2004 at 12:21 PM

    Hi,

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

    Regards

    Jochen

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.