Unable to change Port. Mamute.properties doesn't change it from 8080

Hi all, I'm getting the following errors after it tries to connect to my database. From the error, it looks like its trying to bind to a port in use. I have several different web applications running on this server, already taking up 80, 8080, etc. Is there a way to change which port Jetty launches on?

Thanks, Matt

16:05:19 INFO [MigrationRunner ] Couldnt prepare tables: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.mamute.providers.SessionFactoryCreator.init() on org.mamute.providers.SessionFactoryCreator@5919d25d 16:05:19 INFO [MigrationRunner ] >>>> org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.mamute.providers.SessionFactoryCreator.init() on org.mamute.providers.SessionFactoryCreator@5919d25d at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81) at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:114) at org.jboss.weld.injection.producer.BeanInjectionTarget.postConstruct(BeanInjectionTarget.java:70) at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:737) at org.jboss.weld.injection.producer.AbstractMemberProducer.getReceiver(AbstractMemberProducer.java:128) at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:148) at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:183) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:98) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99) at org.jboss.weld.proxies.Referenceable$Serializable$SessionFactory$190645482$Proxy$$$_WeldClientProxy.openSession(Unknown Source) at org.mamute.migration.MigrationExecutor.begin(MigrationExecutor.java:32) at org.mamute.migration.MigrationExecutor$Proxy$$$WeldClientProxy.begin(Unknown Source) at org.mamute.migration.MigrationRunner.prepareTables(MigrationRunner.java:69) at org.mamute.migration.MigrationRunner.execute(MigrationRunner.java:58) at org.mamute.migration.MigrationRunner$Proxy$$$_WeldClientProxy.execute(Unknown Source) at org.mamute.preload.PreLoad.execute(PreLoad.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170) at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:124) at org.jboss.weld.event.EventImpl.fire(EventImpl.java:84) at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:92) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:753) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:258) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1213) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:263) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at br.com.caelum.vraptor.server.VRaptorServer.start(VRaptorServer.java:36) at br.com.caelum.vraptor.server.Main.main(Main.java:19) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98) ... 48 more Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at org.hibernate.cfg.Configuration.setProperty(Configuration.java:1937) at org.mamute.providers.SessionFactoryCreator.init(SessionFactoryCreator.java:84) ... 53 more

16:05:19 WARN [AbstractLifeCycle ] FAILED vraptor: java.lang.NullPointerException java.lang.NullPointerException at org.mamute.migration.MigrationExecutor.rollback(MigrationExecutor.java:46) at org.mamute.migration.MigrationExecutor$Proxy$$$_WeldClientProxy.rollback(Unknown Source) at org.mamute.migration.MigrationRunner.prepareTables(MigrationRunner.java:75) at org.mamute.migration.MigrationRunner.execute(MigrationRunner.java:58) at org.mamute.migration.MigrationRunner$Proxy$$$WeldClientProxy.execute(Unknown Source) at org.mamute.preload.PreLoad.execute(PreLoad.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170) at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:124) at org.jboss.weld.event.EventImpl.fire(EventImpl.java:84) at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:92) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:753) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:258) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1213) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:263) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at br.com.caelum.vraptor.server.VRaptorServer.start(VRaptorServer.java:36) at br.com.caelum.vraptor.server.Main.main(Main.java:19) 16:05:19 WARN [WebAppContext ] Failed startup of context o.e.j.w.WebAppContext{/,file:/data/bms/webapps/questionanswer/bms/mamute/} java.lang.NullPointerException at org.mamute.migration.MigrationExecutor.rollback(MigrationExecutor.java:46) at org.mamute.migration.MigrationExecutor$Proxy$$$WeldClientProxy.rollback(Unknown Source) at org.mamute.migration.MigrationRunner.prepareTables(MigrationRunner.java:75) at org.mamute.migration.MigrationRunner.execute(MigrationRunner.java:58) at org.mamute.migration.MigrationRunner$Proxy$$$_WeldClientProxy.execute(Unknown Source) at org.mamute.preload.PreLoad.execute(PreLoad.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174) at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:170) at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:124) at org.jboss.weld.event.EventImpl.fire(EventImpl.java:84) at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:92) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:753) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:258) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1213) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:263) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at br.com.caelum.vraptor.server.VRaptorServer.start(VRaptorServer.java:36) at br.com.caelum.vraptor.server.Main.main(Main.java:19) 16:05:19 WARN [AbstractLifeCycle ] FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:173) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:251) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.Server.doStart(Server.java:274) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at br.com.caelum.vraptor.server.VRaptorServer.start(VRaptorServer.java:36) at br.com.caelum.vraptor.server.Main.main(Main.java:19) 16:05:19 WARN [AbstractLifeCycle ] FAILED org.eclipse.jetty.server.Server@4df6d37: java.net.BindException: Address already in use java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:173) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:251) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.Server.doStart(Server.java:274) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at br.com.caelum.vraptor.server.VRaptorServer.start(VRaptorServer.java:36) at br.com.caelum.vraptor.server.Main.main(Main.java:19) Exception in thread "main" java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:444) at sun.nio.ch.Net.bind(Net.java:436) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:173) at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311) at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:251) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.Server.doStart(Server.java:274) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at br.com.caelum.vraptor.server.VRaptorServer.start(VRaptorServer.java:36) at br.com.caelum.vraptor.server.Main.main(Main.java:19)

  • I tried changing it in mamute.properties with the below setting, but it is still using port 8080:

    URL Domain.

    Change it in production.properties to put your real domain name.

    host=http://localhost:9007 home.url=/

    Matthew Holt   Jul 28th 2014
  1. You will see these arrows in every question page. They allow you to upvote/downvote according to the relevancy of the question/answer.
  2. Edit your question/answer if you wish to change it or update it.
  3. If you dont understand something about the question, leave a comment asking. The answer field should be only used for answers.
  4. If the author of a question mark an answer as solution, this mark will be visible.
  5. Click here to see more details about the operation of the system!

1 answer

It is not the answer you were looking for? Search other questions with the tags installing jetty or make your own question.