配置文件创建过程卡在半途 Websphere

配置文件创建过程卡在半途 Websphere

我正在 Linux Mint 12 、WAS 8.0 网络部署试用版上创建单元配置文件。但使用 manageProfiles.sh 或配置文件管理工具,我无法创建任何配置文件(单元、应用程序...)。当我检查日志文件时,配置文件创建过程总是中途停止(不显示任何错误,只是卡在那里)。日志总是这样

<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475108</millis>
    <sequence>2985</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>replacing value for user.install.root (null) with (/opt/IBM/WebSphere/AppServer/profiles)</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475108</millis>
    <sequence>2986</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>replacing value for was.install.root (/opt/IBM/WebSphere/AppServer) with (/opt/IBM/WebSphere/AppServer)</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475108</millis>
    <sequence>2987</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>replacing value for was.repository.root (null) with (/opt/IBM/WebSphere/AppServer/profiles/config)</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475108</millis>
    <sequence>2988</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>replacing value for com.ibm.ws.scripting.wsadminprops (null) with (/opt/IBM/WebSphere/AppServer/profiles/properties/wsadmin.properties)</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475120</millis>
    <sequence>2989</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>Resetting listener available status to: false</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475121</millis>
    <sequence>2990</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>setting wsadmin requester timeouts</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475128</millis>
    <sequence>2991</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>wsadmin requester retry count = 240000, initialization retry count = 12000, shutdown retry count = 12000</message>
</record>
<record>
    <date>2012-11-02T04:11:15</date>
    <millis>1351847475128</millis>
    <sequence>2992</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>messageLogged</method>
    <thread>0</thread>
    <message>Checking for wsadmin listener initialization</message>
</record>

答案1

IBM 脚本有一个错误,它们假定您的默认 shell 是 bash。

您应该确保 /bin/sh 映射到 /bin/bash

执行

ls -al /bin/sh

如果它映射到 dash,请执行以下操作:

sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

答案2

我遇到了同样的问题,但在 RHEL6.3 for ppc(100% 支持)上,我也无法让它工作。我-federateLater在创建配置文件时使用了:true。

之后我设法做到了:

./bin/addNode.sh dmgr-hostname 8879 -javaoption "-Xmx512m" -profileName MY_PROFILE_NAME

这确实起了作用,但我还想做一个简单的 federateLater false。如果您有其他问题,请随时发表您自己的答案。

相关内容