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