Installing, Configuring, and Testing WebLogic Server 12c Developer Zip Distribution in NetBeans
Overview
- Download WebLogic Server (WLS) 12c developer zip file and
extract the contents
- Set up environment variables as required
- Run the installation configuration script
- Set up WLS environment
- Create a new WLS domain
- Register the Oracle WebLogic Server with the NetBeans IDE
- Open the Admin Console
- Start Java DB
- Use the sample database and generate the JPA entities from the database
- Generate JSF pages from the Entities
- Deploy the application to WebLogic Server
- Download and install Java JDK 7 from this link.
- Download and install NetBeans IDE 7.2 from this link.
Purpose
This tutorial covers how to install Oracle WebLogic Server 12c (12.1.1) developer zip file distribution on Windows and configure it as a Java EE Application Server in NetBeans.
Also covers how to test the WebLogic Server installation by
deploying a Web application based on JSF and JPA entities.
Time to Complete
Approximately 45 minutes
Introduction
Oracle WebLogic Server 12c is an application server for
building and deploying enterprise Java EE applications and it is
now available for download. The zip distribution for development
offers Java EE 6 Full Profile development; it includes WebLogic
Server only.
With NetBeans IDE you can create web applications and deploy
them to the Oracle WebLogic Server.
Scenario
In this tutorial, you perform the following:
Prerequisites
Downloading WebLogic Zip File and Extracting the Contents
In this section you will download the development zip file and unzip the contents in a directory.
Setting Up the Environment
In this section, you will set up the three environment variables needed: JAVA_HOME, MW_HOME and JAVA_VENDOR. Also, you will run the installation script and create the WebLogic Server domain.
Setting Up the Three Environment
Variables
Running the Installation
Configuration Script
Creating the Domain
Before you can develop and run WebLogic, you must first create a WebLogic Server domain, which is the basic administration unit:
Configuring WebLogic Server in NetBeans
This section will show you how to register the WebLogic Server with the NetBeans IDE.
Testing your WebLogic Server Installation
In this section, you will test your WebLogic Server installation by deploying a Web application using JSF and JPA entities from the sample database.
Opening Sample Database
Creating a Java EE Web Application Project
Adding Entities Generated from the
Sample Database to the Project
The sample database is provided with every NetBeans installation. It contains a number of tables populated with data.
Reviewing the Entity Classes Created
Adding JSF View Pages and
Supporting Classes to the Project
Running the Project and Testing
the Code
Additional Information on Creating Domains
Summary
- Run the WebLogic Server 12c installation configuration script
- Set up WebLogic Server environment
- Create a new WebLogic Server domain
- Register the Oracle WebLogic Server with the NetBeans IDE
- Test your WebLogic Server installation by deploying a Web
application that uses JSF and JPA entities.
- Oracle Fusion Middleware Documentation Library.
- Oracle WebLogic Server Documentation.
- WebLogic Server 12c - 5 Mins with the Zip File Distribution video.
- JavaServer Faces Technology.
- Java
Persistence API.
- Curriculum Developer: Edgar Martinez
- Other Contributors: Tom Mcginn
In this tutorial, you have learned how to:
Resources
Credits
To help navigate this Oracle by Example, note the following:
- Hiding Header Buttons:
- Click the Title to hide the buttons in the header. To show the buttons again, simply click the Title again.
- Topic List Button:
- A list of all the topics. Click one of the topics to navigate to that section.
- Expand/Collapse All Topics:
- To show/hide all the detail for all the sections. By default, all topics are collapsed
- Show/Hide All Images:
- To show/hide all the screenshots. By default, all images are displayed.
- Print:
- To print the content. The content currently displayed or hidden will be printed.
To navigate to a particular section in this tutorial, select the topic from the list.