Friday, 20 April 2012

How to setup Oracle VM with SOA suite to run Storefront Fusion Demo application

It's actually quite simple after I have done it twice.
1) I removed the applicance I created on day 1 as I keep run out of disk space and I don't know which packages to delete so decided to do a fresh start.
2) Imported the appliance downloaded from oracle website and combined images.
3) Change network setting to bridged so my vm can access the internet directly.
4) Download the correct version of FusionDemo.zip for my version JDeveloper in the host.
5) unzip it.
6) Created a share folder in the VM.
7) Mount the a local directory inside /mnt to the shared folder.
8) Copies the unziped files to /home/oracle/jdeveloper/mywork/FusionDemo.
9) chown -R oracle FusionDemo
10)chgrp -R oinstall FusionDemo

Open the demo application using Jdeveloper.

Thursday, 19 April 2012

Unexpected error in JDeveloper 11g



I keep getting the following errors when trying to open Fusion Order Demo Applications

SEVERE: Exception while updating observer[0]: oracle.bm.commonIde.ProjectObserver@1760aec
java.lang.NullPointerException
at oracle.ide.Ide.getDefaultProject(Ide.java:487)
at oracle.bm.commonIde.ProjectObserver.update(ProjectObserver.java:57)
at oracle.ide.model.IdeSubject.notifyObservers(IdeSubject.java:98)
at oracle.ide.model.Node.notifyObservers(Node.java:786)
at oracle.ide.model.UpdateMessage.firePropertiesChanged(UpdateMessage.java:640)
at oracle.ide.model.ProjectContent$L.projectPropertiesChanged(ProjectContent.java:694)
at oracle.ide.model.Project$StorageListener.structureValuesChanged(Project.java:1097)
at oracle.javatools.data.Structure.fireStructureChangeEvent(Structure.java:455)
at oracle.javatools.data.Structure.firePlaceholderValueAdded(Structure.java:388)
at oracle.javatools.data.Structure.firePlaceholderValueAdded(Structure.java:394)
at oracle.javatools.data.Structure.firePlaceholderValueAdded(Structure.java:394)
at oracle.javatools.data.HashStructure$Impl$3.run(HashStructure.java:1970)
at oracle.javatools.data.HashStructure$Impl.putValueInKeyStruct(HashStructure.java:2021



Thanks to google and fixed by:
I have deleted the contents of JDeveloper directory after that I am able to create or open the applications in JDev- The location of the JDeveloper can be identified by referring help->about->properties->ide.user.dir)
Here are the steps:
cd /home/oracle/.jdeveloper/system11.1.1.3.37.56.60
rm -rf *

Then reopen the JDeveloper,everything works.

This error is caused by at the one point - JDeveloper crashed when I tried to run StoreFrontUI.

Mistakes I made prior: Fusion Order Demo Applications has different version for different version of JDeveloper. I downloaded Demo for JDeveloper R2 and my JDeveloper is R1.

GDM could not write your authorization file (Oracle Enterprise Linux)

Run into the following error when trying to login as oracle:
GDM could not write your authorization file . This
could mean that you are out of disk space or that your
home directory could not be opened for writing . In any
case it is not possible to login. Contact system administrator

Fixed by:
switch to console (ctrl+alt+f1)
log in
rm -rf inside /tmp

Tuesday, 17 April 2012

Day 3 Install Guest Addition


4) Use this link (http://www.virtualbox.org/manual/ch04.html#idp5801200)

 
 Red Hat Enterprise Linux and Oracle Enterprise Linux
  1. For versions prior to 6, add divider=10 to the kernel boot options in /etc/grub.conf to reduce the idle CPU load.
  2. In order to fully update your guest system, open a terminal and run
    yum update
    as root.
  3. Install the GNU C compiler and the kernel development packages using
    yum install gcc
    followed by
    yum install kernel-devel
    
  4. Reboot your guest system in order to activate the updates and then proceed as described above.
  5. In case Oracle Enterprise Linux does not find the required packages, you either have to install them from a different source (e.g. DVD) or use Oracle's public Yum server located at http://public-yum.oracle.com.


Yum failed on pre-built SOA oracle VM

Oracle Linux 5
  1. # cd /etc/yum.repos.d
  2. # wget http://public-yum.oracle.com/public-yum-el5.repo
  3. yum install dkms
Got an error:
"http://uln-internal.oracle.com/yum/EnterpriseLinux/EL5/addons/i386/repodata/repomd.xml: [Errno 12] Timeout: <urlopen error timed out>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: el5_addons. Please verify its path and try again
"
 
Fixed this error by removing the other two configuratin files under /etc/yum.repos.d directory. The other configuration files come with the pre-built VM and they contain the yum oracle internal link which does not allow people who are not working in the Oracle Enviroment to access.

Then by googling, realized that oracle linux does not use dkms so stopped trying to install dkms.

How to change user to  root after log in?

1) Change user to root after login: su -root. Or simply login as root for easy installation and viewing files.

Monday, 16 April 2012

Tranfer files between host and the guest (Oracle VM Linux)

This is how I did it on my machine.
  1. In oracle VM, click on Devices
  2. devices - shared folders -> name: OracleVM, path:D:\OracleVM
  3. Brows the path
  4. Make it Auto-mount and Make permanent
  5. cd /mnt
  6. mkdir OracleVMShare
  7. mount -t vboxsf OracleVM /mnt/OracleVMShare
 Then it worked! Yay!!!!

http://niallcblogs.blogspot.ca/2011/01/setting-up-shared-folders-on-oracle-soa.html
chgrp -R newgroupname directory
chown -R newusername directory

Remove directory recursively:
rm -rf directory
Copydirectory recursively:
cp -r dir1 dir2


How to open a terminal window in Oracle VM SOA prebuilt box

1) Applications
2) Accessories
3) Terminal

Day 2 Connect to the Internet


Everything looked good and I logged on to the VM. But I was not able to connec to Internet. Did this:
1) Setting ->Network.
2) Adapter 1: Use bridged adapter instead of NAT (the default).
3) Choose my network adapter (Intel(R) 82577LM Gigabit Network Connection)
4) Advanced (Adapter type, Intel PRO/1000 MT Desktop(82540EM0))
 Promiscuous Mode: allow all.
Then everything worked!!!


What comes with the prebuilt Oracle SOA virutal box?


  • Oracle Enterprise Linux 5 Update 4
  • Oracle XE Universal database 10.2.0.1
  • Oracle WebLogic Server 10.3.3.0
  • SOA Suite 11gR1 PS2
  • BPM Suite 11gR1 PS2 (with bundle patch #1)
  • BAM 11gR1 PS2
  • B2B 11gR1 PS2
  • JDeveloper 11.1.1.3
Useful links
Materials to read to learn oracle fusion SOA suite.
http://www.oracle.com/technetwork/middleware/soasuite/learnmore/index.html


http://docs.oracle.com/cd/E12839_01/integration.1111/e10223/tutorial_run.htm


How to configure your virtual box?
http://www.itwiredsolutions.com/blog/?p=49


Decided to download and run
Fusion Order Demo sample application.

Friday, 13 April 2012

Day 1 with Oracle Fusion Middleware SOA suite

Download Prebuild Oracle Virtual box prebuilt SOA for window.
http://www.oracle.com/technetwork/middleware/soasuite/learnmore/vmsoa-172279.html

VirtualBox-4.1.12-77245-Win.exe
Download the appliance files

1) install Oracle Virtual Box with all three features selected.
2) Run combine.cmd to create the appliance file.
3) Import the appliance (started 10:45am, 40% done at 11:00am) The appliance needs disk size of at least of 8GB.
4) When start the Virtual Box, got an error that either need to stall extension pack for disable USB 2.0. I decided to disable USB controller support.
5) oracle with password as oracle
The login for WebLogic Server and Enterprise Manager console is weblogic with password welcome1


Steps of installation from another blogger.
http://grow-n-shine.blogspot.ca/2011/11/step-1-download-and-install-virtual-box.html

The name of my VM box is:
http://vbox-oel5u4-soabpm-11gr1ps2-bp1-otn_1:7001/OracleBAM

http://localhost:7001/OracleBAM