我正在尝试使用Hazelcast 3.2.4管理中心启动TC Server 3.2.4 Tomcat 7.但即使它似乎在日志中没有错误启动,我也无法访问该页面:
在Tomcat.log中我可以看到
Line 203004: INFO: Deploying web application archive /vc2cmmkb019231n/app/pm13/process-1.3-build317/instances/vm1/webapps/mancenter-3.2.4.war
Line 203016: INFO: notifyApplicationLifecycle(localhost|mancenter-3.2.4)[START]
Line 203018: WARNING: handleStartEvent(localhost|mancenter-3.2.4)[START] failed (ConnectException) to send ping: No current registered listener
Line 204206: INFO: notifyApplicationLifecycle(localhost|mancenter-3.2.4)[STOP]
表示mancenter已启动和停止,但是当我尝试访问该网页时:
http://my-host-name:8080/mancenter-3.2.4/
它没有加载。
我使用以下hazelcast spring配置:
<bean id="hcMonitorInstance" class="com.hazelcast.core.Hazelcast" destroy-method="shutdown" factory-method="newHazelcastInstance">
<constructor-arg>
<bean class="com.hazelcast.config.Config">
<property name="instanceName" value="hcMonitorInstanceConfig"/>
<property name="groupConfig">
<bean class="com.hazelcast.config.GroupConfig">
<property name="name" value="${px-monitor-monitor.com.hazelcast.config.GroupConfig.name}"/>
<property name="password" value="${px-monitor-monitor.com.com.hazelcast.config.GroupConfig.password}"/>
</bean>
</property>
<property name="networkConfig">
<bean class="com.hazelcast.config.NetworkConfig">
<property name="join" ref="join"/>
<property name="port" value="${px-monitor-monitor.hazelcastInstanceConfig.port}"/>
<property name="portAutoIncrement" value="true"/> <!--THIS is FALSE in CIWS-->
<property name="interfaces">
<bean class="com.hazelcast.config.InterfacesConfig">
<property name="interfaces">
<list>
<value>*</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
<property name="managementCenterConfig">
<bean class="com.hazelcast.config.ManagementCenterConfig">
<property name="enabled" value="${hz.management.center.enabled}"/>
<property name="url" value="${hz.management.center.url}"/>
</bean>
</property>
</bean>
</constructor-arg>
</bean>
关于它为什么不启动的任何想法?我也查看了Catalina.out中的错误,但没有出现。我也试过点击http://my-host:8080/mancenter/
,但这也不起作用。我可以看到在tomcat webapps文件夹中展开的Web应用程序看起来是正确的。
答案 0 :(得分:1)
运行java -version
。如果它是1.8.0_91那么那就是罪魁祸首。以下是你做的事情
java -jar mancenter-3.6.2.war 8200 mancenter
类似的东西;我在端口8200上运行它,以免与在8080上运行的现有应用程序冲突当没有创建用户时,似乎java 1.8.0_91出现问题。如果有效,请告诉我。