简体   繁体   English

Weblogic多个域不会同时启动

[英]Weblogic multiple domains don't start simultaneosly

I have created 2 domains test1 and test2 in weblogic server and I am using 2 eclipse and add weblogic server in each eclipse with different domain. 我在weblogic服务器上创建了2个域test1和test2,我正在使用2 eclipse并在每个eclipse中添加不同域的weblogic服务器。 Eclipse 1 instance has weblogic server with domain test1 and Eclipse 2 instance has weblogic server with domain test2. Eclipse 1实例具有带域test1的weblogic服务器,而Eclipse 2实例具有带域test2的weblogic服务器。 When I start any instance of weblogic server say test1, I can't start the other instance ie test2. 当我启动weblogic服务器的任何实例说test1时,我无法启动另一个实例即test2。 Is it possible to start both domain at same port or different port? 是否可以在同一端口或不同端口启动两个域?

WebLogic server version : 10.3.3 WebLogic服务器版本:10.3.3

The default Weblogic port is 7001. It's highly likely that both of your domains/admin servers are attempting to run on the same port if you didn't attempt to change it. 默认的Weblogic端口是7001.如果您没有尝试更改它,则很可能两个域/管理服务器都试图在同一端口上运行。

There are a few different ways you can fix this problem but the easiest is to edit: 有几种不同的方法可以解决这个问题,但最简单的方法是编辑:

<domain test2 home>/config/config.xml

And change the following line: 并更改以下行:

<server> <name>Test2</name> <listen-port>7001</listen-port>

Update the listen port for your second server to be something other than 7001. You can also verify if this is the actual problem by checking the log file after trying to start the server. 将第二台服务器的监听端口更新为7001以外的其他端口。您还可以通过在尝试启动服务器后检查日志文件来验证这是否是实际问题。 You will have binding socket in use exceptions. 您将在使用例外中使用绑定套接字。 The log file will be in: 日志文件将位于:

<domain test2 home>/servers/<server name>/logs

Assuming default setup, there are two ports that need to be different. 假设默认设置,有两个端口需要不同。

  1. the default port. 默认端口。 It's defined under <listen-port> in <DOMAIN_HOME>/config/config.xml , 它在<DOMAIN_HOME>/config/config.xml <listen-port>下定义,
  2. DEBUG_PORT in <DOMAIN_HOME>/bin/setDomainEnv.sh (or .cmd for Windows). DEBUG_PORT<DOMAIN_HOME>/bin/setDomainEnv.sh (或.cmd用于Windows)。

Make sure they are different in both domains. 确保它们在两个域中都不同。

You can't have 2 servers sharing same port on same machine. 您不能让2台服务器在同一台计算机上共享同一端口。 What stops you from changing admin server port of one of the domains. 什么阻止您更改其中一个域的管理服务器端口。

Try to have something like below and see if the issue is sorted out 尝试使用下面的内容,看看问题是否已解决

<server>
    <name>AdminServer</name>
    <listen-port>8001</listen-port>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM