启动 Websphere Application Server 时出现 TCP 通道初始化失败错误

发布于 2024-09-18 15:21:01 字数 5009 浏览 5 评论 0原文

当我尝试运行 websphere 应用程序服务器时遇到错误。

TCP 通道 TCPInboundChannel_ipcc.Default_IPC_Connector_Name 初始化失败。主机 localhost 和端口 9633 的套接字绑定失败。该端口可能已在使用中。

下面是错误的堆栈跟踪:

[9/13/10 15:35:12:942 SGT] 00000000 JMXSoapAdapte A ADMC0013I: The SOAP connector is available at port 8880 
[9/13/10 15:35:12:967 SGT] 00000000 TCPPort E TCPC0003E: TCP Channel TCPInboundChannel_ipcc.Default_IPC_Connector_Name initialization failed. The socket bind failed for host localhost and port 9633. The port may already be in use. 
[9/13/10 15:35:12:992 SGT] 00000000 IPCConnectorS E ADMC0072E: Failed to initialize or start channel chain IPCCInboundChain.Default_IPC_Connector_Name/LC_IPCCInboundChain.Default_IPC_Connector_Name due to exception com.ibm.wsspi.channel.framework.exception.ChainGroupException: 
Error initializing chain IPCCInboundChain.Default_IPC_Connector_Name in group IPCCInboundGroup.Default_IPC_Connector_Name, exception=com.ibm.wsspi.channel.framework.exception.RetryableChannelException: Cannot assign requested address: bind 
at com.ibm.ws.channel.framework.impl.ChannelFrameworkImpl.initChainGroup(ChannelFrameworkImpl.java:3667) 
at com.ibm.ws.runtime.component.ChannelFrameworkServiceImpl.initChainGroup(ChannelFrameworkServiceImpl.java:772) 
at com.ibm.ws.management.connector.ipc.IPCConnectorServer.start(IPCConnectorServer.java:330) 
at com.ibm.ws.management.component.JMXConnectors.startIPCConnector(JMXConnectors.java:970) 
at com.ibm.ws.management.component.JMXConnectors.stateChanged(JMXConnectors.java:2211) 
at com.ibm.ws.security.core.distSecurityComponentImpl.fireEvent(distSecurityComponentImpl.java:2181) 
at com.ibm.ws.security.core.distSecurityComponentImpl.fireStartedEvent(distSecurityComponentImpl.java:2143) 
at com.ibm.ws.security.core.distSecurityComponentImpl.startSecurity(distSecurityComponentImpl.java:642) 
at com.ibm.ws.security.core.SecurityComponentImpl.startSecurity(SecurityComponentImpl.java:109) 
at com.ibm.ws.security.core.ServerSecurityComponentImpl.start(ServerSecurityComponentImpl.java:338) 
at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538) 
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627) 
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618) 
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:227) 
at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538) 
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627) 
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618) 
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:503) 
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:298) 
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:214) 
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:666) 
at com.ibm.ws.runtime.WsServer.main(WsServer.java:59) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
at java.lang.reflect.Method.invoke(Method.java:600) 
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213) 
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93) 
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74) 
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
at java.lang.reflect.Method.invoke(Method.java:600) 
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340) 
at org.eclipse.core.launcher.Main.basicRun(Main.java:282) 
at org.eclipse.core.launcher.Main.run(Main.java:981) 
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:340) 
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:110) 

它在末尾记录“Server server1 open for e-business”,但我不能访问我的应用程序,甚至管理控制台。我检查了端口 9633 是否正在使用 netstat 但事实并非如此。我也尝试将端口更改为 21633,但它仍然给我同样的错误。奇怪的是,我上周运行我的服务器(并在该服务器上运行我的应用程序)没有任何问题,但是当我昨天尝试这样做时,这个错误突然出现。我已经重新启动了我的WAS,甚至多次关闭了我的电脑,但都无济于事。 Websphere 没有作为 Windows 服务运行,我正在尝试从 eclipse 运行它。但是,即使我尝试将其作为服务运行,我仍然遇到相同的错误。我根本没有更改任何配置,所以我想知道可能是什么原因造成的。
我的环境:Windows 7,Websphere Application Server 7.0.0.9

有人熟悉这个问题吗?任何帮助表示赞赏!谢谢!

I'm encountering an error when I tried to run my websphere application server.

TCP Channel TCPInboundChannel_ipcc.Default_IPC_Connector_Name initialization failed. The socket bind failed for host localhost and port 9633. The port may already be in use.

Below is the stack trace of the error:

[9/13/10 15:35:12:942 SGT] 00000000 JMXSoapAdapte A ADMC0013I: The SOAP connector is available at port 8880 
[9/13/10 15:35:12:967 SGT] 00000000 TCPPort E TCPC0003E: TCP Channel TCPInboundChannel_ipcc.Default_IPC_Connector_Name initialization failed. The socket bind failed for host localhost and port 9633. The port may already be in use. 
[9/13/10 15:35:12:992 SGT] 00000000 IPCConnectorS E ADMC0072E: Failed to initialize or start channel chain IPCCInboundChain.Default_IPC_Connector_Name/LC_IPCCInboundChain.Default_IPC_Connector_Name due to exception com.ibm.wsspi.channel.framework.exception.ChainGroupException: 
Error initializing chain IPCCInboundChain.Default_IPC_Connector_Name in group IPCCInboundGroup.Default_IPC_Connector_Name, exception=com.ibm.wsspi.channel.framework.exception.RetryableChannelException: Cannot assign requested address: bind 
at com.ibm.ws.channel.framework.impl.ChannelFrameworkImpl.initChainGroup(ChannelFrameworkImpl.java:3667) 
at com.ibm.ws.runtime.component.ChannelFrameworkServiceImpl.initChainGroup(ChannelFrameworkServiceImpl.java:772) 
at com.ibm.ws.management.connector.ipc.IPCConnectorServer.start(IPCConnectorServer.java:330) 
at com.ibm.ws.management.component.JMXConnectors.startIPCConnector(JMXConnectors.java:970) 
at com.ibm.ws.management.component.JMXConnectors.stateChanged(JMXConnectors.java:2211) 
at com.ibm.ws.security.core.distSecurityComponentImpl.fireEvent(distSecurityComponentImpl.java:2181) 
at com.ibm.ws.security.core.distSecurityComponentImpl.fireStartedEvent(distSecurityComponentImpl.java:2143) 
at com.ibm.ws.security.core.distSecurityComponentImpl.startSecurity(distSecurityComponentImpl.java:642) 
at com.ibm.ws.security.core.SecurityComponentImpl.startSecurity(SecurityComponentImpl.java:109) 
at com.ibm.ws.security.core.ServerSecurityComponentImpl.start(ServerSecurityComponentImpl.java:338) 
at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538) 
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627) 
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618) 
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:227) 
at com.ibm.ws.runtime.component.ContainerHelper.startComponents(ContainerHelper.java:538) 
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:627) 
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:618) 
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:503) 
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:298) 
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:214) 
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:666) 
at com.ibm.ws.runtime.WsServer.main(WsServer.java:59) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
at java.lang.reflect.Method.invoke(Method.java:600) 
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213) 
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93) 
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74) 
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) 
at java.lang.reflect.Method.invoke(Method.java:600) 
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340) 
at org.eclipse.core.launcher.Main.basicRun(Main.java:282) 
at org.eclipse.core.launcher.Main.run(Main.java:981) 
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:340) 
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:110) 

It logs "Server server1 open for e-business" at the end but then I cannot access my application and even the admin console. I checked port 9633 if it is in use through
netstat but it isn't. I also tried to change the port to 21633 but it still gives me the same error. The weird thing about this is I have no problems in running my server (and running my application on that server) last week but when I tried to do so yesterday, this error suddenly shows. I already restarted my WAS and even shut down my pc several times but to no avail. Websphere is not running as a Windows service and I'm trying to run it from eclipse. However, even if I tried running it as a service, I still get the same error. I haven't changed any configuration at all so I'm wondering what might be causing this.
My environment: Windows 7, Websphere Application Server 7.0.0.9

Anyone familiar with this problem? Any help is appreciated! Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

分分钟 2024-09-25 15:21:01

对于(看似)WAS 绑定的每个端口,我反复收到此错误,即使在 WAS 启动之前没有人监听它们。

此主题我找到了一个解决方案:显然 IPv6 堆栈存在一些问题。由于我不关心 IPv6 的使用,因此我可以通过在配置文件的 bin 中的 setupCmdLine.{bat,sh} 脚本中设置以下内容来告诉 JVM 更喜欢 IPv4目录。

set IBM_JAVA_OPTIONS=-Djava.net.preferIPv4Stack=true

(当然,根据您的环境更改语法。)

这是在 Windows 8/WAS 8.5(开发人员版本)上。

I received this error, repeatedly, for (seemingly) every port that WAS binds, even though nobody was listening on them prior to WAS startup.

This thread led me to a solution: apparently there was some issue around the IPv6 stack. Since I don't care about IPv6 for my use, I was able to tell the JVM to prefer IPv4 by setting the following in the setupCmdLine.{bat,sh} script in my profile's bin directory.

set IBM_JAVA_OPTIONS=-Djava.net.preferIPv4Stack=true

(Change syntax as appropriate for your environment, of course.)

This was on Windows 8/WAS 8.5 (developer's edition).

俯瞰星空 2024-09-25 15:21:01

您提到您无法访问您的应用程序和管理控制台。管理控制台通常绑定到 WC_adminhost 和 WC_adminhost_secured 端口。您可以在 WAS_HOME/profiles/profile_name/properties/portdef.props 文件下找到它们。如果您自定义了任何端口,请确保它们之间没有发生冲突。

是否有任何原因导致您无法通过任何其他标准端口访问您的应用程序? IPC仅对本地实例之间的高速通信很重要。大多数 Web 应用程序访问都可以通过 WC_defaulthost 和 WC_defaulthost_secure 端口完成。

You mention that you cannot access your application and the admin console. The admin console is typically bound to WC_adminhost and WC_adminhost_secured ports. You can find those under the WAS_HOME/profiles/profile_name/properties/portdef.props file. If you've customized any ports, make sure that you haven't created a conflict between any of them.

Is there any reason that you cannot access your application through any of the other standard ports? IPC is only important for high-speed communication between local instances. Most web application access can be done through the WC_defaulthost and WC_defaulthost_secure ports.

野鹿林 2024-09-25 15:21:01

这是由于“localhost”的 IP 解析不正确造成的。请 ping localhost 并确保响应来自 127.0.0.1(环回)或实际主机 IP 本身。如果没有,请修复它,它将解决您的问题

This is due to incorrect IP resolution for "localhost". Please ping localhost and ensure the response is from 127.0.0.1 (loopback) or the actual host IP itself. If not, fix it and it will resolve your issue

恋竹姑娘 2024-09-25 15:21:01

确保服务器的 IPC_CONNECTOR_ADDRESS 端口定义上的主机名显示为 localhost,而不是服务器名称。

Make sure your host name on the IPC_CONNECTOR_ADDRESS port definition for the server says localhost and not the server name.

2024-09-25 15:21:01

我在 Windows 7 上使用 websphere v6.1,使用 RAD 8.0.4 时遇到了同样的问题,

[18/09/13 09:15:01:036 EST] 00000022 TCPPort       E   TCPC0003E: TCP Channel TCP_1 initialization failed.  The socket bind failed for host * and port 9060.  The port may already be in use. 
[18/09/13 09:15:02:038 EST] 00000020 TCPPort       E   TCPC0003E: TCP Channel TCP_2 initialization failed.  The socket bind failed for host * and port 80.  The port may already be in use. 
[18/09/13 09:15:03:111 EST] 00000022 TCPPort       E   TCPC0003E: TCP Channel TCP_1 initialization failed.  The socket bind failed for host * and port 9060.  The port may already be in use. 
[18/09/13 09:15:04:112 EST] 00000020 TCPPort       E   TCPC0003E: TCP Channel TCP_2 initialization failed.  The socket bind failed for host * and port 80.  The port may already be in use. 

这就是我所做的:

  1. 通过打开命令终端并运行“netstat -a”,验证没有端口在侦听 80 或 9060。如果是这种情况,请终止使用它的应用程序,或者如果不能,请尝试重新启动。否则,请继续执行步骤 2。
  2. 请按照此处的说明进行操作:“http:// www-01.ibm.com/support/docview.wss?uid=swg21628479”。
    • 需要注意的是“setupCmdLine.bat”文件的位置。我的 websphere 的安装方式有多个“bin/setupCmdLine.bat”文件。包含此文件的文件夹包括“IBM/SDP/runtimes/base_v61/bin”; “IBM/SDP/runtimes/base_v61/profiles/was61profile1”; “IBM/WebSphere/AppServer/bin”; “IBM/WebSphere/AppServer/profiles/AppSrv1/bin”。这让事情变得非常混乱,因为如果您将解决方案应用到错误的文件,它就不会生效。
    • 为了找到正确的文件夹来更新“setupCmdLine.bat”,我进入了 RAD ->服务器选项卡 ->右键单击Websphere服务器->属性-> WebSphere Application Server v6.1 菜单项。右侧是“个人资料目录”。
    • 对我来说,这指向“.../IBM/SDP/runtimes/base_v61/profiles/was61profile1”

I've got the same issue using websphere v6.1 on Windows 7, using RAD 8.0.4

[18/09/13 09:15:01:036 EST] 00000022 TCPPort       E   TCPC0003E: TCP Channel TCP_1 initialization failed.  The socket bind failed for host * and port 9060.  The port may already be in use. 
[18/09/13 09:15:02:038 EST] 00000020 TCPPort       E   TCPC0003E: TCP Channel TCP_2 initialization failed.  The socket bind failed for host * and port 80.  The port may already be in use. 
[18/09/13 09:15:03:111 EST] 00000022 TCPPort       E   TCPC0003E: TCP Channel TCP_1 initialization failed.  The socket bind failed for host * and port 9060.  The port may already be in use. 
[18/09/13 09:15:04:112 EST] 00000020 TCPPort       E   TCPC0003E: TCP Channel TCP_2 initialization failed.  The socket bind failed for host * and port 80.  The port may already be in use. 

Here's what I did:

  1. Verified no ports are listening on 80 or 9060 by opening a command terminal and running 'netstat -a'. If that's the case, terminate the application using it, or if you can't, try doing a restart. Otherwise, proceed to step 2.
  2. Follow the instructions here: "http://www-01.ibm.com/support/docview.wss?uid=swg21628479".
    • Just a note with this is the location of "setupCmdLine.bat" file. The way my websphere is installed, it has multiple 'bin/setupCmdLine.bat' files. Folders containing this file includes, "IBM/SDP/runtimes/base_v61/bin"; "IBM/SDP/runtimes/base_v61/profiles/was61profile1"; "IBM/WebSphere/AppServer/bin"; "IBM/WebSphere/AppServer/profiles/AppSrv1/bin". And this made it tonnes confusing, because if you apply the solution to the wrong file, it won't take affect.
    • To find the right folder to update "setupCmdLine.bat", I went into RAD -> Servers Tab -> Right clicked on the Websphere server -> Properties -> WebSphere Application Server v6.1 menu item. And on the right side, there's the "Profile directory".
    • For me this pointed to '.../IBM/SDP/runtimes/base_v61/profiles/was61profile1'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文