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 Maven
java: 警告: 源发行版 11 需要目标发行版 11 无效的目标发行版: 11 jdk版本不符,项目jdk版本为其他版本
如何解决Java项目中因JDK版本不匹配导致的编译错误,包括修改`pom.xml`文件、调整项目结构、设置Maven和JDK版本,以及清理缓存和重启IDEA。
75 1
java: 警告: 源发行版 11 需要目标发行版 11 无效的目标发行版: 11 jdk版本不符,项目jdk版本为其他版本
|
3月前
|
Java 关系型数据库 MySQL
【编程基础知识】Eclipse连接MySQL 8.0时的JDK版本和驱动问题全解析
本文详细解析了在使用Eclipse连接MySQL 8.0时常见的JDK版本不兼容、驱动类错误和时区设置问题,并提供了清晰的解决方案。通过正确配置JDK版本、选择合适的驱动类和设置时区,确保Java应用能够顺利连接MySQL 8.0。
334 1
|
3月前
|
Java 关系型数据库 开发工具
idea创建不了spring2.X版本,无法使用JDK8,最低支持JDK17 , 如何用idea创建spring2.X版本,使用JDK8解决方案
本文提供了解决方案,如何在IDEA中创建Spring 2.X版本的项目并使用JDK8,尽管Spring 2.X已停止维护且IDEA不再直接支持,通过修改pom.xml或使用阿里云的国内源来创建项目。
182 0
idea创建不了spring2.X版本,无法使用JDK8,最低支持JDK17 , 如何用idea创建spring2.X版本,使用JDK8解决方案
|
5月前
|
Java 开发工具
开发工具系列 之 同一个电脑上安装多个版本的JDK
这篇文章介绍了如何在一台电脑上安装和配置多个版本的JDK,包括从官网下载所需JDK、安装过程、配置环境变量以及如何查看和切换当前使用的JDK版本,并提到了如果IDEA和JDK版本不兼容时的解决方法。
开发工具系列 之 同一个电脑上安装多个版本的JDK
|
3月前
|
Oracle Java 关系型数据库
jdk17安装全方位手把手安装教程 / 已有jdk8了,安装JDK17后如何配置环境变量 / 多个不同版本的JDK,如何配置环境变量?
本文提供了详细的JDK 17安装教程,包括下载、安装、配置环境变量的步骤,并解释了在已有其他版本JDK的情况下如何管理多个JDK环境。
2149 0
|
5月前
|
Java API
JDK8到JDK25版本升级的新特性问题之使用Collectors.teeing()来计算一个列表中学生的平均分和总分如何操作
JDK8到JDK25版本升级的新特性问题之使用Collectors.teeing()来计算一个列表中学生的平均分和总分如何操作
|
5月前
|
Java API Apache
JDK8到JDK24版本升级的新特性问题之在Java中,HttpURLConnection有什么局限性,如何解决
JDK8到JDK24版本升级的新特性问题之在Java中,HttpURLConnection有什么局限性,如何解决
|
5月前
|
Oracle Java 关系型数据库
JDK8到JDK29版本升级的新特性问题之未来JDK的升级是否会成为必然趋势,如何理解
JDK8到JDK29版本升级的新特性问题之未来JDK的升级是否会成为必然趋势,如何理解
|
5月前
|
Oracle 安全 Java
JDK8到JDK28版本升级的新特性问题之在Java 15及以后的版本中,密封类和密封接口是怎么工作的
JDK8到JDK28版本升级的新特性问题之在Java 15及以后的版本中,密封类和密封接口是怎么工作的
|
5月前
|
开发者 C# UED
WPF多窗口应用程序开发秘籍:掌握窗口创建、通信与管理技巧,轻松实现高效多窗口协作!
【8月更文挑战第31天】在WPF应用开发中,多窗口设计能显著提升用户体验与工作效率。本文详述了创建新窗口的多种方法,包括直接实例化`Window`类、利用`Application.Current.MainWindow`及自定义方法。针对窗口间通信,介绍了`Messenger`类、`DataContext`共享及`Application`类的应用。此外,还探讨了布局控件与窗口管理技术,如`StackPanel`与`DockPanel`的使用,并提供了示例代码展示如何结合`Messenger`类实现窗口间的消息传递。总结了多窗口应用的设计要点,为开发者提供了实用指南。
340 0