您现在的位置是:首页 > 文章详情

WebLogic Server 10.3.6.0 更改jdk版本

日期:2018-10-29点击:343

基础环境

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

原文链接:https://yq.aliyun.com/articles/659765
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章