Virtual Box Instructions

Skip to end of metadata
Go to start of metadata

VirtualBox Installation Instructions for Hands on Labs Participants

Virtual Box READY FOR DOWNLOAD - UPDATED 2/3/2012: Smaller image download, lab fixes, more bonus content

We recommend you stay logged into the virtual event for chat, so you can see other lab intro sessions and attendee Q&A related to your session. If you are having memory related errors with VirtualBox, scroll down for troubleshooting info. The chat is your primary interaction with the moderators.

Welcome to the Oracle Technology Network Virtual Developer Day - Oracle WebLogic Suite 12c hands-on lab (HOL) installation instructions. This document describes how to install a virtual guest appliance that provides pre-configured Oracle software and hands on lab exercises for your use while working on the HOLs.  The one image contains all the software you need for both labs in the advanced track.  The step-by-step HOL manuals (Lab Guides) for the sessions will be published on this wiki in PDF format, and will be available inside the virtual conference environment for download.

Virtual Box images will be based on Oracle Enterprise Linux – and this Virtual Box image is 3.8 Gigabytes compressed, so you must download Virtual Box images before the event starts.   The uncompressed appliance will be 7.8 GB, for a total of 11.6 GB of disk, assuming you want to keep the original appliance files handy (recommended).

Please note that this appliance is for testing purposes only, as such it is unsupported and should not to be used in production environment. This virtual machine contains:

  • Oracle Linux 5, JDK 1.6 +
  • Oracle WebLogic Server 12.1.1
  • Oracle Coherence  3.7
  • Oracle TopLink 12.1.1
  • Hudson 2.2
  • Subversion 1.4.2
  • Apache Maven 3.0.1
  • NetBeans IDE 7.1 RC2
  • Oracle Enterprise Pack for Eclipse 12.1.1 / Eclipse 3.7
  • Easter Egg: Introductory Labs for Oracle Coherence 3.7, JPA Tutorial

LAB: Total Oracle WebLogic Server Development with Eclipse, Maven, and Hudson

In this hands-on lab for professional Eclipse Java developers, Oracle product experts discuss the rich set of plug-ins and tooling available in the latest version of Oracle Enterprise Pack for Eclipse to simplify and speed up enterprise Java development with Oracle WebLogic Server 12c. The lab shows you how to configure and use powerful Maven plug-ins from Oracle to develop, build, and deploy with Maven and Hudson for continuous build integration.

LAB: Hands on with an end-to-end Java EE6 Application

This hands-on lab builds a typical 3-tier Java EE 6 Web application that retrieves customer information from a database and displays it in a Web page. The application also allows new customers to be added to the database as well. The string-based and type-safe queries are used to query and add rows to the database. Each row in the database table is published as a RESTful resource and is then accessed programmatically. typical design patterns required by a Web application like validation, caching, observer, partial page rendering, and cross-cutting concerns like logging are explained and implemented using different Java EE 6 technologies  The development, deployment, and debugging of the application will be performed using NetBeans on WebLogic Server 12c.

Bonus Content:

LAB: A Step-By-Step Guide to Oracle Coherence

Develop a simple Java console-based application to access, update and removing simple types of information from a Coherence clustered cache. Then create a simple domain object that can be placed into a Coherence Cache.

LAB: Running the Coherence Examples Project in  Eclipse

This lab will teach you to setup and work with Coherence projects in Oracle Enterprise Pack for Eclipse, using the coherence examples project as an example. You will learn how to use the Eclipse plug-in create and configure projects, define coherence cache servers, run cache servers, and use overrides and understand security basics. The lab will then walk you coherence specifics from their basic feature examples: data access/loading, the query language, parallel querying, cache event monitoring, operations on cached data. There is also bonus content with take-home exercises on security.

*New 2/3/2012! -- LAB: JPA 2.0 and Object Relational Mapping Basics

This lab will guide you through using Oracle Enterprise Pack for Eclipse (OEPE) 12c and JPA 2.0/ORM.   You will create the data model for a Trouble Ticket Tracking System -- a web-based application that manages and maintains lists of tickets submitted for the products of an organization. You will learn to  Generate JPA entities from an existing database Schema, generate Entities from Java Classes, define custom associations, use the entity editor, understand persistence.xml configuration and tools, create and implement DAO classes, and finally run some JUNIT tests to ensure they are working correctly.

Requirements

  • Operating System: Any supported by VirtualBox
  • RAM: 2GB+ RAM
  • Disk: About 11.6 GB free (+3.8GB for appliance, which can be deleted after import, 7.8 GB for uncompressed image)
  • Required Software: Oracle VM VirtualBox 4.1.8 + (but should work fine on 4.1.x)

Setup

Step 1. Download and install Oracle VM VirtualBox on your host system.

Step 2. Right-click and use your browser's Save As... to download the files (OTN Login required):

Consider using a download manager. We've tested the freeware HTTP download manager -- BitComet.

The image has been split into ~700MB chunks for your download convenience:

http://download.oracle.com/otn/other/virtualbox/VDD/assemble.sh
http://download.oracle.com/otn/other/virtualbox/VDD/assemble.cmd

(windows users may need to rename downloaded file from assemble.cmd.txt)

http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.1
MD5 sum:  e975042002f8ab56ae95142fee55ef31
http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.2
MD5 sum:  5736f52d71b9aa76ad94dee36b3567ee
http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.3
MD5 sum:  0f9900fb1c0a00e2b7a880a0d17a277a
http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.4
MD5 sum:  007cfeb66e9ce78f7c8cb7a61ea5a33c
http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.5
MD5 sum:  b2180b488b55aafbb0178ed7e627648c
http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.6
MD5 sum:  e1198ddc91249fb8b73c81df8b09ee5c

*MD5 of assembled file:

VDD_WLS_labs_2012.ova = c50bfdabdafc7e1f7ebf85422663655f

Step 3. Use your Terminal, command prompt, or shell to assemble these files using the provided scripts. We highly recommend checking MD5 sums on the assembled OVA file before attempting an import.  If the checksum on the assembled is bad, simply start checking the sums for the part files until you determine which one was a bad download and re-download.

* For Windows use the script assemble.cmd
* For Linux/Unix use the script assemble.sh

Step 4. Launch VirtualBox and import your VM: File > Import Appliance to launch Appliance Import Wizard. Click Choose... to browse to the directory you re-assembled all the files in and select the VDD_WLS_labs_2012.ova then click Next> to begin importing the virtual machine. It will prompt you to agree to the appropriate developer licenses while importing. You will see 'VDD_WLS_labs_2012' (Powered Off)' when it is finished importing.

Step 5. Test your VM: Once the import has completed, double-click the VDD_WLS_labs_2012. Click OK to close the VirtualBox dialogs. When you get to the Linux 5 screen you can now login. The username and password is oracle/welcome1. Once you are finished working in the guest VM you can shut it down via Gnome's System > Shut Down; this will return the guest VM to the Powered Off state.

While in the shut shown state, review the default memory setting and optimize it for your machine. To do this, right-click your imported VBOX image and choose Settings > System as shown below. Then change the memory setting to be "in the green". This will obviously vary on your system, the Windows machine shown in the screen shot has 8GB RAM.

vbox1.png

Step 6. Test your VM: Once the import has completed, double-click the VM to begin. Lab documents are located in folders on the desktop.  

Once you are finished working in the guest VM you can shut it down via System > Shut Down; this will return the guest VM to the Powered Off state.

  • VBOX logon, Operating Sytem User: oracle  Password: welcome1
  • User Home Directory: /home/oracle
  • Root Logon:  User: root Password: welcome1
  • OS Environment settings: /home/oracle/.bashrc
  • Subversion URL: svn://localhost/otnvdd/obay/trunk
  • Subversion User: oracle/welcome1
  • NetBeans Keyring password: welcome1
  • Java Home: /labs/wls1211/jdk160_29
  • Coherence Home: /labs/wls2111/coherence_3.7
  • Lab-specific resources: /home/oracle/labs/
  • WebLogic Home: /labs/wls1211
  • WebLogic Administrator: weblogic/welcome1
  • WebLogic Console URL: http://localhost:7001/console
  • WebLogic Port: 7001
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 19, 2012

    i see the following error when i try to start the vm

    memory for crash kernel not within permissible range

    Warning calibrite_apic_clock the apic timer calibration may be wrong 

    1. Feb 02, 2012

      note this is a warning and should not impede your progress.   See below if you want to optimize for 64 bit, thanks to user 15194 for the comment.

      1. Jan 23, 2012

        here is the soultion . Check the 64 bit checkbox in setting page. I am running win 64 bit .

        1. Jan 24, 2012

          Where is the 64 bit checkbox ?

          I have tried the setting below and got same error. Have tried a mix of other settings...

    2. Jan 23, 2012

      This worked for me on AMD MotherBoard 32 bit Ubuntu 10.04 LTS

      After importing the VM, go to the Settings, System, Motherboard tab and set Enable I/O APIC and Hardware Clock in UTC Time

  2. Jan 21, 2012

    The javaee6_hol domain is missing the sample derby database referenced in jdbc/sample deployment. Therefore the JavaEE6SampleApp is failing with exceptions. Is there somewhere to get the db or generate the data?

    Otherwise, things are working well. Impressive self contained little image.

    1. Feb 04, 2012

      thanks!  the hope was to make something people could use as a dev sandbox, as virtualbox does a good job of bridging network from the host -- you can use it for development against back end systems on your network....

      This issue has been fixed in the vbox lab update on 2.3.2012.

  3. Jan 23, 2012

    I have successfully setup the Virtual Box and all the applications are up and running.

    I can't wait to join the seminar tomorrow.

    Regards,

    Nsi.

    1. Jan 23, 2012

      tip:  do the labs today -- watch more session content tomorrow!  Or, do it today and join the lab session mostly to use the time to ask questions.

      1. Jan 24, 2012

        Thanks for the important advice.

  4. Jan 24, 2012

    Hi Pieter.  I'm fairly new to the JAVAEE world and am trying to follow the

    TotalWeblogicServer lab.  Do you know if they will post sample solutions for Part I. Section 1.7 (Break Free! Explore on your own!).

    Thanks

    1. Feb 04, 2012

      Nope, those are ideas for how to wander on your own.  There's lots of other "I'm new to Java EE" resources out on the internet, of course.

  5. Jan 24, 2012

    Good morning,

    Will all of this be video recorded and available after the webinar?

    Regards,

    B~

    1. Jan 24, 2012

      yes the event is available in on-demand mode for some time.  Please refer to the page

      https://wikis.oracle.com/display/otnvddweblogicsuite/Post+Conference+Content+Access

      on the wiki for details.

  6. Jan 24, 2012

    I'm here:  https://oracle.6connex.com/portal/weblogicsuite/login/?langR=en_US&mcc=wiki

    All logged in and nothing is happening.

    What can I do?

    1. Jan 24, 2012

      watch the intro video, and head to the keynote area at 9:45... just like a real conference nothing happens until you are in the right place.

  7. Jan 24, 2012

    Good morning,

    When I go into VDD_WLS_labs_2012->System->Setting to check the memory, I see it is set to 1024MB of the 8192MB.  However, everything is grayed-out and I'm unable to alter the amount of base memory.  Am I missing an edit-mode toggle somewhere?

    Thanks,

    B~

    1. Jan 24, 2012

      the virtualbox has to be shut down to make adjustments.

  8. Jan 24, 2012

    What is the root password on the VM?

    1. Jan 24, 2012

      scroll up for the answer... oracle / welcome1

  9. Jan 24, 2012

    I keep trying to use the log in and nothing too.

    1. Jan 24, 2012

      watch the intro video, and head to the keynote area at 9:45... just like a real conference nothing happens until you are in the right place.

      1. Jan 24, 2012

        Where is this video? 

        I clicked the link and we get the connect6 screen but it is staying at 0%.

        1. Jan 24, 2012

          I can't find the video.  What page are you on?

  10. Jan 24, 2012

    I am getting to 6connex and it is staying at 0% is there a setting or something I should be doing to get this to connect?

  11. Jan 24, 2012

    no that sounds like an error, you're logging in at https://wikis.oracle.com/display/otnvddweblogicsuite/Home  ?

  12. Jan 24, 2012

    I tried installing the VirtualBox application on my Windows XP workstation.  I did a RunAs Administrator.  It looks like it gets to the end of the installation process, but never actually completes, and my workstation loses all network connectivity.  I've let it sit for 10 minutes.  I've tried logging out and back in to no avail.  Any suggestions?  I was able to get it installed at home on Windows Vista with no problems, but that doesn't help me here.

    1. Jan 24, 2012

      try downloading an slightly older version of the installer.

      1. Jan 24, 2012

        Thanks. 

        There is no link from the website that I could find, but some searching came up with http://download.virtualbox.org/virtualbox/4.1.6/ I won't risk trying it until after the presentations, though, because the latest version shuts down networking, not desirable when watching these videos!

        1. Jan 24, 2012

          https://www.virtualbox.org/wiki/Download_Old_Builds

          no worries.  you can post questions here and we'll respond even after the event.  For now, enjoy the sessions and do the labs at your leisure, we'll be here

  13. Jan 24, 2012

    I am currently downloading the labs but it will take me over 2 hours at this rate and by then, the event will be over. I know I should have downloaded them and tested the VM yesterday but what would you suggest I do at this point? What materials will be available after today and for how long?

    1. Jan 24, 2012

      no worries.  you can post questions here and we'll respond even after the event.  For now, enjoy the sessions and do the labs at your leisure, we'll be here.

      1. Jan 24, 2012

        Thank you, I appreciate that!

        1. Jan 24, 2012

          most welcome.

  14. Feb 02, 2012

    Hello! After installation VirtualBox and after assembling files - I got error on import step. Code is 0x80BB0004 VBOX_E_FILE_ERROR.What is the reason?

    Thanks in advance!

    1. Feb 02, 2012

      if I google this error code, the first link in the search results explains the issue.   You have a bad download on one of the file parts.  Check the MD5 sums to determine which file part was the culprit and re-download.

      Please read step 3 carefully and make sure you do what it suggests.

  15. Feb 02, 2012

    And one more thing - at what link I can get pdf labs to see through?

    1. Feb 02, 2012

      The navigation menu for the wiki is at the top of this very page.   There, is a link to the documents.

      https://wikis.oracle.com/display/otnvddweblogicsuite/Event+Hands+on+Lab+Documents

  16. Feb 03, 2012

    And can you explain, please, where I can find this MD5 sum to check?
    All for 700 MB, the last, 7th, is only 1.95. From here I download - https://wikis.oracle.com/display/otnvddweblogicsuite/Virtual+Box+Instructions
    Thanks

    1. Feb 03, 2012

      Step 2

  17. Feb 05, 2012

    I downloaded and redownloaded this files for quite a few times now but the MD5 sumcheck never matches the ones posted below the files. I downloaded it straight from the IE (and Chrome) and also tried with BitComet. Downloads without a problem, batch script also goes through without a problem, but when I import the VM image in VirtualBox an error occures:

    Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
    Component: Appliance
    Interface: IAppliance
    Unknown macro: {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}


    I'm running out of ideas. Did anything similar happen to anyone else and if it did what is the solution to this problem?

    Regards.

    1. Feb 06, 2012

      The original files posted were verified OK on Friday 2/3.  After testing again (2/6 9am Pacific Time USA), we've confirmed it works fine (MD5s match, virtualbox runs fine), so it must be a Akamai content replication issue on the download server. We've copied the same files to another directory in hopes of forcing Akamai edge caching to replicate for you.   Perhaps try these URLs after 8pm UK time.

      http://download.oracle.com/otn/other/virtualbox/VDD/assemble.sh
      http://download.oracle.com/otn/other/virtualbox/VDD/assemble.cmd

      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.1
      MD5 sum:  e975042002f8ab56ae95142fee55ef31
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.2
      MD5 sum:  5736f52d71b9aa76ad94dee36b3567ee
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.3
      MD5 sum:  0f9900fb1c0a00e2b7a880a0d17a277a
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.4
      MD5 sum:  007cfeb66e9ce78f7c8cb7a61ea5a33c
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.5
      MD5 sum:  b2180b488b55aafbb0178ed7e627648c
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.6
      MD5 sum:  e1198ddc91249fb8b73c81df8b09ee5c

  18. Feb 05, 2012

    I sent the following command,

    $ mvn install:install-file -Dfile=wls-maven-plugin-12.1.1.0.jar -DpomFile=pom.xml

    the build failed with the following

    [INFO] Skipping WebLogic Server Maven Plugin

    [INFO] This project has been banned from the build due to previous failures.

  19. Feb 06, 2012

    Hi all! Please, help to keep derby process. I deleted JEE6APProject folder - but it is not enough.

    Thanks, Ann

    1. Feb 06, 2012

      this has been fixed in the VirtualBox image posted on 2/3/2012. 

      If you don't want to re-download, you could kill the derby process.  Shut down all java processes, then at the terminal window, do an su command to become root.  Then get the PID of the derby process (ps -ef | grep java, then kill -9 the id of any remaining java process). and then start it from NetBeans in the services tab.

  20. Feb 06, 2012

    I tried this, and there is no such a problem at the other parts. Problem is only at the part 1 and 2.

    1. Feb 06, 2012

      When did you start the download of 1 and 2 ?

      1. Feb 06, 2012

        I've tried since  2/6/2012 8pm (GMT +2). 

        1. Feb 06, 2012

          The original files posted were verified OK on Friday 2/3.  After testing again (2/6 9am Pacific Time USA), we've confirmed it works fine (MD5s match, virtualbox runs fine), so it must be a Akamai content replication issue on the download server. We've copied the same files to another directory in hopes of forcing Akamai edge caching to replicate for you.   Perhaps try these URLs after 8pm UK time.
          http://download.oracle.com/otn/other/virtualbox/VDD/assemble.sh
          http://download.oracle.com/otn/other/virtualbox/VDD/assemble.cmd
          http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.1
          MD5 sum:  e975042002f8ab56ae95142fee55ef31
          http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.2
          MD5 sum:  5736f52d71b9aa76ad94dee36b3567ee
          http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.3
          MD5 sum:  0f9900fb1c0a00e2b7a880a0d17a277a
          http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.4
          MD5 sum:  007cfeb66e9ce78f7c8cb7a61ea5a33c
          http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.5
          MD5 sum:  b2180b488b55aafbb0178ed7e627648c
          http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.6
          MD5 sum:  e1198ddc91249fb8b73c81df8b09ee5c

  21. Feb 06, 2012

    Hello! can someone tell me how to commit changes to an XML data file?.

    I was working on the lab with WLS and Hudson last night, but could not commit the changes

    back to the file as required by the lab exercise.

    Thanks.

    1. Feb 07, 2012

      As per the lab document:

      $ svn commit -m "<commit message>"

      please copy and paste the error text so we may assist you.

  22. Feb 07, 2012

    Thanks for the reply. where do I pasted the command? on thesame terminal window or should

    I open a new Terminal Window?.

    I tried pasting the command at the beginning andat  the end of the "pom.xml file" of Terminal window

    where I made the changes, but it will not  check-in  the changes.

    I tried oppening another Terminal window still it did not work. How is it done?

    1. Feb 07, 2012

      You paste the command in the terminal window in the same folder where you checked out the project.

  23. Feb 08, 2012

    How long will the virtual box downloads and the keynote speech be available? I have some colleagues who would like to participate.

    1. Feb 08, 2012

      Virtual Image will available until at least until June1, 2012, upon which it's likely to be updated.

      Sessions, keynote, etc will be available until March 1, 2012 in the virtual conference environment.  After that we move it to an OTN page.

      Please refer to this page for the latest updates:

      https://wikis.oracle.com/display/otnvddweblogicsuite/Post+Conference+Content+Access

  24. Feb 08, 2012

    downloaded it twice and get the same error

    Win XP 64

    Failed to import appliance E:\VBOXVMS\VDD_WLS_labs_2012.ova.

    Could not create the clone medium 'E:\VBOXVMS\VDD_WLS_labs_2012\VDD_WLS_labs_2012-disk1.vmdk'.

    VMDK: Compressed image is corrupted 'E:\VBOXVMS\VDD_WLS_labs_2012-disk1.vmdk' (VERR_ZIP_CORRUPTED).

    Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
    Component: Appliance
    Interface: IAppliance
    Unknown macro: {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}

    1. Feb 08, 2012

      You have a corrupt file part.  Akamkai edge caching servers are not replicating the updates we made on 2/3 correctly. We've copied the same files to another directory in hopes of forcing Akamai edge caching to replicate for your edge server.   Perhaps try these URLs...  (same MD5s)
      http://download.oracle.com/otn/other/virtualbox/VDD/assemble.sh
      http://download.oracle.com/otn/other/virtualbox/VDD/assemble.cmd
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.1
      MD5 sum:  e975042002f8ab56ae95142fee55ef31
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.2
      MD5 sum:  5736f52d71b9aa76ad94dee36b3567ee
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.3
      MD5 sum:  0f9900fb1c0a00e2b7a880a0d17a277a
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.4
      MD5 sum:  007cfeb66e9ce78f7c8cb7a61ea5a33c
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.5
      MD5 sum:  b2180b488b55aafbb0178ed7e627648c
      http://download.oracle.com/otn/other/virtualbox/VDD/VDD_WLS_labs_2012.ova.6
      MD5 sum:  e1198ddc91249fb8b73c81df8b09ee5c

  25. Mar 10, 2012

    Are the files still available ? The downloads stopped mid-way and cant download anymore ..

    thanks

  26. Apr 24, 2012

    Hi, i just donwloaded the VM, but i can't see NetBeans and the lab tutorials...Can anyone help? Regards.

    1. Apr 25, 2012

      should be right on the desktop.  send mail to pieter dot humphrey at oracle dot com and we'll work it out.

      1. Sep 30, 2012

        Is there a chance I could add some information to this page?

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Oracle community and they might not be employed or in any way formally affiliated with Oracle. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Oracle nor any other party necessarily agrees with them.