Oracle BPM Version 11.1.1.7.
In a Humantask.task, Events tab, Content Change Callbacks section, I have entered the fully qualified class name of a class that implements NotesStore and the addNote and getNotes methods.
The class uses public methods in an AppModule to write and read comments using our custom table and these methods were well tested during development using the the BC tester and a temporary main in the callback class.
The project is compiled to a jar and placed in the BPM project's SCA-INF/lib folder, then the SCA and related ADF human task forms are deployed.
When a comment is made in the out of box human task comments section during a process instance, the class is called, but an exception occurs in the getNotes method at the line the AppModule is created.
In the callback class, the AppModule is created as so:
AuditModule service = (AuditModule)Configuration.createRootApplicationModule("com.co.modules.AuditModule", "AuditModuleLocal");
The relevant error seems to be:
javax.naming.NamingException [Root exception is java.lang.ClassCastException: oracle.jbo.mom.DefinitionContextAgeable] at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:68)...
Any ideas?