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
Refcards
Trend Reports

Events

View Events Video Library

Related

  • How To Use the Node Docker Official Image
  • Java Module Benefits With Example
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers
  • Hardware-Accelerated OpenGL Rendering in a Linux Container

Trending

  • Jeffrey Microscope for Generating Flame Graphs in Java
  • Multithreading in Modern Java: Advanced Benefits and Best Practices
  • Why Developers Must Be Part of the Customer Validation Process
  • Anti-Patterns of Microservices Architecture From Real Production Experience

Deploying Applications or Libraries to WebLogic Server Using Command Line

By 
Zemian Deng user avatar
Zemian Deng
·
Sep. 03, 14 · Interview
Likes (0)
Comment
Save
Tweet
Share
12.0K Views

Join the DZone community and get the full member experience.

Join For Free

Here is how you can automate deployment for WebLogic server using the command line.

First source the env settings from the server:

$ source $ML_HOME/server/bin/setWLSEnv.sh

Deploy Library:

$ java weblogic.Deployer -nostage -deploy -library \
-adminurl localhost:7001 \
-username weblogic -password my_secret \
-targets myserver \
my_shared_lib.war 

Deploy Application:

$ java weblogic.Deployer -nostage -deploy \
-adminurl localhost:7001 \
-username weblogic -password my_secret \
-targets myserver \
-name myapp.war myapp.war


For development, you likely want to use the "-nostage" meaning to deploy the app or library directly from the file system. This means any changes to that file location and a reload from WLS will take effect immediately. 

For undeploy the command line options are same for library or app but with matching name.

$ java weblogic.Deployer -undeploy \
-adminurl localhost:7001 \
-username weblogic -password my_secret \
-targets myserver \
-name myapp_or_lib.war
Library application Command (computing)

Published at DZone with permission of Zemian Deng. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How To Use the Node Docker Official Image
  • Java Module Benefits With Example
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers
  • Hardware-Accelerated OpenGL Rendering in a Linux Container

Partner Resources

×

Comments

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

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

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 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook