When deploying a SOA Suite 11g composite via Ant, you may run into the following error:
deploy:[input] skipping input as property serverURL has already been set.[input] skipping input as property sarLocation has already been set.[deployComposite] setting user/password..., user=weblogic[deployComposite] Processing sar=/u01/svn/HelloWorld/deploy/sca_HelloWorld_revtrue.jar[deployComposite] Adding sar file - /u01/svn/HelloWorld/deploy/sca_HelloWorld_revtrue.jar[deployComposite] INFO: Creating HTTP connection to host:soasandbox.ipnweb.com, port:8001[deployComposite] INFO: Received HTTP response from the server, response code=500[deployComposite] ---->response code=500, error:There was an error deploying the composite on soa_server1: Deployment Failed: java.lang.NumberFormatException: Version number "true" is invalid: it contains a non-digit character where digits are required. The supported version format is:[deployComposite][deployComposite] n0[.n1[.n2[.n3[.n4]]]][-milestone-name[milestone-number] | _patch-number][deployComposite][deployComposite] Where all but "milestone-name" and "comment" are numeric, composed of one or[deployComposite] more digits (0-9) from 0 up to a maximum value of 99999999. When present, a[deployComposite] milestone name indicates a pre-release version. Patch number and milestone[deployComposite] name may not be used together. For comparison purposes, milestone names are[deployComposite] ordered as follows:[deployComposite][deployComposite] 1. Any string other than those below.[deployComposite] 2. ea[deployComposite] 3. alpha[deployComposite] 4. beta[deployComposite] 5. rc: Version number "true" is invalid: it contains a non-digit character where digits are required. The supported version format is:[deployComposite][deployComposite] n0[.n1[.n2[.n3[.n4]]]][-milestone-name[milestone-number] | _patch-number][deployComposite][deployComposite] Where all but "milestone-name" and "comment" are numeric, composed of one or[deployComposite] more digits (0-9) from 0 up to a maximum value of 99999999. When present, a[deployComposite] milestone name indicates a pre-release version. Patch number and milestone[deployComposite] name may not be used together. For comparison purposes, milestone names are[deployComposite] ordered as follows:[deployComposite][deployComposite] 1. Any string other than those below.[deployComposite] 2. ea[deployComposite] 3. alpha[deployComposite] 4. beta[deployComposite] 5. rc.[deployComposite]
Solution:
The Oracle SOA Suite 11g out-of-the-box Ant scripts require a number of parameters, specifically the following highlighted parameters:
<ant antfile="${oracle.home}/bin/ant-sca-deploy.xml" target="deploy" inheritall="false"><property name="user" value="${server.user}"/><property name="password" value="${server.password}"/><property name="serverURL" value="${serverURL}/soa-infra/deployer"/><property name="sarLocation" value="${localdir}/${folder.name}/deploy/sca_${composite.name}_rev${composite.revision}.jar"/><property name="partition" value="${composite.partition}"/><property name="overwrite" value="true"/><property name="forceDefault" value="${default.composite}"/><property name="configplan" value="${deploymentplan.name}"/></ant>
Since we created our own Ant wrapper scripts, we mistakingly reversed the parameters being passed to composite.revision and default.composite variables.
The error above was thrown because the value being passed to the target parameter 'forceDefault' was "1.0", which was incorrect.
1. Make sure you pass the correct parameters to the Oracle SOA Suite 11g out-of-the-box Ant script.
Applicable Version:
- Oracle SOA Suite 11g (11.1.1.3+)
3 comments:
Nice
I was looking for this information, thanks for put in this easy way, I mean in a easy way to understand it jajaja, well until the next time
Sending archive - sca_PubSoftwareUpgrade_v2_5_rev1.0.jar
[08:42:51 PM] Received HTTP response from the server, response code=500
Hi Ahmed
please help me
[08:42:51 PM] Error deploying archive sca_PubSoftwareUpgrade_v2_5_rev1.0.jar to partition "default" on server soa_server1 [http://sailesh:8001]
[08:42:51 PM] HTTP error code returned [500]
[08:42:51 PM] Error message from server:
There was an error deploying the composite on soa_server1: De
Post a Comment