Wednesday, September 29, 2010

Setting properties for SOA composite

In SOA Suite 11g if you have to add properties to your soa composite then you can change it from em console.

Log in to em console

http://host:port/em

choose Weblogic Domain-->Soa Domain

Now in weblogic domain choose system mbean browser as shown below



now navigate to Application Defined MBeans > oracle.soa.config > Server : soa_server1 > SCAComposite > your_project > SCAComposite.SCAComponent > your bpel_process.
Select the Attribute ‘Properties’



NOw you can add your propery over there for the particular composite.




To get an idea on various deployment descriptor properties check on oracle documentation

How to disable WS Addressing in SOA Suite 11g

In BPEL, the WS Addressing by default (the outbound sync call through ws binding) is enabled.There are service provider implementations that don't understand these, and
hence fail.Successful communication can be done on that scenario by disabling the WS Addressing.

This issue is a known bug 9111078 and it can be resolve either by applying this patch or you need to add a property to your bpel process.

Select the external reference and create a property oracle.soa.ws.outbound.omitWSA and set it to true as explained in blog.

Just to explain the steps in a clear way.

OPen up your jdeveloper.Choose the external reference and go to property inspector




NOw click on create a property and provide the following details

Add the property oracle.soa.ws.outbound.omitWSA and set its value to true as shown below



Now save your project and deploy it again to your server and now you will get no issues if the external reference doesn't know of ws addressing

Tuesday, September 28, 2010

Upgrade Domain Value Map(DVM) from SOA suite 10g to Soa Suite 11g

log in to esb console in SOA suite 10g



Switch to DVM and create a new dVM



I created a sample dvm and saved it.



Now just go to ORACLE_HOME\integration\esb\bin folder and export the DVM as suggested in document



Now if you will check the folder

SOA_HOME\integration\esb\bin you will find that a metadata.zip file is created over there ,copy and paste this meta data file into machine where in we have soa suite 11g.

Now as per the document if you will use the ant command you might get some issues as shown


D:\oracle\Middleware\Oracle_SOA1\bin\ant-sca-upgrade.xml:99: taskdef class oracle.ias.upgrade.task.XRefDVMUpgradeTask cannot be found





This is because we have not set the ORACLE_HOME and ANT_HOME.

ONce you will set ORACLE_HOME and ANT_HOME you will be able to build it successful.

but even after that you will get some error



this is because you have not set your soa suite version.

run soaversion.cmd command



now run the ant command again

You might get issues like Invalid xml file.




This is because we have not pointed out to our metadata zip file

so i will again run the ant command

providing the source and target for the metadata






This will fetch us a jar file sca_XrefDvmFiles10g_rev1.0.jar that will be created in the output directory,along with that it will also create a temp folder which will contain dvm folders and and auxiliary.zip file.

now we will import this project in to soa suite 11g.OPen up jdeveloper 11g

and create a new application as given in the document

Import the archive file into MDS repository
Start Oracle JDeveloper 11g and create a new application.

Import the Oracle SOA Suite archive into a new SOA project:

From the Oracle JDeveloper 11g File menu, select Import, then SOA Archive into SOA Project.

In the Create SOA Project from SOA Archive Dialog Box, select JAR Options in the navigation tree on the left, and then click Browse to locate the sca_XrefDvmFiles10g_rev1.0.jar file that you created previously in this procedure.

Select File Groups > Project Output from the navigational tree on the left, and enter XrefDvmFiles10g in the Target Directory in Archive field.

Click OK to create the new SOA project, which is called XrefDvmFiles10g.

The new project consists of an empty composite, along with the upgraded XRef and DVM files.

Create a JAR file for the XRef and DVM metadata, and then deploy the JAR file to the Oracle SOA Infrastructure.



it will create an empty composite and the dvm will be imported to it as shown below



now you have the dvm in jdeveloper 11g deploy this project to your application server.

[07:40:23 PM] ---- Deployment started. ----
[07:40:23 PM] Target platform is (Weblogic 10.3).
[07:40:23 PM] Running dependency analysis...
[07:40:23 PM] Building...
[07:40:30 PM] Deploying profile...
[07:40:30 PM] Updating revision id for the SOA Project 'Project3.jpr' to '1.0'..
[07:40:30 PM] Wrote Archive Module to C:\JDeveloper\mywork\DVM\Project3\deploy\sca_XrefDvmFiles10g_rev1.0.jar
[07:40:30 PM] Deploying sca_XrefDvmFiles10g_rev1.0.jar to soa_server1 [localhost:8001]
[07:40:31 PM] Processing sar=/C:/JDeveloper/mywork/DVM/Project3/deploy/sca_XrefDvmFiles10g_rev1.0.jar
[07:40:31 PM] Adding sar file - C:\JDeveloper\mywork\DVM\Project3\deploy\sca_XrefDvmFiles10g_rev1.0.jar
[07:40:31 PM] Preparing to send HTTP request for deployment
[07:40:31 PM] Creating HTTP connection to host:localhost, port:8001
[07:40:31 PM] Sending internal deployment descriptor
[07:40:31 PM] Sending archive - sca_XrefDvmFiles10g_rev1.0.jar
[07:40:42 PM] Received HTTP response from the server, response code=200
[07:40:42 PM] Successfully deployed archive sca_XrefDvmFiles10g_rev1.0.jar to soa_server1 [localhost:8001]
[07:40:42 PM] Elapsed time for deployment: 19 seconds
[07:40:42 PM] ---- Deployment finished. ----

Monday, September 27, 2010

Connect BPEL 11.1.1.3 with BAM 11.1.1.3

In this exercise we will see how to create a simple BPEL process and integrate it with Oracle BAM.

We will be using SOA Suite 11.1.1.3 and Jdeveloper 11.1.1.3 for this exercise.

First of all start both you soa server and bam server from admin console.

Create a new SOA project




create a composite with bpel



Make it a synchronous process



make it a simple BPEL process,i.e. drag and drop an assign activity
and copy the input variable to output variable and save the project
so your process should look something like this.




Now first thing you need to verify is your SOA Server and BAM Server
are up and running or not.



One you verified start BAM console

http:\\host:port\OracleBAM



click on architect



and create a new data object.I have given data object name BPELDO and created only one field for it.Once it is done just say create data object



You can verify the data object thus created



Now go back to your jdeveloper and click on monitor tab for the bpel process to get the sensor button.



Now create a sensor variable



point it to input payload



now create a new BAM sensor action



Now in the next screen choose the BAM server connection and choose the data object that you have created.



once done select the input and choose the upsert option and click a create xsl option



Now in the xsl map the input variable payload to the data object input as shown below



So now you are done with the bpel process.Now deploy this to your soa suite.and invoke an instance,I invoked it using 123 as input and you can see that in my BAM data object
the same is been updated.



This is just a simple scenario you can use it in many case ,also the we can create active view to see the dynamically changing data as we see in case of flight chart which keeps on changing as per the status of flight.


There is one very important configuration which i have missed because i have already configured it at my end,you will get an error if you have not configured.

If you will see the BAM sensor then you will find that by default it uses the eis/bam/rmi connection factory we need to configure it.

Log into your admin console and click on deployment.

You will get there OracleBamAdapter

Click on that

You will get the eis/bam/rmi connection factory



and provide the details for your server



Now save the changes and now you shouldn't be getting any error.If you get some issue let me know.

Friday, September 24, 2010

Sensor tab is missing in Jdeveloper 11g

You are trying to create a BAM sensor in Jdeveloper 11g and you are not getting the sensor tab in your bpel process.

If you can see in the pic below i have created a simple bpel process and the sensor button in not available in structure window.



In 11g this feature has been moved to monitor perspective.

you can see a monitor tab on top of the bpel process.by default when a process is created it appears in BPEL mode.click on Monitor mode to switch to other perspective and now you should be able to see the sensor variables.

Wednesday, September 22, 2010

No able to deploy Composite in SOA Suite 11g cluster

It is very often that people faces problem that they are not able to deploy there composite in SOA Suite 11g cluster environment.

The reason for this is they have not configured the coherence properly.

Coherence comes as part of SOA suite and SOA clusters uses coherence for communicating between the nodes. If you have chosen unicast as cluster's messaging mode then you need to configure coherence as per following section

5.4 Configuring Oracle Coherence for Deploying Composites

in EDG guide or Oracle


If your are cluster is running in multicast messaging mode, and if your network supports multicast, then there is no need to configure coherence seperately. It will work out of the box.

Without coherence, deployment will not get distributed across all the servers. Even instance replications/failover will not work.

Sunday, September 19, 2010

How to use SOA -MDS for shared object

A lot has been already discussed about this by Clemens' and Biemond's blogs

In this exercise i am basically using the same concept as given in these links.

I will use the code provided by Clemens to store my fault policies in MDS and will see how does it work.

I will be using the same code sample that i have used for fault handling

you can download the fault handling project and we will do some modification in that and see how will it work when fault policies are stored in SOA-MDS.


I have used the binaries file provided by Clemens and have changed it for my application.

you might have to request to get the files


NOw down this binary file and import the .jpr file in to your jdeveloper.


Its structure should look like this




NOw as you can see that i have removed the fault-policies.xml and fault-bindings.xml from the bpel fault process.


Now the next important thing is to change the values in your build.properties file.

First is

oracle.home=D:\\oracle\\Middleware\\Oracle_SOA1

oracle.common.home=D:\\oracle\\Middleware\\oracle_common

Oracle.home will be the location where in you have installed SOA

oracle.common.home is the location of your BEA_HOME\oracle_common


admin.server.host=localhost
admin.server.port=7001


server host is my local host

server port is 7001 in my case

server.domain.name=soa_server1


it is the name of the domain that you have created during installation.

managed.server.host=localhost
managed.server.port=8001

foreign.mds.type=db


managed server is also local host for me and port is 8001 ,i am using db as MDS type that is my data will be stored in SOA_MDS dehydration

Finally


mds.db.userid=DEV_MDS
mds.db.password=welcome1
mds.db.jdbc-url=jdbc:oracle:thin:@localhost:1521:orcl

You have to provide the user for your MDS by default it is DEV_MDS

ONe these changes have been done you can just select the build.xml and run it to insert the data into MDS


The binary code that i am using to test or insert data in to mds is the one provided by Clemens and i am not really sure how does it internally work as i have very less knowledge in ant scripting.




It will ask for the password of the server



Provide the password and it will import the data in to the MDS

you will find the following output in the jdev ant query


Apache Ant version 1.7.0 compiled on December 13 2006
Could not load property file D:\common-binaries-mds\bin\build.properties: D:\common-binaries-mds\bin\build.properties (The system cannot find the path specified)
Buildfile: D:\common-binaries-mds\bin\build.xml
Detected Java version: 1.6 in: D:\jdev11g\jdk160_14_R27.6.5-32\jre
Detected OS: Windows XP
parsing buildfile D:\common-binaries-mds\bin\build.xml with URI = file:/D:/common-binaries-mds/bin/build.xml
Project base dir set to: D:\common-binaries-mds\bin
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
[property] Loading D:\common-binaries-mds\bin\build.properties
Override ignored for property "oracle.home"
[echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006 Java: 1.6
[available] Found: D:\jdev11g\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar
[property] Loading Environment env.
Property "env.JAVA_HOME" has not been set
[echo] Using mds-type : db
[available] Found: D:\oracle\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar
Build sequence for target(s) `importCommonServiceArtifactsIntoMds' is [init, ConfigMDSStore, importCommonServiceArtifactsIntoMds]
Complete build sequence is [init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForServerFileStore, createMDSConfigForFileStore, createMDSConfigForDB, deleteCommonServiceArtifactsFromMds, ]

init:
[echo] SOA Suite 11g version:
[java] running com.collaxa.cube.util.BuildInfo with default permissions (exit forbidden)
[java] Running in same VM Executing 'com.collaxa.cube.util.BuildInfo'
The ' characters around the executable and arguments are
not part of the command.
[java]
[java] *****************************************************************************
[java] Oracle SOA Server version 11.1.1.2.0
[java] Build: 0
[java] Build time: Tue Nov 03 13:48:58 PST 2009
[java] Build type: release
[java] Source tag: PCBPEL_11.1.1.2.0_GENERIC_091103.1205.1216
[java]
[echo] soa infra mgmt home: D:\oracle\Middleware\oracle_common
[echo] oracle home: D:\jdev11g\jdeveloper\
[echo] oracle common home: D:\oracle\Middleware\oracle_common
[mkdir] Skipping D:\common-binaries-mds\bin\util\classes because it already exists.
[javac] com\otn\sample\fod\soa\util\GetCurrentTimeStampHelper.java omitted as D:\common-binaries-mds\bin\util\classes\com\otn\sample\fod\soa\util\GetCurrentTimeStampHelper.class is up to date.
[javac] com\otn\sample\fod\soa\util\MdsDeleteTask.java omitted as D:\common-binaries-mds\bin\util\classes\com\otn\sample\fod\soa\util\MdsDeleteTask.class is up to date.
[javac] com\otn\sample\fod\soa\util\MdsImportTask.java omitted as D:\common-binaries-mds\bin\util\classes\com\otn\sample\fod\soa\util\MdsImportTask.class is up to date.

ConfigMDSStore:
Project base dir set to: D:\common-binaries-mds\bin
[antcall] calling target(s) [createMDSConfigForDB] in build file D:\common-binaries-mds\bin\build.xml
parsing buildfile D:\common-binaries-mds\bin\build.xml with URI = file:/D:/common-binaries-mds/bin/build.xml
Project base dir set to: D:\common-binaries-mds\bin
[property] Loading D:\common-binaries-mds\bin\build.properties
Override ignored for property "admin.server.port"
Override ignored for property "oracle.common.home"
Override ignored for property "server.domain.name"
Override ignored for property "foreign.mds.type"
Override ignored for property "oracle.home"
Override ignored for property "managed.server.host"
Override ignored for property "mds.db.password"
Override ignored for property "mds.db.userid"
Override ignored for property "managed.server.port"
Override ignored for property "mds.db.jdbc-url"
Override ignored for property "admin.server.host"
Override ignored for property "adf.config.uri"
[echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006 Java: 1.6
[available] Found: D:\jdev11g\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar
[property] Loading Environment env.
Override ignored for property "env.SystemDrive"
Override ignored for property "env.PERL5LIB"
Override ignored for property "env.windir"
Override ignored for property "env.PATHEXT"
Override ignored for property "env.USERDOMAIN"
Override ignored for property "env.PROCESSOR_IDENTIFIER"
Override ignored for property "env.SESSIONNAME"
Override ignored for property "env.PROCESSOR_LEVEL"
Override ignored for property "env.ComSpec"
Override ignored for property "env.PSModulePath"
Override ignored for property "env.OS"
Override ignored for property "env.ProgramFiles"
Override ignored for property "env.HOMEDRIVE"
Override ignored for property "env.DEFLOGDIR"
Override ignored for property "env.HOMEPATH"
Override ignored for property "env.Path"
Override ignored for property "env.PROCESSOR_REVISION"
Override ignored for property "env.USERPROFILE"
Override ignored for property "env.TMP"
Override ignored for property "env.ALLUSERSPROFILE"
Override ignored for property "env.USERNAME"
Override ignored for property "env.LOGONSERVER"
Override ignored for property "env.PROMPT"
Override ignored for property "env.PROCESSOR_ARCHITECTURE"
Override ignored for property "env.CommonProgramFiles"
Override ignored for property "env.VSEDEFLOGDIR"
Override ignored for property "env.APPDATA"
Override ignored for property "env.TEMP"
Override ignored for property "env.NUMBER_OF_PROCESSORS"
Override ignored for property "env.SystemRoot"
Override ignored for property "env.FP_NO_HOST_CHECK"
Override ignored for property "env.COMPUTERNAME"
Property "env.JAVA_HOME" has not been set
[echo] Using mds-type : db
Override ignored for property "db.based"
[available] Found: D:\oracle\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar
Override ignored for property "oracle.soa.mgmt.home"
[input] skipping input as property server.password has already been set.
Override ignored for property "wls.home"
Build sequence for target(s) `createMDSConfigForDB' is [createMDSConfigForDB]
Complete build sequence is [createMDSConfigForDB, init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForServerFileStore, createMDSConfigForFileStore, deleteCommonServiceArtifactsFromMds, ]
[antcall] Entering D:\common-binaries-mds\bin\build.xml...
Build sequence for target(s) `createMDSConfigForDB' is [createMDSConfigForDB]
Complete build sequence is [createMDSConfigForDB, init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForServerFileStore, createMDSConfigForFileStore, deleteCommonServiceArtifactsFromMds, ]

createMDSConfigForDB:
[echo] Creating ../.adf/META-INF/adf-config.xml for database backed MDS
[input] skipping input as property mds.db.password has already been set.
[copy] Copying 1 file to D:\common-binaries-mds\.adf\META-INF
[copy] Copying D:\common-binaries-mds\bin\templates\adf-config-db.seed to D:\common-binaries-mds\.adf\META-INF\adf-config.xml
[replace] Replacing in D:\common-binaries-mds\.adf\META-INF\adf-config.xml: @db.user@ --> DEV_MDS
[replace] Replacing in D:\common-binaries-mds\.adf\META-INF\adf-config.xml: @db.password@ --> welcome1
[replace] Replacing in D:\common-binaries-mds\.adf\META-INF\adf-config.xml: @db.connect.string@ --> jdbc:oracle:thin:@localhost:1521:orcl
[echo] Using jdbc:oracle:thin:@localhost:1521:orcl for db-based backing, with user DEV_MDS
[antcall] Exiting D:\common-binaries-mds\bin\build.xml.
Project base dir set to: D:\common-binaries-mds\bin
[antcall] calling target(s) [createMDSConfigForFileStore] in build file D:\common-binaries-mds\bin\build.xml
parsing buildfile D:\common-binaries-mds\bin\build.xml with URI = file:/D:/common-binaries-mds/bin/build.xml
Project base dir set to: D:\common-binaries-mds\bin
[property] Loading D:\common-binaries-mds\bin\build.properties
Override ignored for property "admin.server.port"
Override ignored for property "oracle.common.home"
Override ignored for property "server.domain.name"
Override ignored for property "foreign.mds.type"
Override ignored for property "oracle.home"
Override ignored for property "managed.server.host"
Override ignored for property "mds.db.password"
Override ignored for property "mds.db.userid"
Override ignored for property "managed.server.port"
Override ignored for property "mds.db.jdbc-url"
Override ignored for property "admin.server.host"
Override ignored for property "adf.config.uri"
[echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006 Java: 1.6
[available] Found: D:\jdev11g\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar
[property] Loading Environment env.
Override ignored for property "env.SystemDrive"
Override ignored for property "env.PERL5LIB"
Override ignored for property "env.windir"
Override ignored for property "env.PATHEXT"
Override ignored for property "env.USERDOMAIN"
Override ignored for property "env.PROCESSOR_IDENTIFIER"
Override ignored for property "env.SESSIONNAME"
Override ignored for property "env.PROCESSOR_LEVEL"
Override ignored for property "env.ComSpec"
Override ignored for property "env.PSModulePath"
Override ignored for property "env.OS"
Override ignored for property "env.ProgramFiles"
Override ignored for property "env.HOMEDRIVE"
Override ignored for property "env.DEFLOGDIR"
Override ignored for property "env.HOMEPATH"
Override ignored for property "env.Path"
Override ignored for property "env.PROCESSOR_REVISION"
Override ignored for property "env.USERPROFILE"
Override ignored for property "env.TMP"
Override ignored for property "env.ALLUSERSPROFILE"
Override ignored for property "env.USERNAME"
Override ignored for property "env.LOGONSERVER"
Override ignored for property "env.PROMPT"
Override ignored for property "env.PROCESSOR_ARCHITECTURE"
Override ignored for property "env.CommonProgramFiles"
Override ignored for property "env.VSEDEFLOGDIR"
Override ignored for property "env.APPDATA"
Override ignored for property "env.TEMP"
Override ignored for property "env.NUMBER_OF_PROCESSORS"
Override ignored for property "env.SystemRoot"
Override ignored for property "env.FP_NO_HOST_CHECK"
Override ignored for property "env.COMPUTERNAME"
Property "env.JAVA_HOME" has not been set
[echo] Using mds-type : db
Override ignored for property "db.based"
[available] Found: D:\oracle\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar
Override ignored for property "oracle.soa.mgmt.home"
[input] skipping input as property server.password has already been set.
Override ignored for property "wls.home"
Build sequence for target(s) `createMDSConfigForFileStore' is [createMDSConfigForFileStore]
Complete build sequence is [createMDSConfigForFileStore, init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForServerFileStore, createMDSConfigForDB, deleteCommonServiceArtifactsFromMds, ]
[antcall] Entering D:\common-binaries-mds\bin\build.xml...
Build sequence for target(s) `createMDSConfigForFileStore' is [createMDSConfigForFileStore]
Complete build sequence is [createMDSConfigForFileStore, init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForServerFileStore, createMDSConfigForDB, deleteCommonServiceArtifactsFromMds, ]

createMDSConfigForFileStore:
Skipped because property 'file.based' not set.
[antcall] Exiting D:\common-binaries-mds\bin\build.xml.
Project base dir set to: D:\common-binaries-mds\bin
[antcall] calling target(s) [createMDSConfigForServerFileStore] in build file D:\common-binaries-mds\bin\build.xml
parsing buildfile D:\9948771\common-binaries-mds\bin\build.xml with URI = file:/D:/common-binaries-mds/bin/build.xml
Project base dir set to: D:\common-binaries-mds\bin
[property] Loading D:\common-binaries-mds\bin\build.properties
Override ignored for property "admin.server.port"
Override ignored for property "oracle.common.home"
Override ignored for property "server.domain.name"
Override ignored for property "foreign.mds.type"
Override ignored for property "oracle.home"
Override ignored for property "managed.server.host"
Override ignored for property "mds.db.password"
Override ignored for property "mds.db.userid"
Override ignored for property "managed.server.port"
Override ignored for property "mds.db.jdbc-url"
Override ignored for property "admin.server.host"
Override ignored for property "adf.config.uri"
[echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006 Java: 1.6
[available] Found: D:\jdev11g\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar
[property] Loading Environment env.
Override ignored for property "env.SystemDrive"
Override ignored for property "env.PERL5LIB"
Override ignored for property "env.windir"
Override ignored for property "env.PATHEXT"
Override ignored for property "env.USERDOMAIN"
Override ignored for property "env.PROCESSOR_IDENTIFIER"
Override ignored for property "env.SESSIONNAME"
Override ignored for property "env.PROCESSOR_LEVEL"
Override ignored for property "env.ComSpec"
Override ignored for property "env.PSModulePath"
Override ignored for property "env.OS"
Override ignored for property "env.ProgramFiles"
Override ignored for property "env.HOMEDRIVE"
Override ignored for property "env.DEFLOGDIR"
Override ignored for property "env.HOMEPATH"
Override ignored for property "env.Path"
Override ignored for property "env.PROCESSOR_REVISION"
Override ignored for property "env.USERPROFILE"
Override ignored for property "env.TMP"
Override ignored for property "env.ALLUSERSPROFILE"
Override ignored for property "env.USERNAME"
Override ignored for property "env.LOGONSERVER"
Override ignored for property "env.PROMPT"
Override ignored for property "env.PROCESSOR_ARCHITECTURE"
Override ignored for property "env.CommonProgramFiles"
Override ignored for property "env.VSEDEFLOGDIR"
Override ignored for property "env.APPDATA"
Override ignored for property "env.TEMP"
Override ignored for property "env.NUMBER_OF_PROCESSORS"
Override ignored for property "env.SystemRoot"
Override ignored for property "env.FP_NO_HOST_CHECK"
Override ignored for property "env.COMPUTERNAME"
Property "env.JAVA_HOME" has not been set
[echo] Using mds-type : db
Override ignored for property "db.based"
[available] Found: D:\oracle\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar
Override ignored for property "oracle.soa.mgmt.home"
[input] skipping input as property server.password has already been set.
Override ignored for property "wls.home"
Build sequence for target(s) `createMDSConfigForServerFileStore' is [createMDSConfigForServerFileStore]
Complete build sequence is [createMDSConfigForServerFileStore, init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForFileStore, createMDSConfigForDB, deleteCommonServiceArtifactsFromMds, ]
[antcall] Entering D:\common-binaries-mds\bin\build.xml...
Build sequence for target(s) `createMDSConfigForServerFileStore' is [createMDSConfigForServerFileStore]
Complete build sequence is [createMDSConfigForServerFileStore, init, ConfigMDSStore, importCommonServiceArtifactsIntoMds, createMDSConfigForFileStore, createMDSConfigForDB, deleteCommonServiceArtifactsFromMds, ]

createMDSConfigForServerFileStore:
Skipped because property 'server.file.based' not set.
[antcall] Exiting D:\common-binaries-mds\bin\build.xml.

importCommonServiceArtifactsIntoMds:
[java] Executing 'D:\jdev11g\jdk160_14_R27.6.5-32\jre\bin\java.exe' with arguments:
'-Doracle.home=D:\jdev11g\jdeveloper\'
'-classpath'
'D:\common-binaries-mds\bin\util\classes;D:\oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdslcm.jar;D:\oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;D:\oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;D:\oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;D:\oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;D:\oracle\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;D:\oracle\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;D:\oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;D:\oracle\Middleware\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;D:\oracle\Middleware\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;D:\jdev11g\modules\javax.xml.bind_2.1.1.jar;D:\jdev11g\modules\javax.activation_1.1.0.0_1-1.jar;D:\jdev11g\modules\com.bea.core.apache.xercesImpl_2.8.1.jar;D:\oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;D:\oracle\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;D:\oracle\Middleware\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;D:\oracle\Middleware\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;D:\oracle\Middleware\oracle_common\modules\oracle.ucp_11.1.0.jar;D:\jdev11g\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6.jar;D:\jdev11g\modules\org.apache.ant_1.7.0\lib\ant.jar;D:\jdev11g\wlserver_10.3\server\lib\weblogic.jar;D:\oracle\Middleware\oracle_common\modules\oracle.jrf_11.1.1\jrf.jar;D:\oracle\Middleware\oracle_common\modules\oracle.webservices_11.1.1\wsclient.jar;D:\jdev11g\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;D:\oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;D:\oracle\Middleware\oracle_common\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;D:\jdev11g\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle-soa-client-api.jar'
'com.otn.sample.fod.soa.util.MdsImportTask'
'../.adf/META-INF/adf-config.xml'
'mstore-usage_1'
'apps'
'./MySeed'

The ' characters around the executable and arguments are
not part of the command.
[java] Starting local filesystem import into mds ..
[java] Got target mds-instance: mstore-usage_1 from D:\common-binaries-mds\bin\..\.adf\META-INF\adf-config.xml
[java] Creating source mds connection to ./MySeed/apps
[java] --> D:\common-binaries-mds\bin\.\MySeed
[java] Local item: /apps/common/fault-bindings.xml
[java] Local item: /apps/common/fault-policies.xml
[java] Now transferring ..
[java] Sep 22, 2010 9:46:26 PM oracle.mds
[java] NOTIFICATION: import operation started.
[java] Transferred size = 2
[java] Sep 22, 2010 9:46:26 PM oracle.mds
[java] NOTIFICATION: import is completed. Total number of documents successfully processed : 2, total number of documents failed : 0.
[java] Transferred - /apps/common/fault-bindings.xml
[java] Transferred - /apps/common/fault-policies.xml

BUILD SUCCESSFUL
Total time: 7 seconds


ONce it is completed your data are inserted in to the MDS store.

YOu might get some compilation error because of the version of jar files used so you just have to replace the version with the one which you have in your environment and then you should be able to run it successfully.

Now if you can see the folder structure of the binary file i have copied the fault policy file within Myseed-->apps-->common folder.

IT has to be apps and then you can create your own folder structure otherwise there will be some permission issue.


now we will open the composite.xml of our faulted process and use the following code in our composite
<property name="oracle.composite.faultPolicyFile">oramds:/apps/common/fault-policies.xml</property>
<property name="oracle.composite.faultBindingFile">oramds:/apps/common/fault-bindings.xml</property>


instead of

<property name="oracle.composite.faultPolicyFile">fault-policies.xml</property>
<property name="oracle.composite.faultBindingFile">fault-bindings.xml</property>

Here now you can consider one pattern over here

we have the entry as oramds:/apps/common/fault-bindings.xml

as you can see we have the same structure entry as the folder structure that i have created in binary file.

NOw save this and redeploy your project.

Now test this project ,i have used the same fault policy file so it should go to manual recovery.

I tested this and i got the expected result



Let me know if you have issues in the same.

Friday, September 17, 2010

Not able to connect to SOA Suite 11g using jdeveloper 11g

While trying to create a connection from Jdeveloper to your soa suite 11g you are getting following error in your jdeveloper

Error message :- Testing JSR-160 Runtime ... failed.
Cannot establish connection.
Testing JSR-160 DomainRuntime ... skipped.
Testing JSR-88 ... skipped.
Testing JSR-88-LOCAL ... skipped.
Testing JNDI ... skipped.
Testing JSR-160 Edit ... skipped.
Testing HTTP ... success.
Testing Server MBeans Model ... skipped.
Testing HTTP Authentication ... success.


The reason being that you are trying to use you own user to connect to application server.


Try with user weblogic to create a jdeveloper connection.

Or if you want to create a connection with different user then you need to assign him the roles of a administrator.

Log in to admin console

Go to Realms-->Your realm-->User and Groups

Click on your user

Switch to roles tab and assign the user administrator privilege.

If you are not sure of what all privilege you need to assign to a user ,just check the roles of weblogic and assign the same privilege to your user too.

Even if you will use wlst script to connect to server you will get exception when user is not weblogic


wls:/offline> nmConnect('admin','welcome1','host','5556','soa_domain','/applwls/Middleware/admin/soa_domain')
Connecting to Node Manager ...

Traceback (innermost last):
File "", line 1, in ?
File "", line 123, in nmConnect
File "", line 646, in raiseWLSTException
WLSTException: Error occured while performing nmConnect : Cannot connect to Node Manager. : [Security:090476]Invalid/unknown SSL header was received from peer localhost - ip address during SSL handshake.
Use dumpStack() to view the full stacktrace

Assigning privilege to user should resolve the issue as i was able to make it work.

Wednesday, September 15, 2010

How to create cwallet.sso file

If you are dealing with security feature then there is a requirement to have cwallet.sso file.

I just found its use case in SOA Suite 11g jp-config.xml points to default cwallet.sso,what if we want to use our own wallet and certificate.This is how we will generate our own cwallet.sso

Open your wallet manager



Create a new wallet

Provide the password



Provide certificate request



Now once it is created you can save it is some folder location by clicking on save button



I just saved it to directory i have created



now if you will go to the location you have stored your wallet you will find a file called ewallet.p12

Now again go to wallet manager

Click on wallet and select auto login



as soon as you will select it a file cwallet.sso will be generated in the same folder location where in you have stored your wallet.

Create output file of same name as input file using file adapter in SOA Suite 11g

For a working sample of SOA Suite 10g Please refer to following document


We will discuss in this exercise how to do the same in 11g

Create a new Project



Make it an empty project



Drag and drop a dile adapter in exposed service swinlane

this will read the file from a directory



Specify the input directory which has to be polled



in the input file name pattern specify *.* which basically means all type of file with any extension.



Keep on saying next and choose the opaque schema



Keep sayin next and finish your wizard.

Now drag and drop again one more file adapter in external reference swimlane this will write the data to some output folder location.





choose the output folder location and the output file name format

I have chosen the default one po_%SEQ%.txt

Again choose opaque schmea for this and finish this wizard also.




========================

Now inbound and outbound adapter service are created ,now drag and drop one mediator in the component section.




connect the inbound to mediator and mediator to outbound so that your service should now look like this.




Now double click on mediator and create a transformation file which will basically map the input file to output file



Once mapped saved you project and deploy it to you application server.

NOw drag and frop some file in to input folder which is being polled and observer the output in output folder location.



As soon as you will put any file in input folder it will be polled by file adapter and it will generate a file called PO_1.txt in output folder.

So it is working fine but we have put an input file called input.txt and we want that the output file generate should also be named as input.txt

For that we will again go to our mediator service and create one assign activity.




We will create a copy operation where in we will assign jca.file.FileName of input to jca.file.FileName fo output as shown below



Now save this and again redeploy your project.

Now if you will put a file you will get the output file of same name as input file.