DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • Step By Step Guide To Using Mule ESB
  • Five Java Developer Must-Haves for Ultra-Fast Startup Solutions
  • A Maven Story
  • How To Build a Google Photos Clone - Part 1

Trending

  • Navigating Double and Triple Extortion Tactics
  • After 9 Years, Microsoft Fulfills This Windows Feature Request
  • Comparing Managed Postgres Options on The Azure Marketplace
  • Mastering Deployment Strategies: Navigating the Path to Seamless Software Releases
  1. DZone
  2. Coding
  3. Java
  4. Introduction to the WebLogic Server 12c on OSX

Introduction to the WebLogic Server 12c on OSX

Learn more about how to install WebLogic 12g locally on your system.

By 
Robin Huiser user avatar
Robin Huiser
DZone Core CORE ·
May. 29, 19 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
13.0K Views

Join the DZone community and get the full member experience.

Join For Free

In order to assess the work considering automation of configuration and deployment for one of our back-end applications, I needed to install WebLogic 12g locally. So, I decided to share this with the rest of the community. Hope you enjoy this quick demonstration.

Prerequisites

  • Download and unzip the Quick Installer for Mac OSX, Windows, and Linux from the Oracle Website. 
  • Assure you have installed the Oracle JDK 1.8

Installation

In this article, I will install the server under ~/Opt/Oracle/WebLogic/Middleware; make sure the root directory structure exists before moving to the following step.

# Which JREs have been installed?
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (2):
    1.8.0_192, x86_64:  "Amazon Corretto 8" /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home
    1.8.0_181, x86_64:  "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

# Set Java home to Java SE 8...
$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_181`

# Set WebLogic home
$ export MW_HOME=~/Opt/Oracle/WebLogic/Middleware


Next, kick off the installation itself:

# Kick-off the installation
$ (cd $MW_HOME && java -jar /path/to/fmw_12.2.1.3.0_wls_quick.jar)

Launcher log file is /private/var/folders/w_/dymv42kx2gq3xh9s6wdf4k6w0000gn/T/OraInstall2019-05-17_04-24-14PM/launcher2019-05-17_04-24-14PM.log.
Extracting the installer . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2662.4 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 157713 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed
Checking temp space: must be greater than 300 MB.   Actual 157713 MB    Passed
Preparing to launch the Oracle Universal Installer from /private/var/folders/w_/dymv42kx2gq3xh9s6wdf4k6w0000gn/T/OraInstall2019-05-17_04-24-14PM
Log: /private/var/folders/w_/dymv42kx2gq3xh9s6wdf4k6w0000gn/T/OraInstall2019-05-17_04-24-14PM/install2019-05-17_04-24-14PM.log

*****************************************************


Distribution Name : Oracle Fusion Middleware 12c WebLogic and Coherence Developer
Distribution Version : 12.2.1.3.0

Oracle Inventory : /Users/robin/oraInventory

Oracle Home : /Users/robin/Opt/Oracle/WebLogic/Middleware/wls12213
Java Home : /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

Note: Oracle Home not supplied (defaulted to <present working dir>/wls12213)

*****************************************************

Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
Skipping Software Updates
Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 12c WebLogic and Coherence Developer 12.2.1.3.0 completed successfully.
Logs successfully copied to /Users/robin/Opt/wls12213/cfgtoollogs/oui.


Configuration

Some minor configuration requires to be done after installation.

# Set memory of admin server
export USER_MEM_ARGS="-Xmx1024m -XX:MaxPermSize=256m"

# Read the Weblogic server path settings
$ . $MW_HOME/wls12213/wlserver/server/bin/setWLSenv.sh


Startup Admin Server

Start WebLogic Server for the first time and create a domain.

# Create domain dir
$ cd $MW_HOME/../
$ mkdir domain

# Inside the domain dir start the Admin server
$ cd domain
$ java -Xmx1024m -XX:MaxPermSize=256m weblogic.Server


WebLogic will notice this is the first time it has been started and will ask you if you want to create a domain. Answer ‘y’ to this question, and then provide a username and password when requested.

Would you like the server to create a default configuration and boot? (y/n): y
Enter username to boot WebLogic server: admin
Enter password to boot WebLogic server: P@ssw0rd
For confirmation, please re-enter password required to boot WebLogic server: P@ssw0rd


WebLogic Server will start up. When it is up, you will see a message indicating that the server was started in RUNNING mode. Once you see this, you can shut it down (type Ctrl-C).

You can now use the startup scripts in your newly created domain. When you want to start WebLogic Server, enter the following commands (you might want to create a script to do this):

export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_181`
export MW_HOME=~/Opt/Oracle/WebLogic/Middleware
export USER_MEM_ARGS="-Xmx1024m -XX:MaxPermSize=256m"
. $MW_HOME/wls12213/wlserver/server/bin/setWLSenv.sh
$MW_HOME/../domain/startWebLogic.sh


Console

You can now log on to the WebLogic Server console at http://localhost:7001/console.

Console (video game CLI) application Java Development Kit Installer (macOS) Java (programming language) Linux (operating system) Directory Download Command (computing)

Opinions expressed by DZone contributors are their own.

Related

  • Step By Step Guide To Using Mule ESB
  • Five Java Developer Must-Haves for Ultra-Fast Startup Solutions
  • A Maven Story
  • How To Build a Google Photos Clone - Part 1

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!