Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

Error in IResourceContext

$
0
0

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


Viewing all articles
Browse latest Browse all 8894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>