Today, it’s the first time that i worked with the Java Embedded Activity in BPEL 11g as i had a requirement of using coherence in the context of BPEL.
Came across one of the silly issues during this process so wanted to share the resolution of the same as i feel its the common mistake that can be done.
When i put the code in java embedded activity and rebuild the composite, i was getting the following error.
Error(23,34): Failed to compile bpel generated classes. failure to compile the generated BPEL classes for BPEL process "BPELProcess1" of composite "default/Project1!1.0"
The class path setting is incorrect.
Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
The issue is coming as the necessary import statements are missing. To resolve this issue, add the import statements in the following way in .bpel file(these are the classes that i used) before the listing of partner links.
<bpelx:exec import="com.tangosol.net.CacheFactory"/>
<bpelx:exec import="com.tangosol.net.NamedCache"/>
Hi
I am facing this issue as well …. I have placed import statement before partnerLink….Also I am not getting this error at build time…..I am getting this in deployment .
are you using 11g or 12c?
Hi,
I have the same issue. whenever I add java embeded activity this error is coming in my bpel process. Evern after I add the above two statements, still I am getting that error.
Regards
Khaleel
Would u plz check the placement of import statements…once.