"javax.naming.NameNotFoundException" Trying to Update a Human Task using the WF API (TaskService) Using "getTaskService()"

(Doc ID 805113.1)

Last updated on AUGUST 20, 2012

Applies to:

Oracle(R) BPEL Process Manager - Version and later
Information in this document applies to any platform.
This problem can occur on any platform.


Trying to update a Human Task in background through the WF API (taskService) to set some attributes using:

wfSvcClient.getTaskService().updateTask(wfCtx, task);

Gives the following error:

<2009-02-11 13:43:31,595> <ERROR> <oracle.bpel.services.workflow> <::>
java:comp/env/ejb/local/TaskServiceBean not found in ExampleHumanTaskBusinessLogic
javax.naming.NameNotFoundException: java:comp/env/ejb/local/TaskServiceBean not found in
at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:225)
at com.oracle.naming.J2EEContext.lookup(J2EEContext.java:172)
at com.evermind.server.ApplicationContext.lookupInJavaContext(ApplicationContext.java:308)
at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:232)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:197)


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms