Showing posts with label JDeveloper. Show all posts
Showing posts with label JDeveloper. Show all posts

Sunday, December 28, 2014

Uninstalling SOA 12c from Mac

Introduction:
I had written a post earlier on how to install SOA 12c on a Mac.  For trying my hands on uninstalling the same, I followed below steps.

Steps:
1. Open Terminal and Navigate to MW_Home/oui/bin



 2. Open you are on that location, give this command - sh deinstall.sh -deinstall


 3. This will open the Deinstaller


4. On Opening screen, Click Next


5. Next page will give the Summary of products which will be Deinstalled. Click on Deinstall


6. Next screen will show the progress on Deinstall. Once it shows 100% click on Finish


7. Last screen will be displayed showing Deinstall summary.

This is all about Deinstalling SOA 12c.

Thursday, November 27, 2014

Installing SOA 12c on a Mac

Introduction:
Having SOA installed on Windows 7 and working on it since long, I thought of trying my hands on my Mac running OS Yosemite. I have successfully installed SOA 12c on my Mac. Oracle has made it simpler to install SOA 12c for Mac, I still remember how I struggled while installing 11g.

Pre requisites:
1) You need to have Java 7 (jre-7u71-macosx-x64.dmg) installed on your Mac. Steps for installing Java can be found on https://www.java.com/en/download/help/mac_install.xml

Steps:

1) Download SOA 12c from Oracle site (http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html) for Mac (fmw_12.1.3.0.0_soaqs_Disk1_1of1.zip)


2) Once the file is downloaded, unzip the file. Open Terminal and Navigate to the directory containing the .jar files as shown below

Run Java -jar fmw_12.1.3.0.0_soa_quickstart.jar


3) This will bring up the installer, change the OS Group accordingly. I choose everyone. Click OK


 4) First page of the instller, Click Next


5) OracleWls_Home directory will be shown, you can choose your own directory. I went with the default one. Click Next


6) Click Install


7) Next


8) Installation is done, This is the last page. Make sure Start JDeveloper is Enabled and click on Finish


9) JDeveloper will start


10) After start you will see Application Server navigator, where the domain as Unconfigured. Configured the domain either by doing right click on the IntegratedWeblogicServer or by navigating to Run menu as shown in the screen shot below



11) Upon its first time start, a window will open where you will be setting up the password for your local Weblogic. Click OK once done



Thats it. It will take few minutes to configure and start the server. Once started you can access EM using http://localhost:7101/em on your safari.

Monday, November 24, 2014

SOA 12c Creating Derby Database Connection

Introduction:
JavaDB (Derby) is used to run SOA Suite repository on that is used for the integrated server. It is a development database that allows one to start development with SOA Suite without the need to run RCU.


How to create connection:
The steps are quite simple.

1) You need to Open Database Navigator, as shown below




2) Create a new connection

3) Choose Java DB (Derby) from Connection Type drop down and give connection Name


4) Automatically all details will be filled up, but you need to choose the Library. Click on the glass search window and choose Java DB JDBC Driver. Click Ok



5) Test the connection


6) Now you can see the connection in Jdeveloper. Its good to go now





Wednesday, November 19, 2014

Oracle 12c "Composite Lazy Loading" Feature

Introduction:
I had struggled in the past till 11g, where I had seen Server start up taking time when I have more numbers of composites deployed on the server.

With SOA 12c, Oracle has introduced a new feature known as 'Composite Lazy loading'. This is one of the nice features, in which any server initialization tasks such as loading components and resources like WSDLs and XSDs, are loaded later at first-request time when they are needed, which means that server will only create in-memory java models and MBeans. It improves server startup time when there is a large number of composites deployed on it.

Details:
Composite Lazy Loading can be configured at two levels - 1) Domain 2) Component Level

Lazy Loading at Domain Level:
This setting can be disabled/enabled from System MBean Browser in FMW EM console. Follow below steps:
1. Login to EM Console, right-click on the domain you want to tune and select System MBean Browser from the drop-down menu



2. In the System MBean Browser folder structure, navigate through: Application Defined MBeans --  oracle.as.soainfra.config -- Server: ServerName -- SoaInfraConfig -- soa-infra



3. When you click on soa-infra, its attributes will be listed in on the right. Look for the CompositeLazyLoading attribute and click on it. You can set the value to true to enable it or
false to disable it



4. Click Apply and restart the server for changes to take effect.

Lazy Loading at the Component level:
To enable/disable it at component level, you need to follow below steps:
1. Open composite.xml file
2.  Add the new property lazyLoading="false" to override the default behaviour at the domain level, as shown in screen shot



3. Redeploy your code

By default, composites will inherit the lazy loading setting from the domain level.

Friday, November 14, 2014

Installing Oracle 12c

Introduction:

In continuation to my last blog posted on 6th Oct 2014 on Oracle 12c, this article will detail the steps of installation which will bundle JDeveloper, Weblogic, SOA, OSB, Java DB (Derby).
Note: This installation was carried out on WIndows 7 for Studio Edition version 12.1.3.0.0

Prerequisites to Kick-Start:

1) JAVA 7: You need Java 7 installed on your system. I would recommend to use Java 7 for now, with Java 8 we did faced some installation issues. If it is not installed yet, you can refer to below link to get hold of the software (File name: jdk-7u67-windows-x64.exe): http://www.oracle.com/technetwork/java/javase/downloads/index.html

2) SOA 12c: You need to have the software for SOA 12c (fmw_12.1.3.0.0_soaqs_Disk1_1of1.zip) installation. You can download this from below location: http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html?ssSourceSiteId=opn
3) Database: This is OPTIONAL. Oracle 12c comes along with default Java DB (Derby) as Database. So this is not required. I had to explore SOA 12c and MFT, hence I have gone for Derby and local 12c Database. Choice is yours. You can download this from Oracle site, two files will be downloaded i.e. winx64_12c_database_1of2.zip and winx64_12c_database_2of2.zip.

4) You should have enough RAM like 8GB or 16GB, 64 bit configured with good system specifications


Steps of Installation:

1) Type cmd in start menu and once it appears, right click and choose ‘Run as administrator’, as shown below


2) Once command prompt is opened, navigate to your Java Jdk, as shown below





3) Navigate to the folder where your SOA setup is. Extract the zip file, Copy the folder location, this will be handy while giving command for installation

4) Go back to Command prompt and type command as (make sure you are under Java\jdk\bin): java –jar
Below Screenshot explains the same


This will open Quick Start Installer for 12c with Welcome page



5) Click Next, it will ask you for Oracle Home location, i.e. the place where it will install


6) If you follow the above screen shot Left hand panel, 3rd step is for checking Prerequisites, where it will check for operating system certifications and Java versions. Simply click next once it passes these checks

7) 4th step shows Installation Summary, i.e. what all feature it is going to Install. Simply click on Install button

8) 5th Step shows Installation Progress, where it will prepare, copy libraries and will run the setup. Once this completes it will show you success as

9) Click Next and it will show you the final Page as below. Unckeck Start Jdeveloper and click Finish.

Word of Advice: On the final page if you see below, there is a check box for Starting Jdeveloper. I would recommend to uncheck that for a moment. We will start it once configurations are done

Steps for Local Domain Setup

1) If you Start Jdeveloper and then start the server, by default it creates your domain under hidden folder:
C:\Users\\AppData\Roaming\JDeveloper\system11.1.1.7.40.64.93\DefaultDomain

This will be a problem. I would recommend to have your domain in same place, where your Oracle Home is.

2) To do the same, set the System Environment Variable. Goto Environment Variable (Computer -Properties -Advanced system settings -Advanced -Environment Variables -System Variables)



Create folder like user_projects\domains under OracleWls_Home. In the Variable value give the same folder path value as OracleWls_Home\user_projects\domains
Once this is set, means now whenever you will start Jdeveloper server, it will by default create the domain under your Oracle Home

3) Save it and naviagte to open Jdeveloper. Your Jdeveloper will be under \jdeveloper\jdeveloper.exe

4) Once Jdeveloper is opened, Navigate to Window - Application Servers


5) It will open a Tab on left hand side, right click on IntegratedWeblogicServer and start the server. It will by default create the domain. For first time set up it will ask you to enter weblogic details

Enter the password which you will be using for all Weblogic, EM operations.


6) Once done, click OK and you are all good to go.

7) Whenever you want to switch off/bring down your server, just right click on there server and choose Terminate



So, its all done. You are all set to explore SOA 12c. Go.. Go..Go

Friday, August 6, 2010

JDeveloper: TODO

Problem:
Adding Tasks to JDeveloper to keep track of development code

Thoughts:
We always need some kind of Task handler/reminder for our tasks during development so that if that is present in the source code, we can refer that in future (just like Reminder) viz. Need to add a Variable, Delete this variable, Temporary variable, Handle the error etc.

Solution:
Jdeveloper comes with a very good utility - "TODO".
You can write simply TODO as comment (Note: this should be in Caps always) in the source code.
Below picture depicts the same:



Just you need to write //TODO followed by your comments in the source code.

Later through View -> Tasks, you can view all the TODO's in your project. Below picture depicts the same.



So at later point if you want to revisit the code, just double click on the Task line of your interest, it will navigate you to the desired line of code.


Happy Learning.

Wednesday, June 16, 2010

Deployment with Verbose

Problem:
What is the importance of using verbose in your project?

Solution:
Verbose entry appears inside your BPEL project under build.properties file. When you add verbose=true to build.properties file then it gives us much more information regarding the compile/deploy process of SOA projects.

Just add "verbose=true" to your build.properties and deploy your process. While Deploying goto "Apache Ant" Log Window and see more information being written to the log. To accomplish this, follow below mentioned steps:

1) Goto any BPEL Project
2) Open build.properties available under Resources in your application navigator
3) Goto the bottom and add verbose=true
4) Save and Re-deploy
5) Check the Apache-Ant Log Window in your Jdeveloper.

Wednesday, December 23, 2009

ORABPEL-04077

Problem:
ORABPEL-04077
Cannot fetch a datasource connection.
The process domain was unable to establish a connection with the datasource with the connection URL "jdbc/BPELServerDataSource". The exception reported is: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: Timed out

Thoughts:
Sometimes deploying a bpel project of bigger size using JDeveloper throws exception: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: Timed out. This is due to the fact that JDeveloper takes too much time and fails to deploy the project.

Solution:
To solve the issue we need to change values of some configuration files of SOA Server. Follow the below mentioned steps:

1) Stop the SOA Server

2) Open the transaction-manager.xml file present under location:-
<SOA_HOME>\j2ee\oc4j_soa\config\transaction-manager.xml

3) Change the transaction-timeout attribute value to some higher value, viz. transaction-timeout="7200"

4) Now open the orion-ejb-jar.xml file present under location:-
<SOA_HOME>\j2ee\oc4j_soa\application-deployments\orabpel\ejb_ob_engine\orion-ejb-jar.xml

5) Change the transaction-timeout attribute to some higher value, viz. transaction-timeout="3600"

6)There will be 6 entries of transaction-timeout attributes in the file. You have to change all the 6 attributes.

7) Save the files.

8) Restart the SOA Server.

9) Now try to deploy the BPEL project using JDeveloper. It should work.

Monday, May 11, 2009

Jdeveloper log window disappears

Problem:
Log window from Jdeveloper disappears. If we goto view->log, it does not reappear.

Solution:
For JDeveloper 10.1.3.4:-
Search for the windowinglayout.xml file.
Its present in the directory: <Jdev_Home>/jdev/system/oracle.ide.10.1.3.42.70

Rename or delete windowinglayout.xml file. After renaming/deleting it, we get our log window back on Jdeveloper again.

For JDeveloper 10.1.3.3:-
Search for the windowinglayout.xml file.
Its present in the directory: <Jdev_Home>/jdev/system/oracle.ide.10.1.3.41.57

Rename or delete windowinglayout.xml file. After renaming/deleting it, we get our log window back on Jdeveloper again.

Note:
JDeveloper saves the file after closure. So first close JDeveloper and then rename or delete the file.

Wednesday, October 15, 2008

Oracle JDeveloper 11g Released

Introduction:
Oracle JDeveloper 11g showcases new features to provide a full development environment for Java EE 5 – including EJB 3.0 and JSF 1.2 – and rounded out with new features for AJAX developers, including an impressive new ADF Faces rich client set of components as well as Javascript editing and debugging.

JDeveloper 11g marks a significant milestone in the progress of application development.Web services development is greatly improved with updated support for JAX-WS, a complete Web services test framework, and a comprehensive WSDL editor. There are also many developer productivity enhancements to the IDE and Java development features to explore. And, building applications with Oracle ADF has been dramatically improved with the addition of ADF Faces rich client, a new JSF-based ADF controller framework, and countless productivity-boosting enhancements.

JDeveloper now makes use of an installer to prevent errors during installation.

Features of the installer include:
a. Platform-specific(native) installers for Windows & Linux,including a bundled JDK.
b. Generic installer (without a JDK) for all other platforms.
c. Install into a new or existing Middleware home.
d. Perform a complete installation, or install just the components you need.
e. Create shortcuts in the Start menu on Windows.
f. QuickStart page after installation provides easy access to common tasks.
g. Installer supports 3 modes: GUI/graphical, console, and silent.

For more information, you can visit:
http://www.oracle.com/technology/products/jdev/collateral/papers/11/newfeatures/index.html

Friday, April 25, 2008

JDeveloper: Tips and Tricks- Shortcuts

Today I was going through few blogs on JDeveloper. I found some of the links which says about shortcut keys, tips and tricks of using JDeveloper (Shay Shmeltzer's weblog)

1) http://blogs.oracle.com/shay/2007/05/31#a382

2) http://blogs.oracle.com/shay/2006/10/30

3) http://static7.userland.com/oracle/gems/shay/JDeveloperTreasureHunt.pdf