weblogic创建域-拷贝方式_bea-000377_翁少的博客-程序员宅基地

技术标签: weblogic  

Domain简单定义为:是一个逻辑管理单元,Domain下面包含着weblogic应用服务器中的所有东西,weblogic应用服务器的启动,停止都是以domain为单位进行管理的。

概述:
本次操作是通过拷贝已有域的方式创建一个新的域名,weblogic的版本为10.3.6,Linux操作系统。

1、通过已有域拷贝出一个新的域:
本例子中,已经存在了一个域base_domain,通过拷贝这个域,也就是直接拷贝base_domain文件夹为test_domain的方式:
[[email protected] domains]$ pwd
/home/wengjixi/app/oracle/Middleware/user_projects/domains
[[email protected] domains]$ ll base_domain/ -d
drwxr-x---. 12 wengjixi wengjixi 4096 Jun 26 23:01 base_domain/
[[email protected] domains]$ cp -r base_domain/ test_domain

2、修改监听端口:
2.1、修改config.xml配置文件:
$ pwd
/home/wengjixi/app/oracle/Middleware/user_projects/domains
$ vim test_domain/config/config.xml
<server>
<name>AdminServer</name>
<listen-port>7110</listen-port>
<listen-address></listen-address>
</server>

2.2、修改脚本配置文件:
test_domain/bin/startManagedWebLogic.sh
test_domain/bin/startManagedWebLogic.sh
test_domain/bin/stopManagedWebLogic.sh
test_domain/bin/stopWebLogic.sh
方法很简单,通过grep 原来的端口 脚本配置文件,然后打开相应的脚本配置文件,修改对应的端口就行。
效果:
3、修改配置文件的域名字:
因为配置文件里保存的是base_domain这个域名字,所以需要修改为test_domain。
涉及的配置文件:
test_domain/config/config.xml
test_domain/bin/setDomainEnv.sh
test_domain/bin/startManagedWebLogic.sh
test_domain/bin/startWebLogic.sh
test_domain/bin/stopManagedWebLogic.s
test_domain/bin/stopWebLogic.sh
修改后的效果:
4、删除配置文件缓存文件夹
$ pwd
/home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/config
$ rm -rf configCache/ config.lok

5、修改用户密码信息
如果不修改的话,启动不了域服务,报如下错误:
<Jun 28, 2018 10:03:58 PM CST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:960)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090303]Authentication Failed: User weblogic weblogic.security.providers.authentication.LDAPAtnDelegateException: [Security:090295]caught unexpected exception
at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:251)
at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Truncated. see log file for complete stacktrace


修改方法:
  • 修改boot.properties配置文件,把原来的用户名和密码写上去,这里是明文,但是weblogic启动加载该文件后,会自动通过加密处理。
$ pwd
/home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/security
$ cat boot.properties
#Thu Jun 28 22:15:44 CST 2018
password=weblogic
username=weblogic

  • 5.2 删除data文件夹或改名字:
$ pwd
/home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer
$ mv data data-bak/


6、启动域服务:
$ cd /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/bin
$ ./startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=/home/wengjixi/app/oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/wengjixi/app/oracle/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/wengjixi/app/oracle/Middleware/jdk160_29/lib/tools.jar:/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/wengjixi/app/oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/wengjixi/app/oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/wengjixi/app/oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/wengjixi/app/oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar
.
PATH=/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server/bin:/home/wengjixi/app/oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/home/wengjixi/app/oracle/Middleware/jdk160_29/jre/bin:/home/wengjixi/app/oracle/Middleware/jdk160_29/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/wengjixi/.local/bin:/home/wengjixi/bin:/home/wengjixi/app/maven/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:
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode)
Starting WLS with line:
/home/wengjixi/app/oracle/Middleware/jdk160_29/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Xverify:none -da -Dplatform.home=/home/wengjixi/app/oracle/Middleware/wlserver_10.3 -Dwls.home=/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/home/wengjixi/app/oracle/Middleware/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/wengjixi/app/oracle/Middleware/patch_wls1036/profiles/default/sysext_manifest_classpath:/home/wengjixi/app/oracle/Middleware/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server
<Jun 28, 2018 10:23:01 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>
<Jun 28, 2018 10:23:01 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>
<Jun 28, 2018 10:23:01 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc.>
<Jun 28, 2018 10:23:01 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 >
<Jun 28, 2018 10:23:02 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Jun 28, 2018 10:23:02 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Jun 28, 2018 10:23:02 PM CST> <Notice> <LoggingService> <BEA-320400> <The log file /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_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.>
<Jun 28, 2018 10:23:02 PM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/logs/AdminServer.log00006. Log messages will continue to be logged in /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/logs/AdminServer.log.>
<Jun 28, 2018 10:23:02 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<Jun 28, 2018 10:23:03 PM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <LoggingService> <BEA-320400> <The log file /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/logs/test_domain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/logs/test_domain.log00002. Log messages will continue to be logged in /home/wengjixi/app/oracle/Middleware/user_projects/domains/test_domain/servers/AdminServer/logs/test_domain.log.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Jun 28, 2018 10:23:04 PM CST> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 127.0.0.1>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.105:7110 for protocols iiop, t3, ldap, snmp, http.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.122.1:7110 for protocols iiop, t3, ldap, snmp, http.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7110 for protocols iiop, t3, ldap, snmp, http.>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "test_domain" running in Development Mode>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Jun 28, 2018 10:23:04 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

从红色字体中可以看出,weblogic域已经启动成功,可以通过管理控制台访问了:


参考:









版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wengjixi/article/details/80850099

智能推荐

微信小程序识别图片并提取文字_这款微信小程序可以批量图片转文字?识别准确率超高!..._weixin_39883065的博客-程序员宅基地

在日常学习和生活中,我们都不乏会碰到那些需要将图片中的文字转换成可复制和编辑的内容的时候。不管是书本还是电子文档又或者是电脑应用中的截图,其实都只要利用小编介绍的这个微信小程序就能轻松完成,不仅能够保证不错的文字识别准确率,同时批量完成识别更是节省大量的时间。那么接下来,小编就为大家带来这款小程序的介绍微信小程序作为我们使用微信时经常使用的一个功能,相信已经相当为大家所熟悉了。利用它,我们可以实现...

cmd编译运行Java文件详解_chuijinchi3886的博客-程序员宅基地

cmd编译运行Java文件详解 ①准备工作 首先用记事本编写HelloWorld.java放至G:\Javaspace路径 public class HelloWorld{public static void main(String []args){System.out.print...

k-means算法的matlab代码实现_蚁群算法的Matlab实现_weixin_39977934的博客-程序员宅基地

一、蚁群算法的由来 蚁群算法最早是由Marco Dorigo等人在1991年提出,他们在研究新型算法的过程中,发现蚁群在寻找食物时,通过分泌一种称为信息素的生物激素交流觅食信息从而能快速的找到目标,据此提出了基于信息正反馈原理的蚁群算法。 蚁群算法的基本思想来源于自然界蚂蚁觅食的最短路径原理,根据昆虫科学家的观察,发现自然界的蚂蚁虽然视觉不发达,但它们可以在没有任何提...

什么是 DDoS 攻击?_张驰Zhangchi的博客-程序员宅基地

拒绝服务 (DoS) 攻击是一种恶意尝试,旨在影响合法最终用户对目标系统(如网站或应用程序)的可用性。通常,攻击者会生成大量数据包或请求,最终使目标系统不堪重负。在发生分布式拒绝服务 (DDoS) 攻击时,攻击者使用多个被破坏或受控的来源生成攻击。一般而言,DDoS 攻击可按其攻击的开放系统互连 (OSI) 模型的层级进行隔离。攻击最常发生在网络层(第 3 层)、传输层(第 4 层)、表示层(第 6 层)和应用层(第 7 层)。DDoS 攻击分类在考虑抵御这些攻击的缓解技术时,将攻击分.

html 文本溢出 兼容,CSS - 纯css实现多行文本溢出省略(兼容所有浏览器)_lithops7的博客-程序员宅基地

前言多行文本超出高度限制出现省略号 , 移动端多为webkit内核的 , 有扩展属性-webkit-line-clamp , 但并不是CSS规范中的属性 , PC端往往要借助js去实现这一效果,但麻烦且不是很靠谱,今天就用纯CSS来实现一个完全兼容的多行省略。正文一、webkit内核的实现-webkit-line-clamp设置块元素包含的文本行数;display: -webkit-box设置块元...

记录几款好用的软件_be.ppareit.swiftp_free_30100_开心猫猫虫的博客-程序员宅基地

1.Poner2.IDM3.everything4.网易有道词典5.Vieas 查看图片6.硕鼠7.星愿浏览器8 班迪9.screentogif10.火狐11.netseal sealdesignerclient nEO iMAGING topazremask 没啥用 偶尔折腾折腾用的12.蓝叠13.teamviwer14视频压缩软件15potplayer 视频16 Snipaste 截图...

随便推点

idea terminal git log 乱码问题解决方案_git 乱码 idea terminal log_超大陆天下第一的博客-程序员宅基地

乱码样式: &amp;amp;lt;&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;A6&amp;amp;gt;terminal 输入: set LESSCHARSET=utf-8

Linux:nfs的文件系统_nfs缓存_Le_Anny的博客-程序员宅基地

NFS(Network File System) 即网络文件系统,是FreeBSD支持的文件系统中的一种,它允许网络中的计算机之间通过TCP/IP网络共享资源。在NFS的应用中,本地NFS的客户端应用可以透明地读写位于远端NFS服务器上的文件,就像访问本地文件一样。...

win键盘 mac 功能键_如何将Mac键盘的第一行用作常规功能键_culun797375的博客-程序员宅基地

win键盘 mac 功能键Mac keyboards are fairly renowned for their simple but elegant functionality. Not only are they highly customizable, but OS X contains an option that let you use the function (fn) key to ...

面向网络转型的编排管理系统和ONAP自研产品介绍_云布道师的博客-程序员宅基地

背景网管系统通过对网络资源、故障、性能的动态监控,实现网络运行的优化管理及运维支撑,是移动通信网络正常、高效运行的重要保障。网管系统经历了“厂家OMC-&gt;专业网管-&gt;4+1综...

PHP 1到100质数及其和_用php实现求1到100素数之和_小亮少的博客-程序员宅基地

&amp;lt;?phpheader('content-type:text/html;charset=utf8');$sum=0;for ($i=1;$i&amp;lt;=100;$i++){ $n=0; for ($j=1;$j&amp;lt;$i;$j++){ if($i%$j==0){ $n++; } } if ($n==...

哈工大激光聚焦系统设计_桜、舞い散る的博客-程序员宅基地

哈工大激光聚焦设计作业系统设计要求实际操作思路流程哈尔滨工业大学光电信息科学与工程(光学工程方向)专业,光学仪器设计课程(张树青),激光聚焦系统设计作业。由于做这份作业时网上资料太杂也没统一少有帮助,故在csdn做一个思路小总结系统设计要求入瞳直径2.5mm入瞳距为6mm,需要注意的是在zemax中设计的话入瞳就在孔径光阑上(因为孔径光阑前没有透镜了),所以入瞳距也就是入瞳距第一面镜子的距离就是入瞳距,用ENPP操作数不能确定,因为ENPP操作数规定的是入瞳与第一面镜子的距离,而第一面镜子是孔径

推荐文章

热门文章

相关标签