2010-09-14 854 views
1

我试图运行我的websphere应用程序服务器时遇到错误。启动Websphere Application Server时出现TCP通道初始化失败错误

TCP通道TCPInboundChannel_ipcc.Default_IPC_Connector_Name初始化失败。主机本地主机和端口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) 

它记录“服务器server1的开放式电子商务”的结尾,但我就不能访问我的应用程序,甚至管理控制台。我通过 netstat检查了端口9633是否正在使用,但事实并非如此。我也尝试将端口更改为21633,但它仍然给我同样的错误。关于这一点的奇怪之处是我上周运行我的服务器(并在该服务器上运行我的应用程序)没有问题,但是当我昨天试图这样做时,此错误突然显示。我已经重启了我的WAS,甚至关闭了我的电脑几次,但无济于事。 Websphere没有作为Windows服务运行,我试图从eclipse运行它。但是,即使我尝试将它作为服务运行,我仍然得到相同的错误。我根本没有改变任何配置,所以我想知道什么可能会导致这种情况。
我的环境:Windows 7,Websphere Application Server 7.0.0.9

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

回答

0

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

是否有任何理由不能通过任何其他标准端口访问您的应用程序? IPC对于本地实例之间的高速通信非常重要。大多数Web应用程序访问都可以通过WC_defaulthost和WC_defaulthost_secure端口完成。

0

这是由于“localhost”的IP分辨率不正确。请ping本地主机,确保响应来自127.0.0.1(回送)或实际的主机IP本身。如果不是,修复它并且它将解决您的问题

1

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

1

我重复收到了这个错误,对于(看起来)每个WAS绑定的端口,即使没有人在WAS启动之前正在监听它们。

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

set IBM_JAVA_OPTIONS=-Djava.net.preferIPv4Stack=true 

(更改语法适合您的环境,当然)。

这是在Windows 8/8.5(开发者版)。

0

我在使用RAD 8.0的Windows 7上使用websphere v6.1时遇到了同样的问题。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的 - ”监听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 /运行时间/ base_v61 /简档/ was61profile1”; “IBM /的WebSphere /应用服务器/ BIN”; “IBM /的WebSphere /应用服务器/型材/ AppSrv1/bin” 中。这使得它很容易混淆,因为如果您将解决方案应用于错误的文件,它不会产生影响。
    • 要找到更新“setupCmdLine.bat”的正确文件夹,我进入了RAD - >服务器选项卡 - >右键单击Websphere服务器 - >属性 - > WebSphere Application Server v6.1菜单项。在右侧,有“配置文件目录”。
    • 对于我这样指出” .../IBM/SDP /运行时间/ base_v61 /型材/ was61profile1'
相关问题