geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Geronimo fails on startup when Jetty port set to 80
Date Wed, 20 Apr 2005 03:13:58 GMT
isn't this because 80 is a privileged port and you have to be root to  
use it?

I am far from being a sysadmin but I thought the usual practice was to  
set up your firewall to forward to port 8080.

david jencks

On Apr 19, 2005, at 4:21 PM, Scott Anderson wrote:

>
> I went into modules/assembly/src/plan/j2ee-server-plan.xml and changed  
> the Jetty port from 8080 to 80, rebuilt the assembly module, and got  
> the following when I tried to start the server...
>
> 16:04:25,336 INFO  [Container] Started  
> org.apache.geronimo.jetty.JettyServer@4eb043
> 16:04:25,439 ERROR [GBeanInstance] Problem in doFail of  
> geronimo.server: 
> name=JettyWebConnector,J2EEServer=geronimo,J2EEApplication=null,j2eeTyp 
> e=GBean,J2EEModule=org/apache/geronimo/Server
> java.lang.NullPointerException
>        at org.mortbay.util.ThreadedServer.stop(ThreadedServer.java:544)
>        at org.mortbay.http.SocketListener.stop(SocketListener.java:211)
>        at  
> org.apache.geronimo.jetty.connector.JettyConnector.doFail(JettyConnecto 
> r.java:90)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanIns 
> tance.java:860)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(G 
> BeanInstanceState.java:331)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanc 
> eState.java:111)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.jav 
> a:477)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart 
> (GBeanSingleReference.java:149)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBea 
> nSingleReference.java:124)
>        at  
> org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(Abst 
> ractGBeanReference.java:244)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanS 
> ingleReference.java:158)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.fireRunningE 
> vent(BasicLifecycleMonitor.java:153)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.access$300(B 
> asicLifecycleMonitor.java:36)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor$RawLifecycle 
> Broadcaster.fireRunningEvent(BasicLifecycleMonitor.java:229)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(G 
> BeanInstanceState.java:354)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanc 
> eState.java:111)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBe 
> anInstanceState.java:133)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanIns 
> tance.java:494)
>        at  
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBe 
> anInstanceState.java:141)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanIns 
> tance.java:494)
>        at  
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339)
>        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:185)
> 16:04:25,447 ERROR [GBeanInstanceState] Error while starting; GBean is  
> now in the FAILED state:  
> objectName="geronimo.server: 
> name=JettyWebConnector,J2EEServer=geronimo,J2EEApplication=null,j2eeTyp 
> e=GBean,J2EEModule=org/apache/geronimo/Server"
> java.net.BindException: Permission denied
>        at java.net.PlainSocketImpl.socketBind(Native Method)
>        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>        at java.net.ServerSocket.bind(ServerSocket.java:319)
>        at java.net.ServerSocket.<init>(ServerSocket.java:185)
>        at  
> org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java: 
> 391)
>        at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477)
>        at  
> org.apache.geronimo.jetty.connector.JettyConnector.doStart(JettyConnect 
> or.java:71)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanIns 
> tance.java:841)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(G 
> BeanInstanceState.java:331)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanc 
> eState.java:111)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.jav 
> a:477)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart 
> (GBeanSingleReference.java:149)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBea 
> nSingleReference.java:124)
>        at  
> org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(Abst 
> ractGBeanReference.java:244)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanS 
> ingleReference.java:158)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.fireRunningE 
> vent(BasicLifecycleMonitor.java:153)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.access$300(B 
> asicLifecycleMonitor.java:36)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor$RawLifecycle 
> Broadcaster.fireRunningEvent(BasicLifecycleMonitor.java:229)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(G 
> BeanInstanceState.java:354)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanc 
> eState.java:111)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBe 
> anInstanceState.java:133)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanIns 
> tance.java:494)
>        at  
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBe 
> anInstanceState.java:141)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanIns 
> tance.java:494)
>        at  
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339)
>        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:185)
> 16:04:25,448 WARN  [GBeanSingleReference] Exception occured while  
> attempting to fully start:  
> objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/ 
> geronimo/ 
> Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector
> java.lang.IllegalStateException: Cannot transition to running state  
> from failed
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.setStateInstance(G 
> BeanInstanceState.java:497)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(G 
> BeanInstanceState.java:353)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanc 
> eState.java:111)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.jav 
> a:477)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart 
> (GBeanSingleReference.java:149)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBea 
> nSingleReference.java:124)
>        at  
> org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(Abst 
> ractGBeanReference.java:244)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanS 
> ingleReference.java:158)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.fireRunningE 
> vent(BasicLifecycleMonitor.java:153)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.access$300(B 
> asicLifecycleMonitor.java:36)
>        at  
> org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor$RawLifecycle 
> Broadcaster.fireRunningEvent(BasicLifecycleMonitor.java:229)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(G 
> BeanInstanceState.java:354)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanc 
> eState.java:111)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBe 
> anInstanceState.java:133)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanIns 
> tance.java:494)
>        at  
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBe 
> anInstanceState.java:141)
>        at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanIns 
> tance.java:494)
>        at  
> org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339)
>        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:185)
> 16:04:25,529 INFO  [HOWLLog] Initiating transaction manager recovery
> 16:04:25,565 WARN  [HOWLLog] Received unexpected log record:  
> org.objectweb.howl.log.xa.XALogRecord@b6ef8
> 16:04:25,565 INFO  [HOWLLog] In doubt transactions recovered from log
>
> I ran into the above failure on OS X (10.3.9)/JDK 1.4.2 as well as on  
> Fedora Core 3/JDK 1.5.
>
> I am also interested in testing whether Geronimo/Jetty can work with  
> Apache 1.3 or 2.0 using mod_jk...
>
>    http://jetty.mortbay.org/jetty/faq?s=700-Clustering&t=modjk
>
> If anyone has tried this, I'd appreciate hearing if it worked and if  
> there were any gotchas that I would need to account for.
>
> Scott
>


Mime
View raw message