WebLogic Server 10.3.6.0 更改jdk版本

简介: WebLogic Server 10.3.6.0 更改jdk版本

基础环境

OS:Red Hat Enterprise Linux Server release 7.3 (Maipo)
weblogic :name="WebLogic Server" version="10.3.6.0"

weblogic原来java 版本:
image

[weblogic@prod04 jvm]$ ./java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64/jre/bin/java -version
java version "1.7.0_111"
OpenJDK Runtime Environment (rhel-2.6.7.8.el7-x86_64 u111-b01)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)

更改java 版本:

[weblogic@prod04 bin]$ pwd
/u02/bea1036/user_projects/domains/base_domain/bin
[weblogic@prod04 bin]$ vi setDomainEnv.sh 

编辑 setDomainEnv.sh 文件,修改如下参数:

image

启动weblogic:

[weblogic@prod04 base_domain]$ ./startWebLogic.sh 
.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Development
.
CLASSPATH=/u02/bea1036/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u02/bea1036/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64/jre/lib/tools.jar:/u02/bea1036/wlserver_10.3/server/lib/weblogic_sp.jar:/u02/bea1036/wlserver_10.3/server/lib/weblogic.jar:/u02/bea1036/modules/features/weblogic.server.modules_10.3.6.0.jar:/u02/bea1036/wlserver_10.3/server/lib/webservices.jar:/u02/bea1036/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u02/bea1036/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u02/bea1036/wlserver_10.3/common/derby/lib/derbyclient.jar:/u02/bea1036/wlserver_10.3/server/lib/xqrl.jar
.
PATH=/u02/bea1036/wlserver_10.3/server/bin:/u02/bea1036/modules/org.apache.ant_1.7.1/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64/jre/jre/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64/jre/bin:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64/jre/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/weblogic/.local/bin:/home/weblogic/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
Starting WLS with line:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64/jre/bin/java    -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/u02/bea1036/wlserver_10.3/server/lib/weblogic.policy   -da -Dplatform.home=/u02/bea1036/wlserver_10.3 -Dwls.home=/u02/bea1036/wlserver_10.3/server -Dweblogic.home=/u02/bea1036/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/u02/bea1036/patch_wls1036/profiles/default/sysext_manifest_classpath:/u02/bea1036/patch_ocp371/profiles/default/sysext_manifest_classpath  weblogic.Server
<Oct 30, 2018 2:51:46 PM CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<Oct 30, 2018 2:51:47 PM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<Oct 30, 2018 2:51:47 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with OpenJDK 64-Bit Server VM Version 25.102-b14 from Oracle Corporation> 
<Oct 30, 2018 2:51:49 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 > 
<Oct 30, 2018 2:51:51 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<Oct 30, 2018 2:51:51 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
<Oct 30, 2018 2:51:51 PM CST> <Notice> <LoggingService> <BEA-320400> <The log file /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<Oct 30, 2018 2:51:51 PM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log00002. Log messages will continue to be logged in /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log.> 
<Oct 30, 2018 2:51:51 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.> 
<Oct 30, 2018 2:51:56 PM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<Oct 30, 2018 2:51:58 PM CST> <Notice> <LoggingService> <BEA-320400> <The log file /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<Oct 30, 2018 2:51:58 PM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/access.log00002. Log messages will continue to be logged in /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/access.log.> 
<Oct 30, 2018 2:52:00 PM CST> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class "com.sun.tools.javac.Main". Using the default javac compiler to compile JSPs.> 
<Oct 30, 2018 2:52:00 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<Oct 30, 2018 2:52:00 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <LoggingService> <BEA-320400> <The log file /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/base_domain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/base_domain.log00002. Log messages will continue to be logged in /u02/bea1036/user_projects/domains/base_domain/servers/AdminServer/logs/base_domain.log.> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.123:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
<Oct 30, 2018 2:52:01 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 

登陆控制台检查java 版本是否更新:

image

相关文章
|
3月前
|
Java Linux 开发工具
Jenv 多版本JDK管理
Jenv 可以对多版本JDK进行管理
|
4月前
|
Web App开发 Java Linux
Nexus【部署 02】最新版本 nexus-3.35.0-02-unix.tar.gz 安装配置启动及测试(JDK版本+虚拟机参数配置说明)
Nexus【部署 02】最新版本 nexus-3.35.0-02-unix.tar.gz 安装配置启动及测试(JDK版本+虚拟机参数配置说明)
131 0
|
4月前
|
存储 Java 编译器
JVM-不同jdk版本静态变量存储位置
JVM-不同jdk版本静态变量存储位置
|
3月前
|
Oracle JavaScript Java
JDK的版本迭代特性(JDK9 - JDK20)
JDK的版本迭代特性(JDK9 - JDK20)
|
2月前
|
Oracle Java 编译器
基本概念【入门、 发展简史、核心优势、各版本的含义、特性和优势、JVM、JRE 和 JDK 】(二)-全面详解(学习总结---从入门到深化)
基本概念【入门、 发展简史、核心优势、各版本的含义、特性和优势、JVM、JRE 和 JDK 】(二)-全面详解(学习总结---从入门到深化)
47 1
|
4月前
|
Java Maven
[Java ] jdk升级 bug java: -source 8 中不支持 instanceof 中的模式匹配 (请使用 -source 16 或更高版本以启用 instanceof 中的模式匹配)
[Java ] jdk升级 bug java: -source 8 中不支持 instanceof 中的模式匹配 (请使用 -source 16 或更高版本以启用 instanceof 中的模式匹配)
137 0
|
13天前
|
Oracle Java 关系型数据库
Java 开发者必备:JDK 版本详解与选择策略(含安装与验证)
Oracle Java SE 支持路线图显示,JDK 8(LTS)支持至2030年,非LTS版本如9-11每6个月发布且支持有限。JDK 11(LTS)支持至2032年,而JDK 17及以上版本现在提供免费商用许可。LTS版本提供长达8年的支持,每2年发布一次。Oracle JDK与OpenJDK有多个社区和公司构建版本,如Adoptium、Amazon Corretto和Azul Zulu,它们在许可证、商业支持和更新方面有所不同。个人选择JDK时,可考虑稳定性、LTS、第三方兼容性和提供商支持。
27 0
|
1月前
|
Java 应用服务中间件 nginx
idea打war包时,JDK版本的问题解决方式
idea打war包时,JDK版本的问题解决方式
17 0
|
1月前
|
Java
916.【Java】javap 查看 class 文件的jdk编译版本
916.【Java】javap 查看 class 文件的jdk编译版本
52 2
|
1月前
|
Oracle 安全 Java
JDK收费的各个版本(记录一下)
JDK收费的各个版本(记录一下)
328 0