Discussion:
[opennms-discuss] java.rmi.server.ExportException: Port already in use: 1099
Ren, Jian
2010-09-08 06:10:58 UTC
Permalink
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.
Ren, Jian
2010-09-08 06:05:26 UTC
Permalink
Hi, all

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.
Michael Seibold
2010-09-14 06:43:21 UTC
Permalink
cd $OPENNMS_HOME/etc
fgrep 1099 *
-> poller-config.properties

-Michael
Hi, all

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.



Ihr starker Gesundheitspartner – die neue BARMER GEK.
Gemeinsam. Noch besser! www.barmer-gek.de

Diese Nachricht der BARMER GEK kann vertrauliche firmeninterne Informationen enthalten. Sofern Sie nicht der beabsichtigte Empfänger sind, bitten wir Sie, den Absender zu informieren und die Nachricht sowie deren Anhänge zu löschen. Unzulässige Veröffentlichung, Verwendung, Verbreitung, Weiterleitung und das Kopieren dieser Mail und ihrer verknüpften Anhänge sind nicht gestattet.
sj.vardhan
2011-05-18 09:54:54 UTC
Permalink
Hi,

Any help with this port change requirement. I am also having similar issue.
Need to identify the changes to be done in OpenNMS to stop getting the Bind
exception on port 1199.

Thanks,
Jay.

--
View this message in context: http://opennms.530661.n2.nabble.com/java-rmi-server-ExportException-Port-already-in-use-1099-tp5509340p6377140.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.
psantann
2011-07-22 00:05:20 UTC
Permalink
I have the same issue as well.

--
View this message in context: http://opennms.530661.n2.nabble.com/java-rmi-server-ExportException-Port-already-in-use-1099-tp5509340p6608949.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.
psantann
2011-07-25 21:28:54 UTC
Permalink
I was able to get around this by moving the opennms-remoting folder out of
<INSTALL_DIR>/opennms/jetty-webapps. Once OpenNMS is restarted, it will no
longer try to deploy this app and therefore no more errors on jetty.log.

I would imagine that commenting out the entry on service-configuration.xml
should have the same effect but for some reason it did not worked for me
(and a few others). By the way, I'm running OpenNMS 1.8.12 on CentOS 5.6

--
View this message in context: http://opennms.530661.n2.nabble.com/java-rmi-server-ExportException-Port-already-in-use-1099-tp5509340p6620179.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.
Loading...