Sunday, 13 September 2015

java.security.AccessControlException: access denied

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").
- See more at: http://www.soawork.com/2014/07/oracle-fabric-permission-composite.html#sthash.GZEzTwej.dpuf




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.



Oracle 12c Soa Suite Installation In Windows

In this blog I will explain you how to install Oracle Soa 12c.It very simple and need less time consuming  as compared to other versions.

Step1 :

Go to google and  search with "Oracle SOA  Suite Downloads"

Step2 :

Pick up the 1st link navigate to oracle website,"Accept license agreements" ,expand "Recommended install process" and start downloading the complete pack "SOA Suite 12.1.3 Size: 2.97 GB, Check Sum: 1579850769"




Step 3:


Once downloaded go to the folder path where its saved in your disk.Next go to command prompt by right clicking 
"RUN AS ADMINISTARTOR" and locate to the path where its actually downloaded.

For example in my case to run the downloaded  exe file its below commands in command prompt :

F:\softwares\12c_downloads> "C:\Program Files\Java\jdk1.7.0_67\bin\java.exe"   -jar  fmw_12.1.3.0.0_soa_quickstart.jar



Note--> You need to provide java/ jdk path as mentioned in bold.





Step 4:

Wait for few seconds it will start installing.Click -> next-> next as suggested to complete the installation



Step5:

Once done open jdeveloper --> Navigate To Run-->Start Server Instance.

Provide details 1st time when you configure like--> host,port,username, password

Click OK,,wait for few minutes your 12c server will get configured.

This is last step once server in running mode you can build applications and deploy to weblogic 12c server.