-
2021-01-15 15:20:51
本文源自:https://blog.csdn.net/zz614/article/details/84705066
修改weblogic(10.3)域的启动JDK
说明:
1.D:\bea为笔者weblogic安装目录
2.D:\bea\user_projects\domains\base_domain为笔者域创建目录
方法1:
修改文件:D:\bea\wlserver_10.3\common\bin\commEnv.cmd
修改如下行:
@rem Reset JAVA Home
set JAVA_HOME=d:\bea\jdk160_05
方法2:
修改文件:D:\bea\user_projects\domains\base_domain\bin\setDomainEnv.cmd
在下面行
call "%WL_HOME%\common\bin\commEnv.cmd"
后面增加
set JAVA_HOME=d:\bea\jdk160_05
方法3:
修改文件:D:\bea\user_projects\domains\base_domain\bin\startWebLogic.cmd
在下面行
%JAVA_HOME%\bin\java %JAVA_VM% -version
前面增加:
set JAVA_HOME=d:\bea\jdk160_05更多相关内容 -
Linux更换JDK+weblogic更换JDK
2017-11-06 10:46:42Linux更换JDK+weblogic更换JDK 全局更换JDK Linux更换JDK+weblogic更换JDK 全局更换JDK -
Weblogic升级JDK方法
2020-12-23 03:58:00获取需更新的JDK包,并解压至/wls/wls81/bea/3. 修改启动weblogic的JAVA_HOME变量[wls81@cnsz031527 PrdCSFWLDom380]$ cat servers.env|grepJAVA_HOMEVAR_JAVA_HOME:::JAVA_HOME=/wls/wls81/bea/jrockit-j2sdk1.4.2_...1.停止weblogic相关进程
2.获取需更新的JDK包,并解压至/wls/wls81/bea/
3. 修改启动weblogic的JAVA_HOME变量
[wls81@cnsz031527 PrdCSFWLDom380]$ cat servers.env|grepJAVA_HOME
VAR_JAVA_HOME:::JAVA_HOME=/wls/wls81/bea/jrockit-j2sdk1.4.2_08 --修改成新的JDK路径即可
4.重新启动weblogic
5. 验证
如下所示:
Alternatives
There are twodifferent approaches that can be used to achieve the required goal. Both willbe described briefly:
A) Installing anew JDK home, and using symbolic link to "rename" the existing andnew JDK directories.
Following thisapproach, the JDK location originally used during the installation will notchange and hence it has the minimal drawback that it might keep a versionedname as for example "$INSTALL_HOME/jdk_".
In any of thecases, this approach is simpler and less error prone than Approach B)
B) Installing a new JDK home directory and replacing the JAVA_HOMEenvironmental variable in *** all *** the scripts referring to it.
This is the preferred approach if you want to do a partial upgrade (affectingto specific domains only, or not affecting to nodemanager), but its difficultyis around on how to know which files do refer to a JDK location.
The initial list of files to change will be :
*$INSTALL_HOME/wlserver_10.3/common/bin/commEnv.sh
* $INSTALL_HOME/user_projects/domains//bin/setDomainEnv.sh
* $INSTALL_HOME/wlserver_10.3/common/nodemanager/nodemanager.properties
* $INSTALL_HOME/utils/bsu/bsu.sh
* $INSTALL_HOME/utils/quickstart/quickstart.sh
* $INSTALL_HOME/utils/uninstall/uninstall.sh
even that a moreexhaustive way to determine them, will be to run the following command:
find . -type f-name "*.sh" -exec grep -il JAVA_HOME {} ;
Step by Step Actions
Approach A)
1) Assume thesource and target locations are the following:
sourceJDK:/oracle/wls1033/jdk160_18
targetJDK: /oracle/wls1033/jdk1.6.0_24
2) Stop all processesthat use the current FMW_HOME. This refers to
- all the AdminServer and managed_servers in all domains,
- all the nodemanager processes running in this FMW_HOME, and
- potentially processes running Bea SmartUpgrade at that specific moment.
3) Rename directories:
a) Go to the parent directory of the source JDK:
% cd$INSTALL_HOME/
b) You candetermine whether the location is a symbolic link or not by executing thecommand "ls -ld jdk":
% ls -ld jdk160_18
If the listed information shows jdk160_18 with attributes lrwxrwxrwx (noticethe first 'l') this is a link.
If the listed information shows jdk160_18 with attributes drwxrwxrwx (noticethe first 'd') this is a directory.
c) Move theexisting JDK location to a "backup name", as for example:
% mv jdk160_18jdk160_18.orig
This will renamejdk160_18 to jdk160_18.orig in either case, being it a directory or alink.
d) And create a symbolic link like this:
% ln -s/oracle/wls1033/jdk1.6.0_24 jdk160_18
e) Validate thatthis step has been completed successfully by running the following command:
%$INSTALL_HOME/jdk160_18/bin/java -fullversion
If this does notreturn the expected version string of the installed JSDK, please checkthe
validity of the symbolic link or seek additional assistance from your UNIXsystem administrator.
4) Only in thecase that you are using WLS 10.3.6 and the targetJDK is using a certifiedversion of JAVA 7 (version 1.7.0_x) , you will need to copy manually some jarfiles as follows:
Copy the followingfiles from $INSTALL_HOME/modules to the directory targetJDK/jre/lib/endorsed
javax.annotation_1.0.0.0_1-0.jar
javax.xml.bind_2.1.1.jar
javax.xml.ws_2.1.1.jar
5) Restart theprocesses as normal, they should take the new JDK version.
Approach B)
1) Locate theinvolved JDK versions.
a) sourceJDK: Let's assume theJDK used is $INSTALL_HOME/jdk
For installations done with WLS platform installers (32 bit Windows,Linux, Solaris) the JDK used will be $INSTALL_HOME/jdk .
For installations done with WLS generic installer (64 bit and all otherplatforms) the JDK location can be any other place in the filesystem.
b) targetJDK: Lets assume the new JDK is located at/opt/newjdk
For the examplesabove the following are used:
sourceJDK: /oracle/wls1033/jdk160_18
targetJDK: /oracle/wls1033/jdk1.6.0_24
2) Stop allprocesses that use the current FMW_HOME. This refers to
- all the AdminServer and managed_servers in all domains,
- all the nodemanager processes running in this FMW_HOME, and
- potentially processes running Bea SmartUpgrade at that specific moment.
3) Edit $INSTALL_HOME/wlserver_10.3/common/bin/commEnv.sh and change theJAVA_HOME location. For example, change from:
# Reset JAVA_HOME,JAVA_VENDOR and PRODUCTION_MODE unless JAVA_HOME
# and JAVA_VENDOR are pre-defined.
if [ -z "${JAVA_HOME}" -o -z "${JAVA_VENDOR}" ]; then
# Set up JAVA HOME
JAVA_HOME="/oracle/wls1033/jdk160_18"
# Set up JAVA VENDOR, possible values are
#Oracle, HP, IBM, Sun ...
JAVA_VENDOR=Sun
# PRODUCTION_MODE, default to the development mode
PRODUCTION_MODE=""
fi
To:
# Reset JAVA_HOME,JAVA_VENDOR and PRODUCTION_MODE unless JAVA_HOME
# and JAVA_VENDOR are pre-defined.
if [ -z "${JAVA_HOME}" -o -z "${JAVA_VENDOR}" ]; then
# Set up JAVA HOME
JAVA_HOME="/oracle/wls1033/jdk1.6.0_24"
# Set up JAVA VENDOR, possible values are
#Oracle, HP, IBM, Sun ...
JAVA_VENDOR=Sun
# PRODUCTION_MODE, default to the development mode
PRODUCTION_MODE=""
fi
4) For everydomain, change the domain "setDomainEnv.sh" script to accommodate forthe net JAVA_HOME .
For default location and default scripts, the setDomainEnv.sh will be placedhere:
$INSTALL_HOME/user_projects/domains//bin/setDomainEnv.sh
Check carefullywhere and how the JAVA_HOME environment variable is changed as this mightchange accros versions.
For example in WLS 10.3.3 this will be as follows:
BEA_JAVA_HOME="/oracle/wls1033/jrockit_160_17_R28.0.0-679"
export BEA_JAVA_HOME
SUN_JAVA_HOME="/oracle/wls1033/jdk160_18"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/oracle/wls1033/jdk160_18"
export JAVA_HOME
fi
fi
And hence, thechange will have to be done for SUN_JAVA_HOME, to specify the new location:
SUN_JAVA_HOME="/oracle/wls1033/jdk1.6.0_24"
export SUN_JAVA_HOME
5) Change the JDKlocation specified in nodemanager.properties for the default and any otherexisting nodemanager process:
a) Take a backup of$INSTALL_HOME/wlserver_10.3/common/nodemanager/nodemanager.properties
From:
PropertiesVersion=10.3
javaHome=/oracle/wls1033/jdk160_18
AuthenticationEnabled=true
NodeManagerHome=/oracle/wls1033/wlserver_10.3/common/nodemanager
JavaHome=/oracle/wls1033/jdk160_18/jre
LogLevel=INFO
To:
PropertiesVersion=10.3
javaHome=/oracle/wls1033/jdk1.6.0_24
AuthenticationEnabled=true
NodeManagerHome=/oracle/wls1033/wlserver_10.3/common/nodemanager
JavaHome=/oracle/wls1033/jdk1.6.0_24/jre
LogLevel=INFO
6) Replace the newJDK location on all the minor tools used in the same FMW_HOME, such as BSU,uninstall.sh, etc.
For the Bea SmartUpgrade tool $INSTALL_HOME/utils/bsu/bsu.sh
Update this line:
from
JAVA_HOME="/opt/JDK1.6.14"
to
JAVA_HOME="/oracle/wls1033/jdk1.6.0_24"
Similarly, changeJAVA_HOME values for the remaining three files
*$INSTALL_HOME/utils/quickstart/quickstart.sh
* $INSTALL_HOME/utils/uninstall/uninstall.sh
7) Only in thecase that you are using WLS 10.3.6 and the targetJDK is using a certifiedversion of JAVA 7 (version 1.7.0_x) , you will need to copy manually some jarfiles as follows:
Copy the followingfiles from $INSTALL_HOME/modules to the directory targetJDK/jre/lib/endorsed
javax.annotation_1.0.0.0_1-0.jar
javax.xml.bind_2.1.1.jar
javax.xml.ws_2.1.1.jar
8) Restart all therequired processes.
-
本地WebLogic修改JDK版本
2020-09-26 22:43:37二、修改属性,指定新的JDK路径三、重启WebLogic。 一、打开安装目录找到setDomainEnv.cmd文件。 JDK配置文件位置: D:\Oracle\Weblogic\user_projects\domains\domain\bin\setDomainEnv.cmd 打开setDomainEnv.cmd...一、打开安装目录找到setDomainEnv.cmd文件。
JDK配置文件位置:
D:\Oracle\Weblogic\user_projects\domains\domain\bin\setDomainEnv.cmd
打开setDomainEnv.cmd文件。
二、修改属性,指定新的JDK路径
修改位置大概在41行和54行左右。
图片上JDK版本为1.6。
修改后JDK版本为1.8。将41的set SUN_JAVA_HOME和54行的JAVA_HOME属性值修改为新的JDK路径。
指定到JDK根目录就可以,不用到JDK下的bin目录。set SUN_JAVA_HOME=D:\JDK\jdk1.8 JAVA_HOME= D:\JDK\jdk1.8
修改后:
三、重启WebLogic。
修改JDK路径后,需要重启WebLogic才能生效。
-
jdk1.8+weblogic12.2.1.4.0
2020-09-15 23:49:02压缩包中含有jdk-8u231-linux-x64.tar.gz+fmw_12.2.1.4.0_wls.jar,适用于linux上搭建weblogic中间件 -
Weblogic升级JDK
2021-01-27 16:52:44Weblogic升级JDK 背景: Weblogic远程代码执行漏洞(CVE-2021-2109) 该漏洞风险为“高”,影响版本:Weblogic Server 10.3.6.0.0、12.1.3.0.0、12.2.1.3.0、12.2.1.4.0、14.1.1.0.0。 修复方式: 升级Weblogic...Weblogic升级JDK
背景:
Weblogic远程代码执行漏洞(CVE-2021-2109)
该漏洞风险为“高”,影响版本:Weblogic Server 10.3.6.0.0、12.1.3.0.0、12.2.1.3.0、12.2.1.4.0、14.1.1.0.0。修复方式:
升级Weblogic运行环境的JDK版本,具体参考如下
升级方法(路径根据实际情况修改):
1)修改 ./Oracle/Middleware/user_projects/domains/base_domain/bin/setDomainEnv.sh
2)修改 ./Oracle/Middleware/oracle_common/common/bin/commEnv.sh(12c)
./Oracle/Middleware/wlserver_10.3/common/bin/commEnv.sh(11g)
3)重启AdminServer、NodeManager Server、ManagedWebLogic Server
升级过程中遇到的问题和解决办法:
1)控制台web页面加载不出来
找到新的JDK目录 cd ./jre/lib/security , 修改java.security中securerandom.source参数,由securerandom.source=file:/dev/urandom修改为securerandom.source=file:/dev/./urandom
2)NodeManager无法管理ManagedWebLogic Server,报错javax.net.ssl.SSLHandshakeException: General SSLEngine problem
暂时还搞明白逻辑,怀疑是SSL证书的问题,临时解决办法为在控制态中将节点管理器的类型修改为普通,然后vim ./Oracle/Middleware/user_projects/domains/base_domain/nodemanager/nodemanager.properties,修改参数SecureListener=true为SecureListener=false,然后重启AdminServer和NodeManager Server参考文档:
https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/aboutjrockit.html-----JRockit介绍
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=355217072866857&id=1414485.1&_afrWindowMode=0&_adf.ctrl-state=107fqrm5b1_250-----Latest Java SE Patch Updates on MOS (Doc ID 1414485.1)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=355227993833415&id=1439822.1&_afrWindowMode=0&_adf.ctrl-state=107fqrm5b1_299----- Supported Java SE Downloads on MOS (Doc ID 1439822.1)
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=355625871004650&parent=WIDGET_REFERENCES&sourceId=1439822.1&id=1534791.1&_afrWindowMode=0&_adf.ctrl-state=107fqrm5b1_661-------Java SE and JRockit Archived Downloads on MOS for Java Versions that Have Reached EOL (Doc ID 1534791.1)
Using the Latest JDK 7.0 Update with Oracle E-Business Suite Release 12.2 (Doc ID 1530033.1) -
如何修改WEBLOGIC的JDK版本
2020-12-23 03:58:03展开全部方法1: 修改文件:D:\bea\wlserver_10.3\common\bin\commEnv.cmd修改如下行:@636f707962616964757a686964616f... JAVA_HOME=d:\jdk1.5?方法2: 修改文件:D:\bea\wlserver_10.0\server\bin\start... -
PayloadRunner.run(Jdk7u21.class, args);
-
weblogic jdk版本升级
2022-03-10 13:59:33weblogic jdk版本升级 -
weblogic部署jdk版本问题
2019-01-04 14:58:42做了个最简单的应用部署在weblogic上, weblogic的jdk是1.6 的. 然后 临时应用时1.8的jdk. 临时用我就直接部署了. 然后 weblogic 上边安装也没有问题, 可以正常访问. 过了些天. 又需要一个别的静态页面的时候,我加上... -
如何修改weblogic的jdk版本
2018-02-01 16:53:111.D:\bea为笔者weblogic安装目录 2.D:\bea\user_projects\domains\base_domain为笔者域创建目录 方法1: 修改文件:D:\bea\wlserver_10.3\common\bin\commEnv.cmd 修改如下行: @rem Reset JAVA Home set JAVA_... -
linux下更新weblogic安装的jdk版本
2020-12-25 17:24:121、将高版本的jdk安装包上传至服务器并解压 2、编辑/etc/profile中jdk配置的环境变量信息,并保存。...3、进入weblogic安装域中,并编辑修改setDomainEnv.sh中关于jdk的配置 4、修改完成后重启weblogic即可 ... -
weblogic修改jdk版本遇到的问题与解决方法
2021-03-02 12:48:41weblogic修改jdk版本遇到的问题与解决方法 -
Oracle Weblogic 10.X、11.X、12.X各个版本对应的系统、JDK、数据库版本
2019-04-15 01:04:39NULL 博文链接:https://ligaosong.iteye.com/blog/1750085 -
linux+weblogic+jdk+Oracle2C环境搭建
2019-03-02 22:09:22linux下安装weblogic以及Oracle、jdk 的一些过程。以及oracle的一些初始化操作 -
weblogic创建域并选择项目使用的jdk
2022-07-13 09:49:53涉及到weblogic的域的创建以及后续控制台中添加项目。涉及到jdk版本的选择 -
weblogic 10.3.6 jdk 1.7的兼容性问题解决方法
2020-05-25 10:50:32WebLogic Server does not ship with JDK 7. This appendix describes the steps you need to perform to use WebLogic Server with JDK 7. It also describes issues that you may encounter when using WebLogic ... -
weblogic相关问题
2021-05-19 14:45:10目前用的weblogic11c,jdk1.7.要加入jdk1.8后报错。 1.weblogic11c上没有web.xml无法识别为工程,weblogic12c可以识别 2.weblogic11c无法兼容jdk1.8,如果要用必须要升级 3.升级之后要注意是否有无版权风险。 4.... -
如何修改weblogic的JDK版本
2016-10-11 23:15:31如何修改WEBLOGIC的JDK版本 说明: 1.D:\bea为笔者weblogic安装目录 2.D:\bea\user_projects\domains\base_domain为笔者域创建目录 3.我是用方法3处理好的 方法1: 修改文件:D:\bea\wlserver_10.3\common\bin\commEnv.... -
关于weblogic92使用64位JDK
2017-12-02 18:34:36bea的产品weblogic92使用64位JDK 运行,支持64位机器运行 -
weblogic和jdk下载地址
2020-05-26 09:18:29jdk各版本下载地址: https://www.oracle.com/java/technologies/oracle-java-archive-downloads.html 问题一:常用的Java的三个版本以及JAVA SE是什么 一、Java的版本区别 常用的 java 程序... -
linux安装weblogic对应jdk版本问题
2018-05-22 10:58:26前段时间去另一个项目组帮忙,需要搭建weblogic环境来给我的webservice提供服务,一开始手头没有linux环境...当时Linux服务器用的是jdk1.6,于是抱着试一试的心态从第三方平台又下载了weblogic11g(10.3.6)的安装包... -
关于weblogic11g更换jdk的问题
2020-12-23 03:57:54这边的weblogic默认的jdk的版本是jdk1.6,服务器上jdk1.6和1.7都安装的有。然后开发用的jdk的版本是1.7。虽然也很老,但是没办法,现在我们开发用的确实是jdk1.7。在这样的环境下,我们如何找到对weblogic的默认jdk... -
肿么修改WEBLOGIC的JDK版本
2021-03-15 16:14:56如何修改WEBLOGIC的JDK版本说明:1.D:\bea为笔者weblogic安装目录2.D:\bea\user_projects\domains\base_domain为笔者域创建目录方法1:修改文件:D:\bea\wlserver_10.3\common\bin\commEnv.cmd修改如下行:@rem Reset ... -
WebLogic 10.3.6与JDK 1.7的兼容问题
2021-04-16 14:45:15最近将weblogic(wlserver_10.3)装在jdk1.7上面发现之前的应用不能够deploy上去了,老是报错java.lang.ClassCastException: weblogic.wsee.jaxws.spi.WLSEndpoint cannot be cast to org.apache.cxf.jaxws.... -
LINUX查看JDK和Weblogic版本命令
2021-05-14 02:56:00满意答案xjiank2014.05.03采纳率:50%等级:12已帮助:4893人JDKA、查找目前所使用的linux下所使用的jdk安装后的目录:echo $JAVA_HOME;B、获得目前所使用的linux下所使用的jdk的版本java -version;C、获得所安装... -
linux安装jdk,weblogic详细步骤
2018-08-24 22:08:22详细步骤,仅用于交流学习,不可商用,又不会可以加我好友 -
七、linux基础-jdk1.8和weblogic12.2.1.3.0安装
2020-12-23 03:58:001、环境探查与准备安装jdk和weblogic前需要对进行安装的linux系统硬件和软件环境进行探查确认,以确保支持对jdk1.8.0_144_1和weblogic12.2.1.3和的安装。weblogic12.2.1.3对于jdk及linux操作系统版本的要求在oracle... -
修改weblogic域的jdk
2018-06-28 10:03:341:进入Weblogic域文件夹下面[wzh@localhost bin]$ pwd/app/wzh/oracle/middleware/user_projects/domains/base_domain/bin[wzh@localhost bin]$ lltotal 36drwxr-x--- 2 wzh wzh 26 Nov 30 2015 nodemanagerdrwxr-x...