Friday, July 11, 2014

In Oracle SOA 12c when we deploy composite to default partition or any other partition then we may get below error.

Error:

[09:40:14 PM] Error deploying archive sca_HelloWorld_rev1.0.jar to partition "default" on server DefaultServer [http://localhost:7101]
[09:40:14 PM] HTTP error code returned [500]
[09:40:14 PM] Error message from server:
There was an error deploying the composite on DefaultServer: java.security.AccessControlException: access denied ("oracle.fabric.permission.CompositePermission" "default" "provision"): access denied ("oracle.fabric.permission.CompositePermission" "default" "provision").
[09:40:14 PM] Check server log for more details.
[09:40:14 PM] Error deploying archive sca_HelloWorld_rev1.0.jar to partition "default" on server DefaultServer [http://localhost:7101]
[09:40:14 PM] Deployment cancelled.
[09:40:14 PM] ---- Deployment incomplete ----.
[09:40:14 PM] Error deploying archive file:/C:/JDeveloper/mywork/SOAApplication/HelloWorld/deploy/sca_HelloWorld_rev1.0.jar
(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

Cause:

This error occurs when you use JDK 8 to install Oracle SOA 12c in your machine, JDK 8 has some extra security features that causing this issue.

Resolution:


Uninstall your Oracle SOA 12c and re-install with JDK 7 version.



6 comments :

  1. Humpf, damn! I spent a lot of time on this today, nice catch!

    ReplyDelete
  2. I reinstalled SOA Suite 12c with Java 7, but still had the error. This was because I was still using Java 8 to start the servers in my domain. After switching to Java 7 to start my servers, the problem was gone. Not sure what happens if you just replace Java 8 with Java 7 and just restart the soa server. Someone should try that before reinstalling to confirm whether a reinstall is necessary.

    ReplyDelete
  3. I tried changing from Java 8 to Java 7 without reinstalling. After changing JDK deployment went fine. No need to reinstall.
    I have to say, I use a symbolic link in Windows (mklink /d) to point to my most recent jdk. The only thing I did was changing the location the symbolic link points to.

    ReplyDelete
  4. In my case I had to change the hard coded path to the JDK in the setDomainEnv.cmd file of the JDeveloper embedded weblogic:

    C:\Users\####user###\AppData\Roaming\JDeveloper\system12.1.3.###.###.####\DefaultDomain\bin\setDomainEnv.cmd

    ReplyDelete
  5. Yes this works , no need to reinstall Jdev

    ReplyDelete
  6. This work after changing the JDK location in the jdev.conf file located under ORACLE_HOME\jdeveloper\jdev\bin
    Even the JDev gives a warning for the JDK version incompatibility when launched and the message displays the path of file where the JDK location needs to be changed. No need to uninstall.

    ReplyDelete