reavels
16 years agoNew Contributor
loadui-agent "address already in use" issue
I am trying to get a loadUI agent running on a CentOS4 box.
I have two issues depending on how I install loadUI-agent-beta2:
Issue 1: If I run the loadUI-Agent-amd64-1_0-beta2.sh I get a java issue where it assumes (the embedded JRE) that I have a /etc/java-6-sun. very dumb! It should look at JAVA_HOME. This embedded JRE is a bad idea if its not a 100% complete JRE.
Issue 2: If I run the binary zip/tar.gz then it is saying there is an address in use. Unfortunately it doesn't tell me WHICH address. I'm guessing its 8080, since that is in use by another application, but I've changed the conf/config.properties file (org.osgi.service.http.port) to avoid that conflict already.
log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.
log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
log4j:ERROR [8.0] whereas object of type
log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [sun.misc.Launcher$ExtClassLoader@1f7182c1].
log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
org.eclipse.jetty.server.Server@28ae4646 STOPPED
+-ServletContextHandler@13cc0a7f@13cc0a7f/,null started
+-ServletHandler@4013fba1 started
+-null
+-=>com.eviware.loadui.http.StatusServlet-646107664
ERROR: Error starting file:/home/sreavely/loadUI-Agent-1.0-beta2/bundle/loadui-http-server-1.0-beta2.jar (org.osgi.framework.BundleException: Activator start error in bundle com.eviware.loadui.http-server [28].)
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:208)
at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:288)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.Server.doStart(Server.java:239)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at com.eviware.loadui.http.HttpServerActivator.start(HttpServerActivator.java:77)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1862)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1779)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)
I have two issues depending on how I install loadUI-agent-beta2:
Issue 1: If I run the loadUI-Agent-amd64-1_0-beta2.sh I get a java issue where it assumes (the embedded JRE) that I have a /etc/java-6-sun. very dumb! It should look at JAVA_HOME. This embedded JRE is a bad idea if its not a 100% complete JRE.
Issue 2: If I run the binary zip/tar.gz then it is saying there is an address in use. Unfortunately it doesn't tell me WHICH address. I'm guessing its 8080, since that is in use by another application, but I've changed the conf/config.properties file (org.osgi.service.http.port) to avoid that conflict already.
log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not assignable to a "org.apache.log4j.spi.Configurator" variable.
log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
log4j:ERROR [8.0] whereas object of type
log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by [sun.misc.Launcher$ExtClassLoader@1f7182c1].
log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigurator].
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
org.eclipse.jetty.server.Server@28ae4646 STOPPED
+-ServletContextHandler@13cc0a7f@13cc0a7f/,null started
+-ServletHandler@4013fba1 started
+-null
+-=>com.eviware.loadui.http.StatusServlet-646107664
ERROR: Error starting file:/home/sreavely/loadUI-Agent-1.0-beta2/bundle/loadui-http-server-1.0-beta2.jar (org.osgi.framework.BundleException: Activator start error in bundle com.eviware.loadui.http-server [28].)
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:208)
at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:288)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.Server.doStart(Server.java:239)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at com.eviware.loadui.http.HttpServerActivator.start(HttpServerActivator.java:77)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1862)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1779)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:619)