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.














Sunday, 14 June 2015

How to enable System.out.println messages in Weblogic server



Using System.out.println is common practice to debug issues in Java applications.

By default Weblogic server does not display the standard System.out.println messages. To enable those go to weblogic console http://<server-name>:port/console

Click Domain Name > Environments > Servers  > <Server-name> > Logging  and check the following options underAdvanced option.


Redirect stdout Logging enabled.(check mark)

Redirect stderr Logging enabled.(check mark)



Restart the specific managed server and now the System.out.println messages will be visible on the ServerName.log file which is commonly under domain_directory/servers/<server-name>/logs






Saturday, 4 April 2015

Error occurred during initialization of VM & Could not reserve enough space for object heap during weblogic server Startup

This works :

this exists :



set JAVA_OPTIONS=%JAVA_OPTIONS% set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m set PORT_MEM_ARGS=-Xms768m -Xmx1536m


Set this :

 To: set JAVA_OPTIONS=%JAVA_OPTIONS% set DEFAULT_MEM_ARGS=-Xms512m -Xmx768m set PORT_MEM_ARGS=-Xms768m -Xmx1536m



Monday, 29 December 2014

XSLT-SOME GUIDE

<xsl:apply-template> tag signals the XSLT processor to find the appropriate template to apply, based on the type and context of each selected node.

Following is the example of xslt template :

<xsl:apply-template
   select = Expression
   mode = QName
</xsl:apply-template>
 
 
 
select--> used to process nodes selected by an XPath expression, instead of processing all children
mode--> Allows an element as specified by its Qualified Names to be processed multiple times, each time producing a different result



Simple Example  1 :

Consider this xml :
 <?xml version="1.0"?><?xml-stylesheet type="text/xsl"?><hello-world><greeter>An XSLT Programmer</greeter><greeter1>An XSLT Programmers</greeter1><greeting>Hello, World!</greeting> </hello-world>

XSLT :

<?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="/"><xsl:apply-templates select="hello-world/greeter"/></xsl:template><xsl:template match="hello-world/greeter"><xsl:value-of select="." /></xsl:template></xsl:stylesheet>

OUTPUT :

<?xml version="1.0" encoding="UTF-8"?>An XSLT Programmer

Here apply templates calls : template match which in turns displays the value.




good link:


http://www.informit.com/library/content.aspx?b=STY_XML_21days&seqNum=109



Saturday, 6 September 2014

Cannot Find Portype in Wsdl Manager

Solution :


1>Go to bpel process.

2>Check for bpelprocess.componenttype file in your project


3>Remove the unnecessary service component whose reference partner link/wsdl  has been removed earlier,for example I have deleted the below service  which was removed:

 <service name="http_1" ui:wsdlLocation="http_1.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/http/Application1/syntest/http_1#wsdl.interface(Request_Response_ptt)"/>
  </service>


4>Compile and run your code

Xml Parsing Failed Because =

Many times when we compile our bpel code we tend to find this error which is very hard to identify.On click "go to source" it shoots straight to top to bpel xml file without exact notification.


Please look into below steps for resolution of this issue:


1>This error might be because of duplicate wsdl file.

2>This error might be because of duplicate xsd file.


3> This error might be because of  change in wsdl file.Delete old variable and create new input/output variable to refer  new/changed wsdl.

4>Check in your client and target endpoints.Your operation might have got removed.

5>Save your bpel code.Save close it.Then try to recompile it.


Hope this helps.I will post  as I discover more.Happy Programming!!!!