"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 10.1.3.3 and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

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
ExampleHumanTaskBusinessLogic
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)
...





Cause

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