cancel
Showing results for 
Search instead for 
Did you mean: 

Resolve Error:NoClassDefFoundError: com/sap/workflow/engine/api/IWorkflow

former_member199223
Participant
0 Kudos

Hi,

I want Create Task in UWL using web dynpro coding .

i have done some coding using UWL APIs.

when i run the application i will get an error java.lang.NoClassDefFoundError: com/sap/workflow/engine/api/IWorkflow

i think i want to give a some web dynpro references but now i have given reference like

Library reference =tckmcbc.uwl~api

Sharing reference = PORTAL:sap.com/com.sap.portal.usermapping

but i nedd to give some other reference? or how to resolve this error.

Regards,

BOOPATHI.M

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hai boopathi,

try giving the library reference,

cafeugp~api in webdynpro.

Thanks n Regards

Sharanya.R

former_member199223
Participant
0 Kudos

HI Sharanya,

I have given this cafeugp~api in webdynpro library reference , but still same error.

Regards,

Boopathi M

Former Member
0 Kudos

Hi,

Post your code here

Regards,

P.Manivannan

former_member199223
Participant
0 Kudos

HI ,

My Code is :

IWDClientUser clientUser = null;

IUser creator = null;

clientUser = WDClientUser.getCurrentUser();

creator = clientUser.getSAPUser();

IJWFPortalService service = (IJWFPortalService) PortalRuntime.getRuntimeResources().getService(IJWFPortalService.KEY);

IWorkflow eWF = service.getWorkflowEngineJMS();

Hashtable taskCtxt = new Hashtable();

taskCtxt.put("_wfitemtype_","uwl.notification.erp.fyi");

if(wdContext.currentVnCreateTaskElement().getVaDescription()!=null)

{

taskCtxt.put("_wfdescription_",wdContext.currentVnCreateTaskElement().getVaDescription());// "mydescription");

}

else

{

wdComponentAPI.getMessageManager().raiseException("Please enter the Description",true);

}

taskCtxt.put("_wfpriority_",wdContext.currentContextElement().getCaPriority());//new Integer (0));

if(wdContext.currentVnCreateTaskElement().getVaAssignedUser()!=null)

{

taskCtxt.put("_wftaskassignees_",wdContext.currentVnCreateTaskElement().getVaAssignedUser());//"administrator");

}

else

{

wdComponentAPI.getMessageManager().raiseException("Please enter the User",true);

}

taskCtxt.put("_wftemplatename_","QuickTask");

taskCtxt.put("_wfduedate_", dateTime);

Hashtable appCtxt = new Hashtable();

appCtxt.put("mysystem", "SAP_LocalSystem");

appCtxt.put("mylaunchcontext", "uwl");

appCtxt.put("myappcontext", "test");

if(wdContext.currentVnCreateTaskElement().getVaTitle()!=null)

{

eWF.createTask(wdContext.currentVnCreateTaskElement().getVaTitle(), creator, taskCtxt,appCtxt);

}

Regards,

Boopathi M

Former Member
0 Kudos

Where did you get the IWorkflow class from? In which DC is it?

former_member199223
Participant
0 Kudos

HI Pascal Willemsen,

This is the path for Iworkflow class

*
server\usr\sap\W01\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.workflow.apps*

Regards,

Boopathi M

Former Member
0 Kudos

Since the class is part of a portal application (portalapps in the path), you need to specify a Portal Sharing Reference like you did for the usermapping portal application.

former_member199223
Participant
0 Kudos

HI Pascal Willemsen,

what you said is correct.

I have one more doubt in Web dynpro References

where are we exactly using all these references could you please give me a prompt example.

Interface references

Jco references

Library references

Service references

Sharing references

Regards,

Boopathi M

Former Member
0 Kudos

Interface: Defines J2EE Interfaces used by your Web Dynpro DC

JCo: Defines the JCo Destinations used by your Web Dynpro DC

Library: Defines J2EE Libraries used by your Web Dynpro DC

Service: Defines J2EE Services used by your Web Dynpro DC

Sharing: Defines Portal applications/services used by your Web Dynpro DC

former_member199223
Participant
0 Kudos

HI Pascal Willemsen,

can you please tell me the real example of all references

Regards,

Boopath.M

Edited by: boopathi m on Mar 13, 2008 3:45 PM