Unable to compile a composite that contains a Java embedded activity with Maven by Markus Lohn



Maven is not compiling the composite when a BPEL process contains java embedding. Just incorporating java embedding makes the maven compilation to fail. If the java embedding is removed then the composite compilation is successful in Maven. This issue can be reproduced  with JDeveloper 12.1.3.x


First I tried to solve this issue by adding dependency declarations for orabpel.jar in the soa maven plugin section and the pom.xml itself. However this approach doesn’t solve my issue. After another research in the Oracle Support system I found two interesting notes:

  • Unable to compile a composite that contains a Java embedded activity with Maven (2050971.1)
  • Failure when compiling a BPEL process in SOA 12c, ‚package com.collaxa.cube does not exist’ (2112178.1)

Both notes describe exactly the issue I currently have. The note 2050971.1 contains a reference to the bug no. 20229616 wherefore no patch is available until now. But it contains a description for a workaround. The workarounds means to put every needed Java library in the folder SOA/SCA-INF/lib. From my perspective that isn’t an appropriate solution, because the missing classes mention by the compiler are in orabpel.jar. This jar file is part of SOA Suite and already available on the infrastructure side. Moreover everything in /SCA-INF/lib is part of the composite and uploaded to MDS. The second support note 2112178.1 references a patch, but it doesn’t also solve the issue. Due to this I build a solution that automates the workaround with SOA/SCA-INF/lib by using Maven plugins.


The solutions contains 3 steps:

1. Using the Maven Dependency Plugin to copy the orabpel.jar to SOA/SCA-INF/lib folder. The copied orabpel.jar will be renamed to only4compile.jar. Further it is important to bind the execution of the plugin to a phase before running the Maven SOA Plugin. Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

About Jürgen Kress
As a middleware expert Jürgen works at Oracle EMEA Alliances and Channels, responsible for Oracle’s EMEA Fusion Middleware partner business. He is the founder of the Oracle SOA & BPM and the WebLogic Partner Communities and the global Oracle Partner Advisory Councils. With more than 5000 members from all over the world the Middleware Partner Community is the most successful and active community at Oracle. Jürgen manages the community with monthly newsletters, webcasts and conferences. He hosts his annual Fusion Middleware Partner Community Forums and the Fusion Middleware Summer Camps, where more than 200 partners get product updates, roadmap insights and hands-on trainings. Supplemented by many web 2.0 tools like twitter, discussion forums, online communities, blogs and wikis. For the SOA & Cloud Symposium by Thomas Erl, Jürgen is a member of the steering board. He is also a frequent speaker at conferences like the SOA & BPM Integration Days, JAX, UKOUG, OUGN, or OOP.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: