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. ----

No comments: