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
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
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

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Weblogic 11g Installation on Mac OS: Issues and Fixes
  • Step By Step Guide To Using Mule ESB
  • Best Practices In Appium
  • How To Build a Google Photos Clone - Part 1

Trending

  • Breaking Free From the Cloud With Kamal: Just Enough Orchestration for Your Apps
  • Five Tools for Data Scientists to 10X their Productivity
  • Build a Digital Collectibles Portal Using Flow and Cadence (Part 1)
  • Selecting the Right Automated Tests
  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.

Robin Huiser user avatar by
Robin Huiser
CORE ·
May. 29, 19 · Tutorial
Like (2)
Save
Tweet
Share
11.84K 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

  • Weblogic 11g Installation on Mac OS: Issues and Fixes
  • Step By Step Guide To Using Mule ESB
  • Best Practices In Appium
  • How To Build a Google Photos Clone - Part 1

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • 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: