on 06-06-2013 7:26 AM
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
Hi Arun,
How you resolved this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.