Wednesday, July 25, 2012

Cannot find composite composite.xml in sar file

Problem:

When you deploy a SOA composite via the EM console, you get the following error:
[11:14:19 AM] Error deploying archive sca_HelloWorld_rev1.0.jar to partition "default" on server soa_server1 [http://soadev.ipnweb.com:8001]
[11:14:19 AM] HTTP error code returned [500]
[11:14:19 AM] Error message from server:
There was an error deploying the composite on soa_server1: Error occured in processing sar file sca_HelloWorld_rev1.0.jar before transfering into MDS store. Please make sure the sar file is a valid jar file.: Cannot find composite composite.xml in sar file : sca_HelloWorld_rev1.0.jar. Abort deployment..
 
[11:14:19 AM] Check server log for more details.
[11:14:19 AM] Error deploying archive sca_HelloWorld_rev1.0.jar to partition "default" on server soa_server1 [http://soadev.ipnweb.com:8001]
[11:14:19 AM] ####  Deployment incomplete.  ####
[11:14:19 AM] Error deploying archive file:/C:/svn/HelloWorld/deploy/sca_HelloWorld_rev1.0.jar
 (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
The error is obvious, it cannot find composite.xml in the SAR file.

If you open up the SAR file sca_HelloWorld_rev1.0.jar under your ~/deploy directory, you will only find these 2 files:
  •     scac.log
  •     scac_out.xml 

Solution:

There is a problem with the SOA project due to a JDeveloper migration. Your project is hosed.

1. Recreate the project from scratch.


Applicable Versions:
  • Oracle JDeveloper 11g (11.1.1.5.0)

Ahmed Aboulnaga

No comments: