By pieter.humphrey on Jan 19, 2012
This blog describes how to install a virtual guest appliance that provides pre-configured Oracle software for our Cloud Application Foundation and more. You can use it as a development sandbox, or as a educational tool -- it contains several hands on lab excercises from the OTN Virtual Developer Day - WebLogic 12c.
- 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
Oracle VM VirtualBox images will be based on Oracle Linux – and this image requires 13GB of disk, (17GB if you keep the source appliance). The one, downloadable appliance, about 4.3 GB, contains all the software you need for the following labs:
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.
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.
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.
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.
Please note that this appliance is for testing purposes only, as such it is unsupported and should not to be used in production environment.
- 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)
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):
URLs and MD5s for file parts - split into ~700MB chunks for your download convenience:
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 all parts, and on the assembled files before attempting an import.
* 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 OTN Developer Days VM. 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. Allow the import process to complete; it is ready when you see a terminal window, which you can close. 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.
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.
Step 5. Test your VM: Once the import has completed, double-click the VM to begin. Lab documents and resources 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 System User: oracle/welcome1
- User Home Directory: /home/oracle
- Root: root/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