cancel
Showing results for 
Search instead for 
Did you mean: 

Error in IResourceContext

Former Member
0 Kudos

Hi Expert,

I am getting error in run time for below java webdynpro code.kindly help.

Below jar files are used in external library .

bc.rf.framework_api.jar

bc.rf.global.service.urlgenerator_api.jar

bc.sf.framework_api.jar

bc.util.public_api.jar

com.sap.security.api.jar

Webdynpro code

String userID = "";

            IUser iUser=null;

      try {

               

                IWDClientUser wdClientUser = WDClientUser.getCurrentUser();

                iUser = wdClientUser.getSAPUser();

               // IResourceFactory factory =ResourceFactory.getInstance();

               IResourceContext resourceContext = ResourceContext.getInstance(iUser);    

              

              //  RID rid = RID.getRID("/HUL_KM/02 Vertice Knowledge Management/11 Document Creation Details");

           }

     

     catch (Exception e) {

                    // TODO Auto-generated catch block

               wdComponentAPI.getMessageManager().reportSuccess("User Exception" + e.getStackTrace());

          }

Run time Error

java.lang.ClassNotFoundException: com.sapportals.portal.security.usermanagement.UserManagementException ------------------------- Loader Info ------------------------- ClassLoader name: [com.hul/test] Loader hash code: 76f64213 Living status: alive Direct parent loaders: [system:Frame] [interface:webservices] [interface:cross] [interface:security] [interface:transactionext] [library:webservices_lib] [library:opensql] [library:jms] [library:ejb20] [service:p4] [service:ejb] [service:servlet_jsp] [sap.com/tc~wd~api] [library:tc~bl~logging~api] [library:tc~conn~connectorframework] [library:tc~bl~exception~lib]

Detailed Exception

java.lang.NoClassDefFoundError: com/sapportals/portal/security/usermanagement/UserManagementException

  at hul.com.test.wd.comp.new1comp.New1CompView.wdDoInit(New1CompView.java:137)

  at hul.com.test.wd.comp.new1comp.wdp.InternalNew1CompView.wdDoInit(InternalNew1CompView.java:105)

  at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:59)

  at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)

  at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:731)

  at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)

  at com.sap.tc.webdynpro.progmodel.window.ViewManager.getView(ViewManager.java:668)

  at com.sap.tc.webdynpro.progmodel.window.ViewManager.bindRoot(ViewManager.java:563)

I

Accepted Solutions (1)

Accepted Solutions (1)

Sreejith1
Contributor
0 Kudos

Hi Arun,

How you resolved this issue?

Former Member
0 Kudos

add security api jar into your buildh path and liblary. the error says that there is no reletad jar in your workspace.

Former Member
0 Kudos

Hi, Have downloaded KMC-CM and KMC-WPC sca file service market place and imported the required dc. Note:we are using NWDS7.3.

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you maintain WD sharing reference in your WDJ application for UME and KM api's?

If you are in NW7.3 version, instead of external lib DC, use standard dc's as dependent DC.

Mahesh

junwu
Active Contributor
0 Kudos

i think they all should be standard sap jar, why put them in external lib to make trouble for yourself

if you are using external lib dc, don't forget to add runtime dependency to ear dc from using dc..