Instalação WebLogic 12.1.3.0 Update 2

Para instalar um WebLogic Server para testes e desenvolvimento, siga os passos abaixo.

Baixe o arquivo zip em http://www.oracle.com/technetwork/middleware/fusion-middleware/downloads/index.html

WL01

Depois, descompacte e aponte a variável $JAVA_HOME para a JDK 1.8 instalada em seu ambiente, e a variável $MW_HOM para o diretório criado pela descompactação do WebLogic.

[ricardo@Melquior Linux]$ ls -lh wls1213_dev*
-rw-rw-r--. 1 ricardo ricardo 238M Jun  2 12:13 wls1213_dev_supplemental_update2.zip
-rw-rw-r--. 1 ricardo ricardo 237M Jun  2 12:24 wls1213_dev_supplemental.zip
-rw-rw-r--. 1 ricardo ricardo 190M Jun  2 08:58 wls1213_dev_update2.zip
-rw-rw-r--. 1 ricardo ricardo 190M Jun  2 09:00 wls1213_dev.zip
[ricardo@Melquior Linux]$ unzip -q wls1213_dev_update2.zip
[ricardo@Melquior Linux]$ cd wls12130/
[ricardo@Melquior wls12130]$ ls -lh
total 88K
drwxr-xr-x. 5 ricardo ricardo 4,0K Abr 20 23:44 coherence
drwxr-xr-x. 3 ricardo ricardo 4,0K Abr 20 23:31 common
-rw-r--r--. 1 ricardo ricardo 5,6K Abr 20 23:46 configure.cmd
-rwxr-x---. 1 ricardo ricardo 6,5K Abr 20 23:46 configure.sh
-rw-r--r--. 1 ricardo ricardo 3,7K Abr 20 23:46 configure.xml
-rw-r--r--. 1 ricardo ricardo  171 Abr 20 23:46 domain-registry.xml
drwxr-xr-x. 2 ricardo ricardo 4,0K Abr 20 23:46 inventory
drwxr-xr-x. 8 ricardo ricardo 4,0K Abr 20 23:56 oracle_common
-rw-r--r--. 1 ricardo ricardo  119 Abr 20 23:43 oraInst.loc
-rw-r--r--. 1 ricardo ricardo 4,9K Abr 20 23:46 osarch.xml
drwxr-xr-x. 2 ricardo ricardo 4,0K Abr 20 23:44 oui
-rw-r--r--. 1 ricardo ricardo  12K Abr 20 23:46 README.txt
-rw-r--r--. 1 ricardo ricardo  13K Abr 20 23:46 README_WIN.txt
drwxr-xr-x. 9 ricardo ricardo 4,0K Abr 20 23:46 wlserver
[ricardo@Melquior wls12130]$ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64
[ricardo@Melquior wls12130]$ export MW_HOME=/home/ricardo/Downloads/Linux/wls12130

Agora execute os scripts de configuração.

[ricardo@Melquior wls12130]$ . ./configure.sh -silent
[ricardo@Melquior wls12130]$ . $MW_HOME/wlserver/server/bin/setWLSEnv.sh
CLASSPATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/lib/tools.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/lib/weblogic_sp.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/lib/weblogic.jar:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/lib/tools.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/lib/weblogic_sp.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/lib/weblogic.jar:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:

PATH=/home/ricardo/Downloads/Linux/wls12130/wlserver/server/bin:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/org.apache.ant_1.9.2/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/jre/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/bin:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/bin:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/org.apache.ant_1.9.2/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/jre/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/bin:/home/ricardo/oracle/base/product/12.1.0.2/db_1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ricardo/bin:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/org.apache.maven_3.0.5/bin:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/org.apache.maven_3.0.5/bin

Your environment has been set.
[ricardo@Melquior wls12130]$

Agora deve ser criado um diretório para um domínio, e logo em seguida já se inicia o WebLogic. Veja que é solicitado um usuário e senha que iniciará o WebLogic Server.

[ricardo@Melquior wls12130]$ mkdir /home/ricardo/wldomain01
[ricardo@Melquior wls12130]$ cd /home/ricardo/wldomain01
[ricardo@Melquior wldomain01]$ $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=256m weblogic.Server
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
02/06/2015 13h14min42s BRT Info Security BEA-090905 Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.
02/06/2015 13h14min42s BRT Info Security BEA-090906 Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.
02/06/2015 13h14min43s BRT Info WebLogicServer BEA-000377 Starting WebLogic Server with OpenJDK 64-Bit Server VM Version 25.45-b02 from Oracle Corporation.

/home/ricardo/wldomain01/config not found

No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): y
02/06/2015 13h14min54s BRT Info Management BEA-140013 /home/ricardo/wldomain01/config not found
02/06/2015 13h14min54s BRT Info Security BEA-090065 Getting boot identity from user.
Enter username to boot WebLogic server:ricardo
Enter password to boot WebLogic server:
For confirmation, please re-enter password required to boot WebLogic server:
02/06/2015 13h15min02s BRT Info Management BEA-141254 Generating new domain directory in /home/ricardo/wldomain01.
02/06/2015 13h15min29s BRT Info Management BEA-141255 Domain generation completed in 26.487 milliseconds.
02/06/2015 13h15min29s BRT Info Management BEA-141107 Version: WebLogic Server 12.1.3.0.0  Mon Apr 20 22:20:15 PDT 2015 1673346
02/06/2015 13h15min30s BRT Notice WebLogicServer BEA-000365 Server state changed to STARTING.
02/06/2015 13h15min30s BRT Info WorkManager BEA-002900 Initializing self-tuning thread pool.
02/06/2015 13h15min30s BRT Info WorkManager BEA-002942 CMM memory level becomes 0. Setting standby thread pool size to 256.
02/06/2015 13h15min30s BRT Notice Log Management BEA-170019 The server log file /home/ricardo/wldomain01/servers/myserver/logs/myserver.log is opened. All server side log events will be written to this file.
02/06/2015 13h15min33s BRT Notice Security BEA-090082 Security initializing using security realm myrealm.
02/06/2015 13h15min38s BRT Notice WebLogicServer BEA-000365 Server state changed to STANDBY.
02/06/2015 13h15min38s BRT Notice WebLogicServer BEA-000365 Server state changed to STARTING.
jun 02, 2015 1:15:38 PM weblogic.wsee.WseeCoreMessages logWseeServiceStarting
INFORMAÇÕES: O Serviço Wsee está sendo iniciado
02/06/2015 13h15min38s BRT Notice Log Management BEA-170027 The server has successfully established a connection with the Domain level Diagnostic Service.
02/06/2015 13h15min39s BRT Notice WebLogicServer BEA-000365 Server state changed to ADMIN.
02/06/2015 13h15min39s BRT Notice WebLogicServer BEA-000365 Server state changed to RESUMING.
02/06/2015 13h15min39s BRT Notice Server BEA-002613 Channel "Default" is now listening on 192.168.0.6:7001 for protocols iiop, t3, ldap, snmp, http.
02/06/2015 13h15min39s BRT Notice Server BEA-002613 Channel "Default[1]" is now listening on fe80:0:0:0:e206:e6ff:fede:ea8a:7001 for protocols iiop, t3, ldap, snmp, http.
02/06/2015 13h15min39s BRT Notice Server BEA-002613 Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.
02/06/2015 13h15min39s BRT Notice Server BEA-002613 Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.
02/06/2015 13h15min39s BRT Notice WebLogicServer BEA-000331 Started the WebLogic Server Administration Server "myserver" for domain "mydomain" running in development mode.
02/06/2015 13h15min39s BRT Warning Server BEA-002611 The hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1.
02/06/2015 13h15min39s BRT Notice WebLogicServer BEA-000360 The server started in RUNNING mode.
02/06/2015 13h15min39s BRT Notice WebLogicServer BEA-000365 Server state changed to RUNNING.

Agora o Weblogic já está no ar. Eu baixei também o pacote suplementar, que entre outras coisas contém exemplos de desenvolvimento, que são instalados com os passos abaixo.

[ricardo@Melquior Linux]$ unzip -q wls1213_dev_supplemental_update2.zip
[ricardo@Melquior Linux]$ cd /home/ricardo/Downloads/Linux/wls12130/wlserver/common/templates/
[ricardo@Melquior wls]$ unpack200 medrec.jar.pack medrec.jar
[ricardo@Melquior wls]$ unpack200 medrec-spring.jar.pack medrec-spring.jar
[ricardo@Melquior wls]$ unpack200 wls_default.jar.pack wls_default.jar
[ricardo@Melquior wls]$ unpack200 wls_examples.jar.pack wls_examples.jar
[ricardo@Melquior wls12130]$ cd /home/ricardo/Downloads/Linux/wls12130/
[ricardo@Melquior wls12130]$ ./run_samples.sh
Enter Username: ricardo
NOTE: The password must be at least 8 alphanumeric characters with at least
      one number or special character.
Enter Password:
Reenter Password:
CLASSPATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/lib/tools.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/lib/weblogic_sp.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/server/lib/weblogic.jar:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/net.sf.antcontrib_1.1.0.0_1-0b3/lib/ant-contrib.jar:/home/ricardo/Downloads/Linux/wls12130/wlserver/modules/features/oracle.wls.common.nodemanager_2.0.0.0.jar:

PATH=/home/ricardo/Downloads/Linux/wls12130/wlserver/server/bin:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/org.apache.ant_1.9.2/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/jre/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-28.b13.el6_6.x86_64/bin:/home/ricardo/oracle/base/product/12.1.0.2/db_1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ricardo/bin:/home/ricardo/Downloads/Linux/wls12130/oracle_common/modules/org.apache.maven_3.0.5/bin

Your environment has been set.
Buildfile: /home/ricardo/Downloads/Linux/wls12130/configure_samples.xml

samples_scripts:

all:

BUILD SUCCESSFUL
Total time: 0 seconds
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands



Exiting WebLogic Scripting Tool.

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands



Exiting WebLogic Scripting Tool.

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands



Exiting WebLogic Scripting Tool.

[ricardo@Melquior wls12130]$

O Console de Administração do WebLogic é acessado pelo endereço “http://localhost:7001/console”, onde deve ser utilizado o usuário e senha informado na configuração do domínio.

WL02

WL03

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.