Ren, Jian
2010-09-08 06:10:58 UTC
Hi,
In our project, OpenNMS have to co-exist with JBoss.
When we try to start OpenNMS, we find port 1099 conflict. Then we disable PollerBackEnd based on the following topic.
http://www.opennms.org/wiki/FAQ-Troubleshooting#Q:_OpenNMS_doesn.27t_startup_with_the_error_with_the_.22pollerBackEnd.22:_.22Port_already_in_use:_1099.22
Now OpenNMS can startup properly. poller back is disabled. And polling, data collection, events and alarms work fine.
Unfortunately, jetty cannot startup properly. We cannot login the webpage.
We check jetty.log and find BindException come again.
2010-09-08 13:15:45,317 ERROR [Main] log: Failed startup of context ***@722bfe37{/opennms-remoting,/opt/opennms/jetty-webapps/opennms-remoting}<mailto:***@722bfe37%7b/opennms-remoting,/opt/opennms/jetty-webapps/opennms-remoting%7d>
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [pollerBackEndContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pollerBackEndContext' defined in URL [jar:file:/opt/opennms/lib/opennms-services-1.8.1.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pollerBackEnd-rmi' defined in class path resource [META-INF/opennms/applicationContext-exportedPollerBackEnd-rmi.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use
is there anybody who knows where to define the port in opennms or how to disable it in jetty?
Thanks
___________________________________________________________________________________________________________________________________
Ren Jian
Unisys China | tel +86-10-85183232-606 | HP +86-13911198146
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
In our project, OpenNMS have to co-exist with JBoss.
When we try to start OpenNMS, we find port 1099 conflict. Then we disable PollerBackEnd based on the following topic.
http://www.opennms.org/wiki/FAQ-Troubleshooting#Q:_OpenNMS_doesn.27t_startup_with_the_error_with_the_.22pollerBackEnd.22:_.22Port_already_in_use:_1099.22
Now OpenNMS can startup properly. poller back is disabled. And polling, data collection, events and alarms work fine.
Unfortunately, jetty cannot startup properly. We cannot login the webpage.
We check jetty.log and find BindException come again.
2010-09-08 13:15:45,317 ERROR [Main] log: Failed startup of context ***@722bfe37{/opennms-remoting,/opt/opennms/jetty-webapps/opennms-remoting}<mailto:***@722bfe37%7b/opennms-remoting,/opt/opennms/jetty-webapps/opennms-remoting%7d>
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [pollerBackEndContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pollerBackEndContext' defined in URL [jar:file:/opt/opennms/lib/opennms-services-1.8.1.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pollerBackEnd-rmi' defined in class path resource [META-INF/opennms/applicationContext-exportedPollerBackEnd-rmi.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use
is there anybody who knows where to define the port in opennms or how to disable it in jetty?
Thanks
___________________________________________________________________________________________________________________________________
Ren Jian
Unisys China | tel +86-10-85183232-606 | HP +86-13911198146
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.