Home / Articles / Middleware / weblogic / 12.2.1.4 / managed-server-setup

WebLogic Managed Server Setup

Admin Server : Pre-Work

  • Open a SSH terminal to Admin server and login as weblogic user.
  • Export Domain configuration in a jar file.
  • This jar file can be used by managed nodes to join the Domain we have created.

    # $MW_HOME/oracle_common/common/bin/pack.sh -domain=/opt/weblogic/12.2.1.4.0/user_projects/domains/ltsDOMAIN -template=$MW_HOME/oracle_common/common/templates/wls/wls_ltsDOMAIN.jar -template_name=ltsDOMAIN -managed=true << read domain from "/opt/weblogic/12.2.1.4.0/user_projects/domains/ltsDOMAIN" >> succeed: read domain from "/opt/weblogic/12.2.1.4.0/user_projects/domains/ltsDOMAIN" << set config option Managed to "true" >> succeed: set config option Managed to "true" << write template to "/opt/weblogic/12.2.1.4.0/oracle_common/common/templates/wls/wls_ltsDOMAIN.jar" .............................. >> succeed: write template to "/opt/weblogic/12.2.1.4.0/oracle_common/common/templates/wls/wls_ltsDOMAIN.jar" << close template >> succeed: close template
  • Check that domain export jar file is created.
  • # ls -l $MW_HOME/oracle_common/common/templates/wls/wls_ltsDOMAIN.jar -rw-r----- 1 weblogic weblogic 68425 Aug 29 19:20 /opt/weblogic/12.2.1.4.0/wlserver/../oracle_common/common/templates/wls/wls_ltsDOMAIN.jar
  • Copy this tar file to all the Managed Servers. This will be used to configure ltsDOMAIN to the Managed servers.

Managed Servers : Install WebLogic Server

  • Install WebLogic Server software on all Managed Servers.
  • Follow the following document to install WebLogic Server software on all Managed Servers.


    DSE Setup Cluster

Managed Servers : Setup Domain

  • Open a new SSH terminal and login as weblogic server.
  • Activate weblogic user environment
  • # . $WLS_HOME/server/bin/setWLSEnv.sh CLASSPATH=/opt/jdk1.8.0_241/lib/tools.jar:/opt/weblogic/12.2.1.4.0/wlserver/modules/features/wlst.wls.classpath.jar: PATH=/opt/weblogic/12.2.1.4.0/wlserver/server/bin:/opt/weblogic/12.2.1.4.0/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin:/opt/jdk1.8.0_241/jre/bin:/opt/jdk1.8.0_241/bin:/opt/jdk1.8.0_241/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/weblogic/.local/bin:/opt/weblogic/bin:/opt/weblogic/12.2.1.4.0/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin Your environment has been set.
  • Unpack and configure the Domain using the pack JAR file created on Admin server
  • # $MW_HOME/oracle_common/common/bin/unpack.sh -template=/tmp/wls_ltsDOMAIN.jar -domain=$DOMAIN_HOME << read template from "/tmp/wls_ltsDOMAIN.jar" >> succeed: read template from "/tmp/wls_ltsDOMAIN.jar" << set config option DomainName to "ltsDOMAIN" >> succeed: set config option DomainName to "ltsDOMAIN" >> validateConfig "KeyStorePasswords" >> succeed: validateConfig "KeyStorePasswords" << write Domain to "/opt/weblogic/12.2.1.4.0/user_projects/domains/ltsDOMAIN" .................................................. >> succeed: write Domain to "/opt/weblogic/12.2.1.4.0/user_projects/domains/ltsDOMAIN" << close template >> succeed: close template
  • Check the contents of domain directory
  • # ls -l $DOMAIN_HOME drwxr-x--- 6 weblogic weblogic 4096 Aug 29 21:13 bin drwxr-x--- 9 weblogic weblogic 145 Aug 29 21:13 config -rw-r----- 1 weblogic weblogic 327 Aug 29 19:20 fileRealm.properties drwxr-x--- 2 weblogic weblogic 301 Aug 29 21:13 init-info drwxr-x--- 2 weblogic weblogic 24 Aug 29 21:13 lib drwxr-x--- 2 weblogic weblogic 63 Aug 29 21:13 nodemanager drwxr-x--- 2 weblogic weblogic 167 Aug 29 21:13 security drwxr-x--- 3 weblogic weblogic 25 Aug 29 21:13 servers -rwxr-x--- 1 weblogic weblogic 272 Aug 29 21:13 startWebLogic.sh
  • Managed server setup is complete.