Sunday, August 7, 2016

Oracle SOA 12c: Error while deploying soa composite using maven : error: javax/el/ELContext

Today I was working on the Build automation for Oracle SOA 12c and configure the maven and Hudson tool for Continuous Integration. After configuring the maven on my local machine , I tried to compile the soa project but I was getting the following error:

"you may getting el context error while building soa project"
i.e. java.lang.NoClassDefFoundError: javax/el/ELContext

Solution

This problem can be solved by adding EL context dependency in maven plugin

Go to oracle maven home repository folder i.e.

$M2_HOME/repository/com/oracle/soa/plugin/oracle-soa-plugin/12.2.1-0-0 

open the oracle-soa-plugin-12.2.1-0-0.pom in any editor and add the following dependency


<dependency>
    <groupId>javax.el</groupId>
    <artifactId>javax.el-api</artifactId>
    <version>3.0.0</version>
  </dependency>

save the file and try to compile the soa project again.

No comments:

Post a Comment