Note that there are some explanatory texts on larger screens.

plurals
  1. POAnt, Maven and Jdeveloper SOA Extension
    primarykey
    data
    text
    <p>We are in the middle of a large Java EE project/programme. Up to this point, we've been using Eclipse and Maven for our development. The appserver we are targeting is WebLogic (Oracle, these days).<br> It has been decided we are going to start using Oracle Business Rules (Part of Oracle SOA Suite 11g). Development for Soa Suite is confined to JDeveloper. It has some nice ant scripts to build and deploy SOA Composites (which is how rules are packaged and deployed).<br> I have been tasked with getting these ant scripts to run from maven using antrun, and I've gotten some of the way, but not all...<br> My main question is: has anyone succeeded doing this? (Has anyone even attempted..? Can't really find anything googling...)</p> <p>Below is the relevant part of my pom:</p> <pre><code>&lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;version&gt;1.6&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;configuration&gt; &lt;target&gt; &lt;property name="oracle.home" value="C:\Oracle\Middleware\jdeveloper"/&gt; &lt;property name="oracle.soa.mgmt.home" value="C:\Oracle\Middleware\jdeveloper"/&gt; &lt;property name="common.components.home" value="C:\Oracle\Middleware\oracle_common"/&gt; &lt;property name="env.JAVA_HOME" value="${java.home}"/&gt; &lt;property name="env.PWD" value="."/&gt; &lt;ant antfile="${oracle.home}\bin\ant-sca-compile.xml"/&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; </code></pre> <p>Maven is run from the project dir, outside the Oracle/Middleware tree. This almost works...<br> Actually, it gives the following result:</p> <pre><code>[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building BilagorReglerSCA [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [antrun:run {execution: default}] [INFO] Executing tasks main: scac: Validating composite "C:\JDeveloper\mywork\BilagorReglerSCA\BilagorRegler\composite.xml" [scac] oracle.fabric.common.wsdl.XSDException: Error loading schema from file:/C:/JDeveloper/mywork/BilagorReglerSCA/BilagorRegler/BilagorRegler_DecisionService.wsdl [Cause=Error in getting XML input stream: oramds:/soa/shared/rules/BpelProcess.xsd: oracle.mds.exception.MDSException: MDS-00054: Filen som ska laddas oramds:/soa/shared/rules/BpelProcess.xsd finns inte.] [scac] at oracle.fabric.common.wsdl.SchemaBuilder.loadEmbeddedSchemas(SchemaBuilder.java:496) [scac] at oracle.fabric.common.wsdl.SchemaBuilder.loadSchemasFromWSDL(SchemaBuilder.java:365) ... </code></pre> <p>The phrase "Filen som ska laddas oramds:/soa/shared/rules/BpelProcess.xsd finns inte." means the "file you are trying to load does not exist" (why does my client insist on installing Swedish language version of Windows, rather than international?).<br> ant-sca-compile.xml contains numerous import statements similar to this:</p> <pre><code> &lt;fileset dir="${common.components.home}/modules"&gt; ... &lt;include name="oracle.mds_11.1.1/oramds.jar"/&gt; </code></pre> <p>I assume oramds.jar is needed to process oramds-URL:s, which are used in the WSDS/XSD:s JDeveloper generates.</p> <p>Any help appreciated...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload