Middleware

Oracle WebLogic 14c on Windows User Guide

| Product: Oracle WebLogic 14c on Windows

Overview

This guide covers the deployment and configuration of Oracle WebLogic Server 14c (14.1.2.0.0) on Windows Server using cloudimg AMIs from the AWS Marketplace.

What's included in this AMI:

  • Oracle WebLogic Server 14c (14.1.2.0.0) with Java EE 8 support
  • Oracle JDK 11 LTS
  • Pre-configured WebLogic domain with Admin Server on port 7001
  • Web-based Administration Console at /console
  • Scheduled Task for automatic startup at boot
  • Oracle software installed on separate D: drive (20GB EBS volume)
  • AWS CLI, Systems Manager Agent, and CloudWatch Agent

Supported Operating Systems: Windows Server 2022, Windows Server 2019

Prerequisites

Before launching this AMI, ensure you have:

  1. An active AWS account
  2. An active subscription to the Oracle WebLogic 14c on Windows listing on AWS Marketplace
  3. An RDP client (Remote Desktop Connection) on your local machine
  4. Familiarity with EC2 instance management

Recommended Instance Type: m5.large (2 vCPU, 8 GB RAM) or larger for production workloads.

Step 1: Launch the AMI

  1. Navigate to the AWS Marketplace and search for "Oracle WebLogic 14c Windows cloudimg"
  2. Click Continue to Subscribe, accept the terms, then Continue to Configuration
  3. Select your preferred Region and Software Version (Windows Server 2022 or 2019)
  4. Click Continue to Launch
  5. Choose Launch through EC2 for full control over instance configuration
  6. Select your instance type (m5.large recommended)
  7. Configure your Security Group with the following inbound rules:
Port Protocol Source Purpose
3389 TCP Your IP RDP access
7001 TCP Your IP WebLogic Admin Console / REST API
7002 TCP Your IP WebLogic Server (SSL)

Important: Restrict all ports to your IP address only. Do not open these to 0.0.0.0/0.

Step 2: Connect via RDP

  1. In the EC2 console, select your instance and click Connect
  2. Choose the RDP client tab
  3. Click Get password and upload your key pair (.pem file) to decrypt the Administrator password
  4. Download the Remote Desktop file or note the Public DNS
  5. Open your RDP client and connect using:
  6. Computer: Your instance's Public IP or DNS
  7. Username: Administrator
  8. Password: The decrypted password from the EC2 console

Alternatively, use SSM Session Manager for console access without opening port 3389:

https://us-east-1.console.aws.amazon.com/systems-manager/session-manager/<instance-id>?region=us-east-1

Step 3: Retrieve WebLogic Credentials

The WebLogic admin password is unique to each AMI instance. To retrieve it, open a Command Prompt or PowerShell window and run:

type C:\CREDENTIALS.txt
  • Username: weblogic
  • Password: (unique per instance, see C:\CREDENTIALS.txt)

Important: Change the password after first use. See the Security Hardening section below.

Step 4: Verify the Installation

Open PowerShell and verify the WebLogic installation:

# Check JDK version
& "$env:JAVA_HOME\bin\java.exe" -version

# Check WebLogic home exists
Test-Path D:\Oracle\Middleware\wlserver\server\bin\setWLSEnv.cmd

# Check domain exists
Test-Path D:\Oracle\Middleware\user_projects\domains\base_domain\config\config.xml

# Check scheduled task
Get-ScheduledTask -TaskName OracleWebLogicServer | Select TaskName, State

# Check D: drive
Get-Volume -DriveLetter D

Step 5: Start WebLogic Server

WebLogic is configured to start automatically at boot via a Scheduled Task. To start it manually:

Start-ScheduledTask -TaskName OracleWebLogicServer

Wait approximately 60 to 90 seconds for the server to start. You can verify it's running:

# Check the scheduled task state
Get-ScheduledTask -TaskName OracleWebLogicServer | Select State

# Test the REST API
$cred = Get-Content C:\CREDENTIALS.txt | Select-String "Password" | ForEach-Object { ($_ -split ": ")[1] }
curl.exe -u "weblogic:$cred" http://localhost:7001/management/weblogic/latest/serverRuntime?fields=name,state

Step 6: Access the Admin Console

Navigate to the WebLogic Administration Console in your browser:

http://<public-ip>:7001/console

You will see the Admin Console login page:

WebLogic 14c Admin Console Login

Enter your username (weblogic) and password from C:\CREDENTIALS.txt, then click Login. After authentication you will see the Admin Console home page:

WebLogic 14c Admin Console Dashboard

The Admin Console provides full graphical management of your WebLogic domain including deployments, server configuration, monitoring, and security settings.

You can also verify credentials via the REST API from PowerShell:

curl.exe -u "weblogic:<your-password>" http://localhost:7001/management/weblogic/latest/serverRuntime?fields=name,state

Directory Structure

Path Description
D:\Oracle\Java\jdk-11.x.x\ Oracle JDK 11 LTS (JAVA_HOME)
D:\Oracle\Middleware\ Middleware Home (MW_HOME / ORACLE_HOME)
D:\Oracle\Middleware\wlserver\ WebLogic Server Home (WL_HOME)
D:\Oracle\Middleware\user_projects\domains\base_domain\ Default Domain (DOMAIN_HOME)
D:\Oracle\oraInventory\ Oracle Inventory
C:\CREDENTIALS.txt Admin credentials file

Environment variables are set system-wide:

JAVA_HOME = D:\Oracle\Java\jdk-11.x.x
MW_HOME = D:\Oracle\Middleware
WL_HOME = D:\Oracle\Middleware\wlserver
DOMAIN_HOME = D:\Oracle\Middleware\user_projects\domains\base_domain

Administration

Option 1: Web-based Admin Console (Recommended)

The WebLogic 14c Admin Console provides a full graphical interface for managing your domain:

  1. Navigate to http://<public-ip>:7001/console
  2. Login with your WebLogic credentials
  3. From the console you can:
  4. Deploy and manage applications
  5. Configure servers, clusters, and data sources
  6. Monitor server health and performance
  7. Manage security realms and users
  8. View server logs and diagnostics

Option 2: REST Management API

# Get server runtime status
curl.exe -u "weblogic:<your-password>" http://localhost:7001/management/weblogic/latest/serverRuntime?fields=name,state

# Get domain configuration
curl.exe -u "weblogic:<your-password>" http://localhost:7001/management/weblogic/latest/domainConfig

Option 3: WLST Command Line

# Launch WLST
& "D:\Oracle\Middleware\wlserver\common\bin\wlst.cmd"

# In WLST shell:
connect('weblogic', '<your-password>', 't3://localhost:7001')
serverRuntime()
print('Server State: ' + cmo.getState())

Managing WebLogic Server

Using Scheduled Task

# Start WebLogic
Start-ScheduledTask -TaskName OracleWebLogicServer

# Stop WebLogic (graceful)
Stop-ScheduledTask -TaskName OracleWebLogicServer

# Check status
Get-ScheduledTask -TaskName OracleWebLogicServer | Select TaskName, State

Using Domain Scripts Directly

# Start
& "D:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd"

# Stop
& "D:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopWebLogic.cmd"

Security Hardening

Change the Default Admin Password

Use the Admin Console to change the password:

  1. Navigate to http://<public-ip>:7001/console
  2. Go to Security Realms > myrealm > Users and Groups
  3. Click weblogic > Passwords tab
  4. Enter and confirm your new password, then click Save

Alternatively, use WLST:

& "D:\Oracle\Middleware\wlserver\common\bin\wlst.cmd"

# In WLST:
connect('weblogic', '<your-password>', 't3://localhost:7001')
cd('/SecurityConfiguration/base_domain/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator')
cd('Users/weblogic')
cmo.setPassword('YourNewSecurePassword')
disconnect()
exit()

After changing the password, update boot.properties:

Set-Content -Path "D:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\security\boot.properties" -Value "username=weblogic`npassword=YourNewSecurePassword"

Delete the credentials file:

Remove-Item C:\CREDENTIALS.txt

Restrict Network Access

Ensure your Security Group only allows access from trusted IP addresses:

  • Port 3389 (RDP): Your IP only
  • Port 7001/7002 (WebLogic Server): Your IP or VPN CIDR only

Troubleshooting

WebLogic Server fails to start

Check the server log:

Get-Content "D:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log" -Tail 50

Common causes: - Insufficient memory: Use an instance type with at least 4 GB RAM - Port conflict: Ensure port 7001 is not in use - Scheduled Task not running: Get-ScheduledTask -TaskName OracleWebLogicServer

Cannot access Admin Console

  1. Verify WebLogic is running: check the REST API or scheduled task state
  2. Ensure Security Group allows port 7001 from your IP
  3. Try accessing via http://localhost:7001/console from an RDP session
  4. Check server logs for startup errors

Cannot connect via RDP

  1. Verify the instance is running in the EC2 console
  2. Check Security Group allows port 3389 from your IP
  3. Verify you have the correct Administrator password (decrypt via EC2 console)
  4. Use SSM Session Manager as an alternative

REST API returns 401

Verify you're using the correct password from C:\CREDENTIALS.txt, not a default password.

Oracle WebLogic 14c Key Features

  • Java EE 8 Platform: Full Java Enterprise Edition 8 compliance
  • JDK 11 LTS: Long term support Java runtime
  • Web-based Administration Console: Full graphical management interface at /console
  • Dynamic Clustering: Elastic server instances for horizontal scaling
  • Zero Downtime Patching: Apply patches without service interruption
  • RESTful Management API: Programmatic server administration

Support

cloudimg provides 24/7/365 support for all AWS Marketplace products.