Ant Script
Ant Script
About Java, JDeveloper, OEPE and Oracle OSB & SOA suite
Home
About me
With Soa Suite 11g you can deploy your composite applications from JDeveloper or with ANT.
In this blog I will do this with the SOA 11g ANT scripts. These ant scripts can only deploy one
project so I made an ANT script around the SOA ANT scripts which can deploy one or more
composites applications to different SOA environments. So now you can use it to automate your
deployment or use it in your build tool.
In my ant script I will deploy shared artifacts to the MDS, compile, build and package the
composite applications and deploy this to the SOA Server. After this I use an ANT script to start
the unit tests and generate a JUnit result XML and at last I can optional disable the composite.
This JUnit XML can be used in your continuous build system. You can easily extend this build
script so you use it to manage the composite applications.
For more info over ANT deployment see the official deployment documentation .
The official ANT scripts are located in the jdeveloper\bin folder. Here is a summary of the
scripts and what they can do
ant-sca-test.xml, This script can start the test suites of the composite and generates a
juinit report and not Attaches, extracts, generates, and validates configuration plans for a
SOA composite application, The official documentation description is not correct.
ant-sca-compile.xml, Compiles a SOA composite application ,this script is also called in
the package scrip, so we don't need to call this directly.
ant-sca-package.xml, Packages a SOA composite application into a composite SAR file
and also validates and build the composite application.
ant-sca-deploy.xml, Deploys a SOA composite application.
ant-sca-mgmt.xml, Manages a SOA composite application, including starting, stopping,
activating, retiring, assigning a default revision version, and listing deployed SOA
composite applications.
Here is the main build.properties where you have to define the jdeveloper and your application
home, which composite applications you want to deploy and what is the environment dev or acc.
Every application can have one or more SOA projects so the main ant script will load the
application properties file which contains all the project with its revision number.
Here is a example of SoaEjbReference.properties file
view plainprint?
1. projects=Helloworld
2. Helloworld.revision=1.0
3. Helloworld.enabled=true
4. Helloworld.partition=default
Because in my example I have two soa environments so I need to create two configuration plans.
With this plan ( which look the wls plan ) can change the url of endpoints so it matches with the
environment.
Select the composite application xml and generate a configuration plan.
And here is the main ANT build script which can do it all and calls the Oracle ANT scripts.
And finally the CMD script to run this ANT script. To make this work we need the ant-contrib
library and put this in the classpath of ANT or put it in the ANT lib folder.
view plainprint?
1. set ORACLE_HOME=C:\oracle\MiddlewareJdev11gR1PS3
2. set ANT_HOME=%ORACLE_HOME%\jdeveloper\ant
3. set PATH=%ANT_HOME%\bin;%PATH%
4. set JAVA_HOME=%ORACLE_HOME%\jdk1.6.0_23
5.
6. set CURRENT_FOLDER=%CD%
7.
8. ant -f build.xml deployAll
162 comments:
1.
Really the blog is usefull and solved most of our questions around ant scripts..
I am facing an issue while running deployAll.bat file after setting my server properties
into build.properties file. My 11g server is up and running.
Reply
Replies
1.
Reply
2.
Edwin BiemondOctober 14, 2009 at 6:42 PM
Hi,
You can take a look at the admin or soa server log. There should be the real error.
and you can add more echos to the ant script to see the parameters.
thanks Edwin
Reply
3.
Hi Edwin,
Could you please explain what is the importants of dev.jndi.properties file. Please
provide deatils on eanch entry of this file.Could you please expalin more about the value
" t3://localhost:8001/soa-infra ".
Where i can find this value for my local server.
Reply
4.
Hi Edwin,
Just wanted to thank you for the blog and the scripts....It was great help...we were facing
the exact issue of finding a simpler way of attaching unit test scripts with deployment and
this blog solved it all...
Reply
5.
Edwin BiemondOctober 21, 2009 at 1:07 PM
Hi
this is the jndi file for the ant test file so it can connect to wls server and dev is the
development version of this file.
you mean jndi file. this are the default for wls. like the server and port number of wls ,
and username / password.
Could you please expalin more about the value " t3://localhost:8001/soa-infra ".
soa suite contains an admin server which runs on 7001 , this holds the em and console
webapps. on port 8001 runs the soa wls server and this holds some webservices these are
located at soa-infra.
take a look in the wls console and select the soa servers and look at the port number
thanks Edwin
Reply
6.
Hi Edwin,
t3://localhost:8001/soa-infra.
if i use http://localhost:8001/soa-infra. the script error out with response code 500.
But if i use t3://localhost:8001/soa-infra. the script completed successfully.
Thank you
Veeresh
Reply
7.
Hi,
in java you can also use rmi protocols, this is a lot faster then http and this java code
needs the rmi protocol and t3 is the wls version of rmi, in oc4j you can use for example
ormi.
http is used in browser and in web services because rmi has different implementation this
can't be used everywhere. but this java code contains wls libraries so it can t3
Reply
8.
The Oracle Documentation has a picture of it, but no instructions or additional details.
Reply
9.
Edwin BiemondNovember 20, 2009 at 7:29 PM
Hi,
That is easy just create two or more soa repositories and use the configuration wizard to
create a new soa domain and the second soa domain should a different soa repos and have
its own port numbers.
thanks
Reply
10.
Hi Edwin, very useful blog. I am having some trouble deploying schemas and wsdl's that
utilise the oramds importing technique; when deploying the mds cannot be seen. Is there
a workaround?
Regards and thanks
Jason
Reply
11.
Hi,
when you create a mds connection to the database MDS do you see these files.
thanks
Reply
12.
JasonDecember 2, 2009 at 10:15 AM
Edwin,
I can see the files within Jdeveloper when I create an MDS connection to it. I was using
your script that you linked to above and the error in the .err file is:
scac:
[scac] Validating composite :
'C:\wesleyan\ReleaseCompositeScript/src/soa/ConfigurationsPS/composite.xml'
[scac] oracle.fabric.common.wsdl.XSDException: Error loading schema from
file:/C:/wesleyan/ReleaseCompositeScript/src/soa/ConfigurationsPS/Config
urationsPS.wsdl [Cause=Error in getting XML input stream:
oramds:/apps/xsd/Configurations_v1.xsd: unknown protocol: oramds]
[scac] at
oracle.fabric.common.wsdl.SchemaBuilder.loadEmbeddedSchemas(SchemaBuilder.java:
496)
Seems it doesnt resolve the oramds at deployment time using ANT. Hope this is clear the
the error I am receiving. Regards, Jason
Reply
13.
include name="oracle.mds_11.1.1/mdsrt.jar"/
include name="oracle.mds_11.1.1/oramds.jar"/
include name="oracle.webservices_11.1.1/orawsdl.jar"/
So for anyone that has this problem - make sure this library is being imported
Regards
Jason
Reply
14.
Hi,
Ok thanks are you using PS1 and do start this build.xml from jdeveloper/bin folder else it
cant find it.
thanks
Reply
15.
Ah, theres the difference then. We wanted to run the deployAll.cmd from a network drive
and not within a Jdeveloper sub directory. This is using 11gR1 PS1. Thanks a lot for the
ANT build script.
Regards
Jason
Reply
16.
hi,
My client wants to shut down the composite once it is deployed in the prod env using ant
scripts.
Is there any 'sedate' ant scripts supplied with wls that can be called from the main ant
build script.
Reply
17.
Reply
18.
Hi,
thanks
Reply
19.
Hi Edwin,
Hope you are doing good. I have same requirement of shot down the compoistes once it
deployed to server. As you said , there is ant-sca-mgmt out of box Ant command.
Could you please leverage this in ur current example and post the same. I am wonder,
how to use this in current build.xml for every composite.
Thanks
Veeresh
Reply
20.
Hi,
I update the blog and example , you can now disable a composite and I added MDS (un)
deployment and it works now with 11g R1 PS1
thanks Edwin
Reply
21.
I am currently having requirement of checking out code from subversion. I have written
custom build.xml to check out the code from subversion. But my build.xml should
checkout projects as mentioned by user which will be maintaing in one of
projects.properties file.
Reply
22.
Hi Edwin,
I got the solution to checkout code on the basis of name listed in one of properties file.
Regards
Veeresh
Reply
23.
Hi Edwin,
I have one interesting thing to discuss and need your inputs on that.
The current build.xml, uses sca-deploy.xml and sca-mgmt.xml to deploy the composite
first and then to stop the composite.
So when sca-deploy runs it will deploy the composite in active mode into server, then
sca-mgmt.xml will stop composite after few second.
But my requirement here is the composite should deploy with shutdown mode into
server.
Regards
Veeresh
Reply
24.
Ok,
this is easy just open your composite.xml and change state attribute from on to off and
voila it is disabled.
thanks Edwin
Reply
25.
Can we pass state or mode as inactive or off to current build.xml while calling ant-sca-
deploy.xml.
Reply
26.
Hi,
try to make a configuration plan and try to change this state attribute with this plan.
and with deployment use this or a other plan to enable or disable it.
thanks
Reply
27.
Hi Edwin,
Thanks for your reply. I tried to find attribute in configuration plan to control state of
composite...but i din't find any such attribute....
Reply
28.
Hi Edwin,
Did you get any solution for controlling turn off state of composite using configuration
plan or current build.xml.
Reply
29.
Hi,
I tested this , but I can only change composite properties like fault policies.
so then this workaround, disable all composites manually. and enable composites with
my ant scripts
thanks
Reply
30.
Hi,
How are you doing! Is it possible to share the ant scripts that you discussed with Veeresh
to turn on the composite.
Regards
PS
Reply
31.
Hi,
I updated my ant scripts with start and stop of the composite, just download it again.
thanks
Reply
32.
Hi Edwin,
How are you.Firstly Thanks a lot for the ANT build scripts.
Currently one of the other requirements that Java embadded code need to compile from
ANT scripts. Can you please update me snippet.
Thanks,Bharat
Reply
33.
Hi Edwin,
Hope you are doing good.Currently one of the other requirements that need compile the
Java Embadded code in BPEL through ANT scripts.
Is it possible to share the ant scripts for Java Embadded compilation in BPEL.
Reply
34.
Hi,
I thought that soa ant compile task should do this. Did you have this java code in your
composite project and is the java code used in a java callout. Let me know.
thanks
Reply
35.
Hi Edwin,
They show Figure 2-1 Multiple Instances or Oracle SOA Suite on a Single System
Creating two domains with two admin servers. Is that the preffered way of doing two
SOA servers on a single physical box? I assume you cannot have two SOA Server installs
under a single domain? I am also assuming that you must have two admin servers?
The Oracle docs are really light on this subject. Any guidance would be HUGELY
appreciated!
Thanks!
Reply
36.
Hi,
you are right you need to have two domain and every domain got its own admin, soa
(server or cluster) and MDS repository.
you can't have two separate soa servers in one domain because the soa server is close
connected to the admin server and fmwconfig config.
For example the soa server uses a datasource called xxx and this connects to the MDS
repos. the other soa server needs its own MDS what not possible is
I know this is high on the wishlist of Oracle because in ESB you got system & groups
and BPEL you got domains.
hopely in PS2 the domains are back.
thanks
Reply
37.
Reply
38.
Hi,
thanks
Reply
39.
Hi Edwin,
I am new to BPEL I have developed test cases for my bpel composite whrn I tried to run
the test using target called 'test' I am getting an exception called
"oracle.fabric.common.FabricException" and stack trace is as follows
java.lang.ClassNotFoundException: Failed to load class
oracle.fabric.common.FabricException
at
weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate
.java:208)
at
weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate
.java:135)
at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:306)
at
weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:399)
at
weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(Ch
unkedObjectInputStream.java:257)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at
weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.jav
a:197)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
at weblogic.rjvm.ResponseImpl.getThrowable(ResponseImpl.java:190)
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:232)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at
oracle.soa.management.internal.ejb.impl.SOATestBean_ra84ps_SOATestBeanImpl_103
1_WLStub.getTestSuites(Unknown Source).
Can you please suggest me what may be the problem with my bpel test suite.
Thanks,
Subba Rao.
Reply
40.
Hi,
are using 11g and did you run the unit test in the enterprise manager.
Is everything else working fine.
thanks
Reply
41.
Hi,
Would you also include in your sample ANT script tasks for subversion check-out?
Thanks.
Reply
42.
Hi,
I've run my test using ant-sca-test.xml, but how can I generate JUnit report using it ? I
tried 'report' task, but it didn't seem to produce anything.
Setya
Reply
43.
Hi,
did you make a testsuite if so then it can generate a report , this can be a xml. The xml is
located in the junit.output.dir variable
thanks
Reply
44.
Hi,
Yes, I run ant-sca-test.xml against my testsuite, it did produce xml file, but I thought it's
supposed to be htmls. Then I tried the 'report' target that I think it should do the job since
it has 'junitreport' in it, but it produced blank report.
Setya
Reply
45.
Hi,
thanks
Reply
46.
Hi,
Sorry, I didn't look at your examples carefully, turns out that I have to set scatest.format
to 'junit', since the default is 'native'.
Thanks & Regards,
Setya
Reply
47.
Thank you very much for the ANT scripts. They help a lot!
Our composite uses xpath extension functions which we have a JAR file to contain the
registration file and the class. The JAR is added in Jdevloper by going to Tools >
Preferences > SOA, and the composite can be compiled and deployed by JDeveloper
without problem. However, when using the ANT script, and package failed by giving the
error of 'could not resolve xpath function, XXX because function XXX not registered.
Reply
48.
Reply
49.
Hi,
or project_home\SCA-INF\classes or SCA-INF\lib
or try to set the CLASSPATH in the bat script.
thanks
Reply
50.
Reply
51.
Hi,
can you unpack the jar in those folders and try again
Reply
52.
Hi Edwin,
I'm using the config plan to try to change some variable values inside my bpel process,
but i don't know why when i use the Config Plan to deploy my project even the console
give a message that it's correct deployed the project is not deployed.
I thought it was a problem of the server but i built some example projects to test the
config plan and it worked fine.
I only found in the server that during the deployment with a config plan there was a
problem maybe during the unzip action of the project.
Here is the trace messages :
Regards
Yuri
Reply
53.
Hi,
Very strange
Reply
54.
Hi Edwin,
First of all great blog u got here.. Really helped me alot coz I'm so new to all this..
Anyways.. I have a situation n i need ur help.. I've created ant scripts for my
components.. N it runs perfectly for each components.. Now I need to implement a script
to test the deployment on a clustered environment.. I have 2 domains on my dev server..
Any advise on how I go about with it?.. Really appreciate it if you could help me..
Thank u in advance..~
Reply
55.
Hi,
I think it should work because you to deploy it to a soa server and the server put it in the
MDS repos so every Soa server can pick it up.
thanks
Reply
56.
Reply
57.
I'm looping through a directory of BPEL projects and calling the package target within
my own ant wrapper. It processed several bpel projects fine and then for some reason, it
failed. The reason is it's unable to delete the dist folder (line 131, in the ant-sca-
package.xml file.
Reply
58.
Hi,
I don't have a glue, I compared ant-sca-package.xml with the PS2 scripts but there is no
difference in that delete part.
maybe you can change the ant-sca-package.xml script and make a workaround.
thanks
Reply
59.
Hi Edwin,
Many Thanks
Sander
Reply
60.
Hi,
I know the JDev team made a maven plugin but dont think it will support soa / bpm
development soon
thanks
Reply
61.
Trying to adapt these scripts for our 11.1.1.2 Linux environment and we get down fairly
far in the script when we get this error:
/u01/oracle/SOA/SOATEST/WEBLOGIC/Oracle_SOA1/bin/ant-sca-test.xml:100:
java.lang.NoClassDefFoundError: com/collaxa/cube/ant/AntResources
Online it shows that class in orabpel-ant.jar but I do not have this jar anywhere in my
jDev directories or in the Linux server.
Reply
62.
Very strange, I never had this error and I also dont have this class ( on windows )
but it should work with jdev ps1 and the soa suite plugin.
thanks
Reply
63.
Hi Edwin,
Can you please look at my error and respond.
scac:
[scac] Validating composite :
'/u01/app/Workspace/Applications/HelloWorld/HelloWorld/deploy/..//composite.xml'
[scac] FATAL_ERROR: location {/ns:composite}(12,61): Parse of component type files
failed, check the adf-config.xml file : "oracle.fabric.common.FabricException:
oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS
configuration document
[scac] MDS-01329: unable to load element "persistence-config"
[scac] MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-
usage_1" is invalid.
[scac] MDS-00503: The metadata path "/u01/app/MWoracle/Oracle_SOA1/integration"
does not contain any valid directories.
[scac] : MDS-01330: unable to load MDS configuration document
[scac] MDS-01329: unable to load element "persistence-config"
[scac] MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-
usage_1" is invalid.
[scac] MDS-00503: The metadata path "/u01/app/MWoracle/Oracle_SOA1/integration"
does not contain any valid directories.
[scac] : oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load
MDS configuration document
[scac] MDS-01329: unable to load element "persistence-config"
[scac] MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-
usage_1" is invalid.
[scac] MDS-00503: The metadata path "/u01/app/MWoracle/Oracle_SOA1/integration"
does not contain any valid directories.
[scac] : MDS-01330: unable to load MDS configuration document
[scac] MDS-01329: unable to load element "persistence-config"
[scac] MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-
usage_1" is invalid.
[scac] MDS-00503: The metadata path "/u01/app/MWoracle/Oracle_SOA1/integration"
does not contain any valid directories.
[scac] "
BUILD FAILED__
/u01/app/Workspace/Applications/HelloWorld/HelloWorld/deploy/build.xml:10: The
following error occurred while executing this line:
/u01/app/MWoracle/Oracle_SOA1/bin/ant-sca-package.xml:36: The following error
occurred while executing this line:
/u01/app/MWoracle/Oracle_SOA1/bin/ant-sca-compile.xml:264: Java returned: 1 Check
log file : /tmp/out.err for errors
Deploying to http://${managed.server.host}:${managed.server.port}/soa-infra/deployer
Reply
64.
Hi,
Can you check the adf-config.xml, this need to contain a reference to a internal oracle
MDS.
you always need a MDS, Oracle Soa Suite uses MDS for their composite components .
JDev and the server has deze artifacts already installed so only reference to it is needed.
thanks
Reply
65.
Hi Edwin,
Thanks for the script, that helps a lot!
I have a problem here that my composite application uses shared object in MDS, thus
there is reference as oramds:/apps/itas/FAInterface.wsdl
This project can be deployed by Jdeveloper without errors. But when running ANT to
deploy the composite to the server, it is giving error as
Grace
Reply
66.
Hi Edwin
C:\Oracle\Middleware\jdev_11gR1\jdeveloper\bin\soa11g_ant\soa\tools\ant\build.x
m
l:20: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
Regards
Emmnauel
Reply
67.
Hi,
please check if you have the ant soa scripts in the jdeveloper bin folder.
set ORACLE_HOME=C:\oracle\MiddlewareJdev11gR1PS1
set ANT_HOME=%ORACLE_HOME%\jdeveloper\ant
set PATH=%ANT_HOME%\bin;%PATH%
set JAVA_HOME=%ORACLE_HOME%\jdk160_14_R27.6.5-32
set CURRENT_FOLDER=%CD%
Reply
68.
Thanx Edwin
BUILD FAILED
C:\Oracle\Middleware\jdev_11gR1\jdeveloper\bin\soa11g_ant\soa\tools\ant\build.x
m
l:23: The following error occurred while executing this line:
C:\Oracle\Middleware\jdev_11gR1\jdeveloper\bin\soa11g_ant\soa\tools\ant\build.x
m
l:43: The following error occurred while executing this line:
C:\Oracle\Middleware\jdev_11gR1\jdeveloper\bin\soa11g_ant\soa\tools\ant\build.x
m
l:76: The following error occurred while executing this line:
C:\oracle\Middleware\jdev_11gR1\jdeveloper\bin\ant-sca-deploy.xml:132: sar locat
ion cannot be found:c:/temp/Woningnet-Test/Woningnet-Test_mds.zip
please help
Thanks
Regards
Emmanuel
Reply
69.
Hi,
when you don't use MDS disable this and if you do you need to supply the right folder in
this build.properties parameter
mds.applications=Woningnet-Test
thanks Edwin
Reply
70.
I updated my ant scripts so it works with PS1 and PS2, you don't need to set the basedir
anymore and it is faster now because it doesn't need to import the soa build xml's .
http://www.sbsframes.nl/jdeveloper/soa11g_ant.zip
thanks
Reply
71.
Hi Edwin
Thank in Advance
Reply
72.
hi,
it cant find the ReadFile composite. did you make a reference to this composite.
thanks
Reply
73.
AnonymousSeptember 2, 2010 at 10:51 AM
Hi Edwin
I finally managed to deploy my project. But i cant deploy more tha one project.below is
my application build.properties :
projects=DomainValueMap, WriteFile
DomainValueMap.revision=1.0
DomainValueMap.enabled=false
WriteFile.revision=1.0
WriteFile.enabled=false
It deploy the first project for the second one it say WriteFile.revision is not defined.
Thanks
Emmanuel
Reply
74.
Hi,
thanks
Reply
75.
projects=DomainValueMap
DomainValueMap.revision=1.0
DomainValueMap.enabled=true
projects=WriteFile
WriteFile.revision=1.0
WriteFile.enabled=true
Thanks
Emmanuel
Reply
76.
Hi,
more the one project in the project variable seperated with a , should work because I do
this.
77.
Hi Edwin,
if u set projetcs=project1,project2
project2.revision=1.0
project1.revision=1.0
I guess.
Thanks a lot
Emmanuel
Reply
78.
Thank you very much for your articles. They are very complete.
My name is Rodrigo. I'm from Argentina. I need advice on best practice for the use of CI
Hudson in SOA projects.
This is my current situation.
Using the script ant-sca-compile and ant-sca-packacge, compile and package the
composites. After this, if everything went well, ejectulo the ant-sca-deploy and send the
composite to the server. Then, through a script in soapUI (testrunner.bat) run the
appropriate tests for the deployed service. If all went well, so there ends my process. But
otherwise, I run through ant undeploy-sca-deploy (undeploy) and then again run the
deployment of the latest stable version of the service.
This operation, in several complex services, it is truncated to the middle.
Think that is a matter of performance of the server configuration? or by an error in the
process?
Thank you very much and I hope your answer.
Regards
Rodrigo
Reply
79.
Hi,
Do you have logging on the client ( ant logging, verbosee ) and the logging of the
soa_server1.
thanks
Reply
80.
Hi
The deployment ant scripts were extremely helpful. I am getting an error in the validate
composite. I generated a config plan and validated the plan. I could see the replaced
values correctly. I have 2 imports in my composite.xml - one is that specific BPEL
process wsdl and the other is an external wsdl whose hostname I am changing with
searchreplace. This change is not happening.
Reply
81.
Hi,
strange the deployment plan is not used in the validation step, it is only used in the
deployment step and you can only see the result on the server.
And the deployment plan needs to have the same name as the composite + _ + XXXX
where XXXX = your env name
thanks
Reply
82.
You can also find a much easier and ready to use article on building and deploying soa
composites using ant at - http://harishkv.blogspot.com/2010/06/build-and-deploy-soa-
composites-using.html
Reply
83.
Hello,
Reply
84.
Hi,
It looks like it can't find a reference WSDL. do you have deployment order problem or
put the wsdl in your composite and use this instead of the http address.
thanks
Reply
85.
First of all, big thanks to you Edwin. This article just got me jumpstarted on ant and on
config plans.
I would like to mention one thing though. When I first ran the build.xml, it failed as it
could not find junit test cases
It works now
Reply
86.
Hi Edwin,
I am deploying ProviderABCS with the help of the script provided by you but unable to
deploy the ABCS because I am not able to set the classpath for AIA.jar properly.
To over come the same I added aia.jar to classpath in ant-sca-compile.xml. still,scac is
not recognizing aia.jar
Regards
Rebonto
Reply
87.
Edwin BiemondMarch 19, 2011 at 1:47 PM
Hi,
thanks
Reply
88.
Realy interesting !!
can you give me a clue how to deploy human tasks used by BPM and BPEL components
?
Reply
89.
Hi,
It can deploy a composite and a composite is a deployment unit which can contain a
human task, BPEL, mediator etc.
thanks
Reply
90.
Reply
91.
Hi Edwin
that means, we can deploy multiple SOA applications (i am not talking about multiple
projects).
applications=OADApp,PostApp
Reply
92.
Hi,
in every application/ workspace folder add a property file with the soa projects.
thanks
Reply
93.
Hi Edwin,
However when we are trying to deploy the metadata our configuration plan doesnt
replace the URLs in the wsdls of the partner link.
ant -f ant-sca-deploy.xml
-DserverURL=http://localhost:8001
-DsarLocation=D:/applications/sharedMetaData.zip
-Doverwrite=true
-Duser=weblogic
-DforceDefault=true
-Dconfigplan=ABC_cfgplan.xml
http://ip1:port1
http://ip2:port2
<search
Reply
94.
Reply
95.
Hi,
do you want to update your MDS and also want to use a deployment plan.
there is no need to put a endpoint in a wsdl. Endpoint is only necessarry in the ws.binding
element of the composite reference
thanks
Reply
96.
Hey Ediwn, Thanks for very useful article. i just wanted to check will this script work in
linux environment as well?
I want to run this script from Server environment(SOA11g PS2 Linux. Can you please let
me know what all are setup needed at server side to run this script.
Thanks
Reply
97.
Hi,
code=500
[04:53:57 PM] Error deploying archive sca_RegistrationUpload_rev24.0.jar to partition
"default" on server DAMS_Batch_Server1 [urasvr140.uradevt.gov.sg:8001,
Cluster:DAMS_Batch_Cluster]
[04:53:57 PM] HTTP error code returned [500]
[04:53:57 PM] Error message from server:
#;There was an error deploying the composite on DAMS_Batch_Server1: Operation
failed - Member(Id=1, Timestamp=2011-06-02 15:25:57.428,
Address=172.16.10.45:8088, MachineId=46637,
Location=site:uradevt.gov.sg,machine:urasvr140,process:3968,
Role=WeblogicServer):Error occurred during deployment of component: TaskProcess1
to service engine: implementation.bpel, for composite: RegistrationUpload: ORABPEL-
01005
#;
#;Failed to compile bpel generated classes.
#;failure to compile the generated BPEL classes for BPEL process "TaskProcess1" of
composite "default/RegistrationUpload!24.0*soa_f19c6537-e518-4c05-940c-
688c1ddb2593"
#;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.
#;; . Please see the server diagnostic logs on DAMS_Batch_Server1 for details.
Reply
98.
Hi,
When you install jdev with the soa suite extension then it should work on linux
only have to change the c:/ path in the ant properties files
thanks
Reply
99.
Hi,
Do you have some custom plugin which are not installed on the new domain or does the
domain lib folder of your working domain contains some jars.
and check your weblogic server logs to see the real error.
thanks
Reply
100.
Hi Andy,
deployment.plan.environment=dev
Reply
101.
Reply
102.
Hi,
just create one in the project folder and use this name convention
${proj.compositeName}_cfgplan_${deployment.plan.environment}.xml
like Hello_cfgplan_acce.xml
thanks
Reply
103.
Hi,
Currently I am using using your script to deploy jar file(sar) from jdev.The problem I am
facing is that if I have more than one jar file in my folder all the jar gets deployed even
though I pass configuration of 1 jar.Here is the buil.properties file
dev.serverURL=http://localhost:8001
dev.overwrite=true
dev.user=weblogic
dev.password=weblogic11
dev.forceDefault=true
dev.server=localhost
dev.port=8001
dev.partition=default
dev.failonerror=true
projects=EditorProject
EditorProject.revision=8.0
EditorProject.enabled=true
In my folder I have another jar file of HelloWorld.Though I have passed info about
EditorProject only,Helloworld jar also get deployed along with EditorProject
Reply
104.
Hi Edwin,
First of all I would like to say Thank you for your wonderful scripts. This blog is really
useful for me. I am new to the SOA.
I am facing an issue while deploying the SOA 11g project from Hudson. The host I am
trying to deploy is AIX machine. The idea is Hudson should check out the codes from
SVN, compile all the SOA projects and deploy them in WLS which is in AIX. Hudson
also deployed in that same WLS.
It is failing while the compiling the composite. Getting the following error:
scac:
[scac] Validating composite
"/home/fmwdev/.hudson/jobs/FirstDevBuild/workspace/TestApplications/Project1/comp
osite.xml"
[scac] Schema Check ... [+0.1 ms]
[scac] Loading Composite... [+1.093 sec]
[scac] scac.properties = {} [+449.4 ms]
[scac] Parse Composite... [+0.7 ms]
[scac] FAILED [+2.852 sec]
[scac] info: Validating composite
"/home/fmwdev/.hudson/jobs/FirstDevBuild/workspace/TestApplications/Project1/comp
osite.xml"
[scac] info: Pass
[scac] error: location {/ns:composite}(12,61): Parse of component type files failed, check
the adf-config.xml file : "oracle.fabric.common.FabricException:
oracle.fabric.common.FabricException: javax.management.InstanceNotFoundException:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean: javax.management.InstanceNotFoundException:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean: oracle.fabric.common.FabricException:
javax.management.InstanceNotFoundException:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean: javax.management.InstanceNotFoundException:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean:
com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.Run
timeServiceMBean"
Reply
105.
Reply
106.
Hi,
You can control which applications and projects you want to deploy.
In the main properties file you define the applications ( workspaces ) you want to use.
In the workspace folder there is also a property file and it contains the projects you want
to include in the deployment
Thanks
Reply
107.
Hi Edwin,
Could you please let us know how to deploy projects in to different domain.
Let's say I have two projects A and B and we want to deploy Project A in 'Default'
domain and Project B in 'Custom' domain.
Thanks,
Reply
108.
Hi,
The solution is to add a project property called partition to the project property file, like
helloworld.partition=default
Then fill the partition parameter of SOA deploy and undeploy ant task
Good luck
Reply
109.
ABJune 27, 2011 at 12:08 PM
Thanks again Adwin for quick reply ?…I followed the steps you suggested to deploy the
project into specific domain.
3) fill the partition parameter of SOA deploy and undeploy ant task
..
Although I am able to deploy project into specific domain, It gives the following error
compositeMgrTask:
[java] Connecting to:
service:jmx:t3://localhost:8001/jndi/weblogic.management.mbeanservers.runtime
[java] connection initiated
[java] javax.management.MBeanException: The configuration file, deployed-
composites.xml, does not contain the Custom/HelloWorld!1.0 composite-revision
[java] at
oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(Or
acleStandardEmitterMBean.java:902)
[java] at
oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMBeanInterceptor.i
nternalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
[java] at
oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(A
bstractMBeanInterceptor.java:245)
...
..
[java] at
weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
[java] at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[java] Caused by:
oracle.fabric.management.deployedcomposites.mbean.CompositeNotFoundException:
The configuration file, deployed-composites.xml, does not contain the
HelloWorld!1.0 composite-revision element.
Reply
110.
Hi,
Add partition support to the ANT script ( deploy, activate and test all uses the partition
parameter ) and updated the blog and scripts in the zip
please download the zip again and add the following property to every project in the
project.properties file
myproject.partition=default
thanks
Reply
111.
Reply
112.
Hi Edwin,
Is there way to generate reports for all deployments which we make from the
script.Suppose if 10 coposites are deployed using script can we generate any html or xml
report which can give statistics like name of all deployed composites,time take for
deployment.
Reply
113.
Edwin BiemondJuly 7, 2011 at 4:07 PM
Hi,
this is indeed possible I think I can use this xml ant framework for that.
http://www.oopsconsultancy.com/software/xmltask/
Make a template xml and add for every workspace, a new element to the output xml and
also for the composites under this workspace together with all the actions and parameters.
thanks
Reply
114.
Hi Edwin;
And I was deploying ONLY this project, there was only ONE in my application's
build.properties file. The day before I had 9 projects to build and the revision was 20.0
and I had the same problem. Because I was lazy and just messing around I changed the
version to 20 from 20.0 and it worked. So when I had the same problem today I changed
to the version to 1 from .5 and it, too, worked.
Ingrid
Reply
115.
Hi,
partition support
Build logging
SAR and MDS zip files are bundled under build number.
Demo mode, in which you can test the ANT configuration without calling the oracle ant
files.
thanks
Reply
116.
Hi Edmond;
I used your new scripts and they mostly worked fine but I still got this error on some of
my projects:
[java] at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[java] Caused by: oracle.fabric.management.deployedcomposites.mbean.Composi
teNotFoundException: The configuration file, deployed-composites.xml, does not c
ontain the default/CreateUpdateRFXBUYProvABCSImpl!1.0 composite-revision
element
.
THe compile worked fine but the issue occurred in the deploy. The difference in the
projects between those that deployed and those that didn't is that the ones that didn't
invoked one or more bpel flows running on the same server. This was partially handled
by the cfgplan that overlaid the location of the wsdl in the composite.xml. But the WSDL
location is also referenced in the projectname.componentType. The cfgplan doesn't seem
to overlay it here so I manually did it.
Also, the log file is great improvement however it did not catch this failure which I think
it should:
I don't know how to catch this type of fault in ANT. If you do you could make this
enhancement the next time you are fiddling with these scripts.
Thanks, Ingrid
Reply
117.
I have a problem deploying composites from Dev to UAT, for example when there is a
service that i reference in my composite and when on that service they change the
schema/XSD.
when i use Ant to deploy it validate the XSD in Dev with the one in UAT and my deploy
fails.
Thanks
Reply
118.
Hi,
And by way you should put the reference wsdl or xsd in your own project or in the mds
(much better )
then it will use the local wsdl and xsd to validate and only need the endpoint to the
reference composite.
if you don't do that you can get invalid composites while starting the soa server.
thanks
Reply
119.
Hi
Thanks for such a nice help. This is very very helpful to us.
I have a question here. I am setup my custom build.xml and build.properties file in the
Jdev along with composite. I have followed your instruction. Now i am facing an error as
given below
===================================
deployProject:
[echo] deploy project ${project} for environment ${deployment.plan.environment}
BUILD FAILED
D:\Debarshi\AllLocalWorkSpace\CorelogicDevApplication\Project1\build.xml:216:
Property '${project}.revision' is not defined.
----------------------------------
********************************
projects=Project1
Project1.revision=2.0
Project1.enabled=true
Project1.partition=default
# global
wn.bea.home=D:/oracle/Middleware
java.passed.home=${wn.bea.home}/jdk1.6.0_23
# PS4
#wn.bea.home=D:/Oracle/MiddlewareJDevPS4
#java.passed.home=${wn.bea.home}/jdk160_24
oracle.home=${wn.bea.home}/jdeveloper
wl_home=${wn.bea.home}/wlserver_10.3
# temp
tmp.output.dir=c:/temp
junit.output.dir=../../
# my settings
applications.home=../../applications
applications=CorelogicDevApplication
# my settings
mds.repository=C:/oracle/Middleware/jdeveloper/integration/seed/apps/
mds.applications=Woningnet-Test
#demo applications
#applications.home=workspaces
#applications=wrkspc1,wrkspc2
mds.enabled=true
mds.undeploy=true
deployment.plan.environment=dev
#==================================================
*********************************
Reply
120.
it looks like it cant find the build.properties inside this CorelogicDevApplication folder.
thanks Edwin
Reply
121.
Hi Edwin;
I have built our deployment using this as a model. I am however having problems
deploying the ADF Worklist forms. Should I compile and deploy them as separate tasks
from the BPEL Composites? When I deploy the composite that includes a worklist adf
form the form has deployed (in one case, a simple one) but it's deployment shows as
FAILED on the server. The other forms are not deploying at all. Do you have any
samples of compiling the ADF Java form, creating the ear and war files and doing the
deploy to the server? I think this is what I will have to do.
Ingrid
Reply
122.
Hi,
Indeed you need to do a different deployment not like soa. You need to deploy it as a
normal war /ear to the adminserver and not against the soa server. And I think it has to be
deployed under the workflow url.
don't know what jdev normally generates but if it is like a normal adf app then Oracle
puts a lot of stuff in an ear ( adf-config and jazn). War is relatively easy (just a
deployment profile ), else you can better use ojdeploy utility to generate the ear or war.
thanks
Reply
123.
Hi Beimond,
Will the deployment plan take care of updating the host port in the componenttype file.
or is there any seperate tag/code i need to add to replace the hostname in the
componettype file.
Reply
124.
Hi Edwin;
Back to my side job of deployments... now I am moving the deployment scripts from my
PC to UNIX. I have got it to the point where it's starting the validation and compile
however.... the last thing it displays is
scac:
[scac] Validating composite
"/home/ijackson/composites/CoSDEAIA_EbizBuyRFQPO/CancelRFXBUYProvABCSI
mpl/composite.xml"
[scac] Schema Check ... [+30.4 ms]
[scac] Loading Composite... [+397.3 ms]
[scac] Parse Composite... [+25.7 ms]
[scac] Parse ComponentTypes [+2.113 sec]
[scac] Getting MetaDataManager [+15.0 ms]
[scac] Getting WSDL Manager [+0.2 ms]
[scac] Done with Load Composite [+107.0 ms]
[scac] Loading WSDLs ... [+0.3 ms]
[scac] WSDL [CancelRFXBUYProvABCSImplRef.wsdl]
[scac] WSDL [oramds:/apps/cosdeaia/UtilityArtifacts/RuntimeFault.wsdl]
[scac] WSDL [DeleteDownLoadHistoryHeaderOnly.wsdl]
[scac] WSDL [DeleteDowLoadHistoryForLine.wsdl]
[scac] WSDL [DeleteSolAttachText.wsdl]
[scac] WSDL [DeleteSolAttachFile.wsdl]
[scac] WSDL [DeleteBuyerSubmissionComments.wsdl]
[scac] WSDL [DeleteAwards.wsdl]
[scac] WSDL [DeleteSubmissions.wsdl]
[scac] WSDL [DeleteRFXLine.wsdl]
[scac] WSDL [DeleteRFQLineLocations.wsdl]
[scac] WSDL [SelectSolAttachIdForHeader.wsdl]
[scac] WSDL [SelectSolAttachmentLine.wsdl]
[scac] WSDL [SelectTextSolAttachForHeader.wsdl]
[scac] WSDL [SelectSolAttachForLine.wsdl]
[scac] Validating WSDLs ... [+224.6 ms]
FREEZESTOPFREEZESTOP
There is nothing put in the .err files ANYWHERE it just stops. I have looked endlessly at
the classpaths and found one problem but it stopped at the same place after I corrected it.
Any ideas of how I could troubleshoot this? Is there a log somewhere that I am missing?
I have not changed any of the jvm args. Do you think that could be the problem? They
are the same as on my desktop.
jvmarg value="-Xms128m"
jvmarg value="-Xmx1024m"
jvmarg value="-XX:PermSize=32m"
jvmarg value="-XX:MaxPermSize=256m"
Ingrid
Reply
125.
Hi,
I think he is trying to download and validate a wsdl and the http location is not found and
maybe because of the high tcp timeout parameters he is forever waiting.
please check this else try to isolate this by making simple testcases.
thanks
Reply
126.
Hi Edwin,
In the SVN, the BPEL process has the references to DEV environment of the web
services.
So, in my CI environment I checkout the code from the SVN, then run sca_package and
sca_deploy.
On sca_deploy I use a config plan to replace the urls, so the process is deployed
referencing CI web services.
But it fails the sca_compile, because DEV web services aren't accessible.
Regards,
Reply
127.
Hi,
your reference services (the wsdl and xsd ) should always be in the MDS like described
here.
http://blogs.oracle.com/aia/entry/aia_11g_best_practices_for_dec
If you don't this you can also get invalid composite when the server reboots or the other is
deployed before the other.
thanks
Reply
128.
@Robert, I have the same problem as you. Have you solved the issue?
Reply
129.
Hi Marinus,
Did you download jdeveloper for linux / generic and downloaded the soa plugin.
thanks
Reply
130.
hi edwin
can u explain me how to deploy from jdev(using ant)not with command prompt.i have
generated build.xml and build.properties files using jdev. i have no idea where to add the
weblogic server hostnames and password .and while deploying i am getting java.awt
headless exception .please help
Reply
131.
Hi,
you can import, move the build.xml and properties files into a jdeveloper project and run
it from there.
the bat files jars and path you can add to the jdeveloper project.
thanks.
Reply
132.
I am deploying composites to servers using scripts. Everything is working fine other than
one composite where i am using custom xpath functions.The composite fails to build
itself using scripts.
Now my doubt is did i have to point the script to that custom functions jar?
Reply
Replies
1.
Hi,
Can you put the jar in the classes dir of the composite.
thanks
thanks
2.
Reply
133.
Got the way. Just placed xml file(config xml file for custom functions) in the sca-
inf/classes/meta-inf folder and placed the class file(not jar) inside sca-inf/classes
folder.(placed the same structure of the package. i.e if the class is com.util.example
created util directory inside the com directory and placed the com directory inside sca-
inf/classes folder)
Reply
Replies
1.
I am facing the same issue while compiling composite referring to custom XPath
functions using ant script. It fails during compilation.
I was going through Suriya Reply..Can you please explain config xml file for
custom functions. i didn't get this point.
Reply
134.
Hi Edwin,
I see you suggest having one configuration file per environment like one for dev, one for
test and one for PROD etc. Have you come across a way of having just one template
configuration file and have a way to replace with appropriate url's using properties file or
something? Currently I am investigating to see if that is possible. Please let me know
your suggestions on this
Reply
Replies
1.
thanks
2.
Reply
135.
Hi Edwin,
Problem Description: When i run the ant-sca-test i am getting the below exception. I have
run the setSOADomainEnv.cmd to set the classpath. Is there anything else i need to do?
We are using SOA 11.1.1.5 on dev environment. ant-sca-compile and others are working.
Command
--------------------------------------------------------------------------
ant -f ant-sca-test.xml -Dscatest.input=HelloSyncTestSum -
Djndi.properties=C:/Oracle/Middleware/scajndi.properties
Error
---------------------------------------------------------------
[scatest] javax.naming.NameNotFoundException: Unable to resolve 'FacadeFinderBean'.
Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve
'FacadeFinderBean'. Resolved '']; remaining name 'FacadeFinderBean'
[scatest] at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
[scatest] at
weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
[scatest] at
weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
[scatest] at weblogic.jndi.internal.ServerNamingNode_1035_WLStub.lookup(Unknown
Source)
[scatest] at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:423)
[scatest] at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
Thanks
Reply
Replies
1.
Hi
does scajndi.properties has a reference to the soa server and not to the admin
server.
thanks.
Reply
136.
Hi Edwin,
My ant scripts were working fine but when we started to use Custom XPATH function,
they are failing with the following error:
in HosActivationFactService.bpel(120): could not resolve xpath function "writeLog",
because function "logging:writeLog" not registered.
[scac] error: in HosActivationFactService.bpel(140): could not resolve xpath function
"writeLog", because function "logging:writeLog" not registered.
Thanks,
Saurav
Reply
Replies
1.
Hi
Got the way. Just placed xml file(config xml file for custom functions) in the sca-
inf/classes/meta-inf folder and placed the class file(not jar) inside sca-inf/classes
folder.(placed the same structure of the package. i.e if the class is
com.util.example created util directory inside the com directory and placed the
com directory inside sca-inf/classes folder)
Reply
137.
Hi Edwin,
I've seen that it's possible to change a reference endpoint using a deployment plan o
changing the right property in the EM console, but I've a doubt, I need customized url for
input service endpoints in a composite, do you know how it could be done?
Thanks in advance,
Reply
Replies
1.
thanks
Reply
138.
Hi Edwin,
I created sharedritfacts.zip and deployed the jar file. Where exactly (directory location)
can i find my deployed artifacts.
Note we are not implementing AIA and AIA is not installed as part of soa suite install
Thanks
Charandeep
Reply
Replies
1.
Hi,
on the soa server, its in the MDS db, you can make a mds connection to it from
jdeveloper
thanks
Reply
139.
Hi Edwin,
We have created a jar file to log the BPEL information in a composite. Now when I tried
to compile the composite with the ant-sca-package.xml as per your script it is unable to
find the jar file. Below things I have tried.
When I run ant with debug mode, I see that -classpath is having my jar file in the
classpath, but in the out.err, I see totally different classpath. Do you know how to
overcome this problem?
Reply
Replies
1.
Hi,
did you also add it to the sca-inf/classes or sca-inf/lib folder of your bpel
composite.
Reply
140.
Hi Edwin,
your blog is full of interesting information on Oracle SOA Suite and i'm glad to you for
this.
Now let's talk about my problem, i need an hint on deployments process. I deployed my
application (7 composites) without problems, but sometimes i have to fix some bugs and
redeploy the affected composite.
In this case running instances of the redeployed composite will be terminated and this
isn't a good thing.
Are there some better way to manage deploy without terminate running instances?
Reply
Replies
1.
Hi,
In that case you should do raise the composite version and deploy that one (make
that default) and retire the previous version. New request will be handled by the
default composite and retired composite will finish current instances.
thanks
2.
Thank you!
3.
Hi,
I know with PS5, there are more options ,especially with BPM. but if you change
too much you will get some problems.
2) don't think so but maybe you can kill the childs , this will also crash the main
composite.
thanks
Reply
141.
I am trying to redeploy a SOC composite.I have created a batch file that contains all the
required commands for redeploying the SOA composite.
Disable and enable are working fine. But for undeploy and deploy I am getting the
following error.
when I run the same commands from a normal command prompt every thing is working
fine.
Please suggest what needs to be done to resolve this issue as this is very urgent.Thanks in
advance for your help.
Thanks
Reply
Replies
1.
Hi,
thanks.
Reply
142.
Hi Edwin,
Thanks for the the great blog.
It would be great if you could clarify my doubts about SOA composite deployment.
As we see we have a depnedecy on MDS while compilation and deployment of SOA
composites for common XSD, WSDL etc.So when we move our deployable (SAR) from
CERT to PROD adf-config.xml part of SAR file gets moved to PROD, so we have
compile the code against prod MDS reference then deploy to PORD.
Is it the right approach for SOA deployment?
How we complie once and deploy to multiple environment using env specif config plan,
with out warrying about MDS entry available in adf-config.xml?
Is there any way we can change those MDS entry from adf-config.xml while deploying to
a targer sewrver using configuration plan?
Thanks,
Biltu
Reply
Replies
1.
Edwin BiemondSeptember 27, 2012 at 4:34 PM
Hi,
First, your composites and MDS should be separate deployments and keep them
in sync. Build them once on DEV , deploy them together to PROD and use config
plans to update endpoints to the PROD ones.
And keep in mind composites WS references should use MDS wdsl's and not be
depended of remote or local ws endpoints at deploy time.
thanks
Reply
143.
Hi Edwin,
I am trying to deploy the SOA applications on a dev environment; the script works fine
and deploys the projects successfully which I verified from EM console; and the build is
successful; but I see the below error (I saw some references to this error in the comments
thread; and I already see the script having wljmsclient.jar in the jar loaded list). I did
enable tunneling as well in the console. Please advise any other possible
reasons/resolutions?
ompositeMgrTask:
[java] Connecting to: service:jmx:t3://AHOST.in.oracle.com:10101/jndi/webl
ogic.management.mbeanservers.runtime
[java] java.net.MalformedURLException: Unsupported protocol: t3
[java] at javax.management.remote.JMXConnectorFactory.newJMXConnector(J
MXConnectorFactory.java:327)
[java] at oracle.fabric.management.deployedcomposites.CompositeManagerH
elper.createJMXConnector(CompositeManagerHelper.java:91)
[java] at oracle.fabric.management.deployedcomposites.CompositeManager.
initConnection(CompositeManager.java:48)
[java] at oracle.fabric.management.deployedcomposites.CompositeManagerA
ntWrapper.execute(CompositeManagerAntWrapper.java:221)
[java] at oracle.fabric.management.deployedcomposites.CompositeManagerA
ntWrapper.main(CompositeManagerAntWrapper.java:275)
[echo] finish
BUILD SUCCESSFUL
Total time: 45 seconds
Thanks,
Ajit.
Reply
Replies
1.
Hi,
maybe you can generate wlfullclient and use that instead of all the weblogic jars.
the jmx url looks fine.
thanks
Reply
144.
Hi Edwin,
I am trying to use your script but i am getting following error.
I am not sure what you are expecting in applications property in build.properties
I have given the path of my jdev mywork where my application reside.
C:\Kesko\Build>ant -f build.xml deployAll
Buildfile: build.xml
deployAll:
[echo] date = 2012-10-11 17:20:58
[echo] build = 10
[mkdir] Created dir: C:\Kesko\Build\builds\10
deployApplication:
[echo] deploy application ${applications}
deployProject:
[echo] deploy project ${projects} for environment ${deployment.plan.environ
ment}
BUILD FAILED
C:\Kesko\Build\build.xml:68: The following error occurred while executing this l
ine:
C:\Kesko\Build\build.xml:204: The following error occurred while executing this
line:
C:\Kesko\Build\build.xml:216: Property '${projects}.revision' is not defined.
#demo applications
#applications.home=workspaces
#applications=wrkspc1,wrkspc2
#demo mds locations
#mds.repository=mds/seed/apps/
#mds.applications=company,common
mds.enabled=true
mds.undeploy=true
deployment.plan.environment=dev
# dev deployment server weblogic
dev.serverURL=http://localhost:7001
dev.overwrite=true
dev.user=weblogic
dev.password=welcome1
dev.forceDefault=true
dev.server=localhost
dev.port=7001
# acceptance deployment server weblogic
acc.serverURL=http://localhost:7001
acc.overwrite=true
acc.user=weblogic
acc.password=welcome1
acc.forceDefault=true
acc.server=localhost.port=7001
With Regards,
Harshwardhan
Reply
Replies
1.
Hi,
applications.home means the home where all the workspace folders exists.
applications, contains the workspaces you want to build
in the workspace folder you should have a property file with all the projects you
want to build.
thanks.
Reply
Load more...
Create a Link
Newer Post Older Post Home
Subscribe to: Post Comments (Atom)
Edwin Biemond
Oracle ACE , Java Developer of the year 2009 and Architect at Amis. Co-writer of the
OSB Developement Cookbook.
I am working as a Solution Architect and specialized in integration, middleware, security
and web development.
View my complete profile
My books
Privacy
Blog Archive
► 2013 (1)
► 2012 (24)
► 2011 (34)
► 2010 (36)
▼ 2009 (68)
o ► December (6)
o ► November (9)
o ► October (4)
o ▼ September (4)
Deploy Soa Suite 11g composite applications with A...
Job scheduling in Weblogic
WSM in Fusion Middleware 11G
SSO with WebLogic 10.3.1 and SAML2
o ► August (3)
o ► July (7)
o ► June (7)
o ► May (6)
o ► April (6)
o ► March (6)
o ► February (5)
o ► January (5)
► 2008 (103)
► 2007 (30)
Labels
adf (68)
adf bc (bc4j) (11)
adf excel gui (1)
adf mobile (1)
adf security (5)
adf taskflow (30)
Adobe Flex (29)
Adobe Flex Blazeds (10)
Adobe Flex LifeCycle (4)
AIA (2)
AQ (7)
AS (1)
Axis (2)
B2B (2)
Coherence (2)
EclipseLink (17)
EDN (3)
Exadel Fiji (2)
HortnetQ (2)
hudson (1)
java (14)
JBossAS (2)
JCache (1)
jdeveloper 10.1.3 (17)
jdeveloper 11g (85)
jdeveloper 11g soa suite (80)
jdeveloper 11g webcenter (12)
jdeveloper 11gR2 (5)
jheadstart (3)
jms (9)
jsf (20)
JSON (1)
ldap (4)
Maven (4)
MDS (6)
Metro (WSIT) (1)
MySQL (5)
NoSQL (1)
OEPE (6)
Oracle Service Bus (28)
OWSM (11)
REST (2)
Ruby on Rails (3)
RubyAMF (3)
SAML (6)
SCA (4)
Siebel (1)
Skinning (1)
SOA (4)
Tuscany (1)
web services (29)
WebLogic (63)
WLST (8)
XQuery (2)
Akka in Action
Follow by Email
Popular Posts
Easy way to start your WebLogic Servers with the NodeManager in the background
When you work with Fusion Middleware you probably know you need to start the
WebLogic Servers with the scripts located in the bin folder of ...
OSB 11g ANT deployment scripts
For Oracle Service Bus 10.3 & 11g you can use the ANT / WLST deployment scripts
provided by Oracle. With these scripts you can make an expor...
In a project I need to set the HTTP authentication on a JAX-WS proxy client. So let's do
it. We only have to set the username and password o...
In Soa Suite 11g the JMS adapter has support for request reply operations. You can use
this operation in synchronous or asynchronous mode. ...
Here some code which you can use in your backing beans, I use this code all the time.
With this you can retrieve the data or actions from th...
In Fusion Middleware 11g it is not so difficult to protect your JAX-WS Web services or
your Composite Services. You just need to add an Orac...
Oracle Weblogic Application Server has a lot of features to make your Web Applications
or Web Services Scalable and High Available. To achie...
In WebLogic you can use database tables as authentication provider for your web
applications. In these tables you can store your application...
In a default WebLogic Domain you can have various WebLogic logfiles located at
different locations. For administrators it can be hard to fin...
With the release of Soa Suite 11g R1 Patch Set 1 Oracle improved the standard ant scripts
for MDS deployment and removal. Before PS1 we had ...