Posts

Search for a specific class in a folder structure recursively

For those of you that have migrated java application from Fusion Middleware 11g to 12c, you will know that a lot has changed in the background. In my case, I was migrating a workspace application that heavily relied on Fusion Middleware/WebLogic libraries/classes. Some classes had changed packages or jars so changing the Maven dependency version to the current (12.2.1.3.0 in my case) was not enough. As you know, ORACLE_HOME contains hundreds if not thousand of jars, so I wrote a simple windows command to iterate in ORACLE_HOME folders, open all the jars that it encountered and search for the class name that you pass it. for /R %G in (*.jar) do @jar -tvf "%G" | find " WSSecurityContext " > NUL && echo %G

How to create a WebLogic DataSource using WLST and running it through Apache Maven

In this article, I will show you how to create a WebLogic DataSource. You will need two files to do this. In my case, I named them: createDatasource.properties createDatasource.py The properties file contains weblogic domain related information, while the python/wslt file contains the necessary WLST commands the create the datasource. Finally, to execute the script through Maven run: mvn com.oracle.weblogic:weblogic-maven-plugin:wlst-client -DfileName=createDatasource.py Alternatively, you can run the script through wlst.sh in your domain home: $ORACLE_HOME/oracle_common/common/bin/wlst.sh createDatasource.py The full code is committed here .

Transactions in Oracle SOA Suite 12c

Transaction Semantics Oracle SOA Suite uses the underlying Java Transaction API (JTA) infrastructure to handle its transactions. Oracle BPEL process manager creates a new transaction on a request basis. If a transaction exists, then it is suspended, otherwise it is created. In order to configure the transaction behaviour for a BPEL process, you must set a property named " bpel.config.transaction " in the component section of the composite.xml with one of the following values: required (default value) requiresNew notSupported For example: <component name="LocationHandlerProcess" version="2.0">     <implementation.bpel src="BPEL/LocationHandlerProcess.bpel"/>     <property name="bpel.config.transaction" type="xs:string"many="false">required | requiresNew | notSupported</property> </component> Synchronous invocations When the bpel.config.transaction is set to required ...

Cannot launch JDeveloper 12c after OSX update

After updating my OSX to the latest version, something changed and messed my JDeveloper installation. I launched JDeveloper through terminal and found the following error: Antonioss-MacBook-Pro:bin alog$ ./jdev  Oracle JDeveloper 12c Release 12.2.1.3.0  Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi. at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233) at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:664) at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalInit(EquinoxLauncher.java:69) at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.init(EquinoxLauncher.java:37) at org.eclipse.osgi.launch.Equinox.init(Equinox.java:178) at org.netbeans.modules.netbinox.Netbinox.init(Netbinox.java:84) Cau...

Oracle SOA Suite 12c LDAP Adapter tutorial

Image
This post is based on the previous article on how to install ApacheDS and Apache Directory Studio . You can find the full source code for the current article on GitHub  here . The article is separated in the following sections: Create a new LDAP partition with a user Configure WebLogic LDAP Adapter Create a BPEL process which utilizes LDAP Adapter Section 1 - Create a new LDAP partition with a user To setup our example, we need to create an LDAP partition to store our users. In order to do this: Open Apache Directory Studio, right click on the ApacheDS connection, click on Open Configuration option and go to the partitions tab.                                                                                                   ...

Installing ApacheDS and Apache Directory Studio for a Oracle SOA Suite environment on Mac

Image
In this article, I will show you how to install ApacheDS on Linux and Apache Directory Studio on MacOS. At the moment, you cannot install ApacheDS using the default installer on Mac OS X High Sierra, since the installer tries to access folders that it not permitted by the OS. Therefore, I have installed ApacheDS on a Oracle Enterprise Linux VM running on VirtualBox and an Apache Directory Studio running on Mac. Section 1 - Install and start ApacheDS on Linux In order to install ApacheDS on Linux, follow the next steps: Download ApacheDS from here Open a terminal and navigate to your downloads folder chmod a+x apacheds-2.0.0-M24-64bit.bin   ./apacheds-2.0.0-M24-64bit.bin                                                                       To start ApacheDS run the following command "sudo /etc...