I've configured Apache HTTPD to fronted Ofbiz on port 80 / 433. I see the following error on the Ofbiz console - suggesting that Ofbiz is unable to bind to port 80 & 433. That said the HTTPD server is responding fine as it is communicating with Ofbiz on AJP port 8009.
So I'm wondering if this is something that should be fixed or can be ignored. Please advise .. 2012-08-17 15:38:06,720 (main) [ AbstractProtocol.java:419:ERROR] Failed to initialize end point associated with ProtocolHandler ["http-bio-0.0.0.0-80"] java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:80 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:956) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) ... 15 more 2012-08-17 15:38:06,725 (main) [ StandardService.java:563:ERROR] Failed to initialize connector [Connector[HTTP/1.1-80]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-80]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:958) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 10 more Caused by: java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:80 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:956) ... 11 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) ... 15 more 2012-08-17 15:38:06,785 (main) [ AbstractProtocol.java:419:ERROR] Failed to initialize end point associated with ProtocolHandler ["http-bio-0.0.0.0-443"] java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:443 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:956) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106) at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108) at com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:170) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) ... 15 more 2012-08-17 15:38:06,786 (main) [ StandardService.java:563:ERROR] Failed to initialize connector [Connector[HTTP/1.1-443]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-443]] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) at org.ofbiz.base.start.Start.start(Start.java:337) at org.ofbiz.base.start.Start.main(Start.java:139) Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed at org.apache.catalina.connector.Connector.initInternal(Connector.java:958) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 10 more Caused by: java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:443 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:956) ... 11 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106) at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108) at com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:170) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383)
Rgds
Sanjeev Gupta www.digitalwebadvisors.com |
If your httpd is running on 80 , then make sure http connector in
ofbiz-containers.xml is not configured at this port. On Sat, Aug 18, 2012 at 2:43 PM, Sanjeev Gupta <[hidden email]>wrote: > I've configured Apache HTTPD to fronted Ofbiz on port 80 / 433. I see the > following error on the Ofbiz console - suggesting that Ofbiz is unable to > bind to port 80 & 433. That said the HTTPD server is responding fine as it > is communicating with Ofbiz on AJP port 8009. > So I'm wondering if this is something that should be fixed or can be > ignored. Please advise .. > > > 2012-08-17 15:38:06,720 (main) [ AbstractProtocol.java:419:ERROR] Failed > to initialize end point associated with ProtocolHandler > ["http-bio-0.0.0.0-80"] > java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:80 > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at > > org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55) > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > ... 15 more > 2012-08-17 15:38:06,725 (main) [ StandardService.java:563:ERROR] Failed > to initialize connector [Connector[HTTP/1.1-80]] > org.apache.catalina.LifecycleException: Failed to initialize component > [Connector[HTTP/1.1-80]] > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > at > > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: org.apache.catalina.LifecycleException: Protocol handler > initialization failed > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:958) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > ... 10 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > /0.0.0.0:80 > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > ... 11 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at > > org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55) > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > ... 15 more > 2012-08-17 15:38:06,785 (main) [ AbstractProtocol.java:419:ERROR] Failed > to initialize end point associated with ProtocolHandler > ["http-bio-0.0.0.0-443"] > java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:443 > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106) > at > > com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108) > at > > com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72) > at > > org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:170) > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > ... 15 more > 2012-08-17 15:38:06,786 (main) [ StandardService.java:563:ERROR] Failed > to initialize connector [Connector[HTTP/1.1-443]] > org.apache.catalina.LifecycleException: Failed to initialize component > [Connector[HTTP/1.1-443]] > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > at > > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: org.apache.catalina.LifecycleException: Protocol handler > initialization failed > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:958) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > ... 10 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > /0.0.0.0:443 > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > ... 11 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106) > at > > com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108) > at > > com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72) > at > > org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:170) > at > org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > > > > ----- > Rgds > Sanjeev > www.sanjeevg.com > @sanjeevgcom > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Ofbiz-and-Apache-HTTPD-tp4635813.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- > Thanks, > Deepak Agarwal, > > Paxcel Technologies Pvt Ltd. > Hartron Complex, Sector 18, Gurgaon, India. > E-Mail: [hidden email] > Mobile: +91 9910322604 > > |
Administrator
|
In reply to this post by Sanjeev Gupta
Dis you check
https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-ApacheHTTPD(ApacheWebserver) ? Jacques From: "Sanjeev Gupta" <[hidden email]> > I've configured Apache HTTPD to fronted Ofbiz on port 80 / 433. I see the > following error on the Ofbiz console - suggesting that Ofbiz is unable to > bind to port 80 & 433. That said the HTTPD server is responding fine as it > is communicating with Ofbiz on AJP port 8009. > So I'm wondering if this is something that should be fixed or can be > ignored. Please advise .. > > > 2012-08-17 15:38:06,720 (main) [ AbstractProtocol.java:419:ERROR] Failed > to initialize end point associated with ProtocolHandler > ["http-bio-0.0.0.0-80"] > java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:80 > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at > org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55) > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > ... 15 more > 2012-08-17 15:38:06,725 (main) [ StandardService.java:563:ERROR] Failed > to initialize connector [Connector[HTTP/1.1-80]] > org.apache.catalina.LifecycleException: Failed to initialize component > [Connector[HTTP/1.1-80]] > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > at > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: org.apache.catalina.LifecycleException: Protocol handler > initialization failed > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:958) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > ... 10 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > /0.0.0.0:80 > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > ... 11 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at > org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55) > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > ... 15 more > 2012-08-17 15:38:06,785 (main) [ AbstractProtocol.java:419:ERROR] Failed > to initialize end point associated with ProtocolHandler > ["http-bio-0.0.0.0-443"] > java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:443 > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106) > at > com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108) > at > com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72) > at > org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:170) > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > ... 15 more > 2012-08-17 15:38:06,786 (main) [ StandardService.java:563:ERROR] Failed > to initialize connector [Connector[HTTP/1.1-443]] > org.apache.catalina.LifecycleException: Failed to initialize component > [Connector[HTTP/1.1-443]] > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106) > at > org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) > at > org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:238) > at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) > at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362) > at org.ofbiz.base.start.Start.start(Start.java:337) > at org.ofbiz.base.start.Start.main(Start.java:139) > Caused by: org.apache.catalina.LifecycleException: Protocol handler > initialization failed > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:958) > at > org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) > ... 10 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > /0.0.0.0:443 > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393) > at > org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:566) > at > org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:417) > at > org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) > at > org.apache.catalina.connector.Connector.initInternal(Connector.java:956) > ... 11 more > Caused by: java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.<init>(ServerSocket.java:194) > at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:106) > at > com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:108) > at > com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:72) > at > org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:170) > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:383) > > > > ----- > Rgds > Sanjeev > www.sanjeevg.com > @sanjeevgcom > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-and-Apache-HTTPD-tp4635813.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
@Deepak : the documentation actually suggests that we have Apache & ofbiz use ports 80 & 433. I think if we have ofbiz use different ports (8080 & 8443) than HTTPD (80 & 443) , the urls generate by Ofbiz (with port 8080 & 8443) will not work on HTTPD.
@Jacques Yes I followed the documentation for configuring HTTPD.
Rgds
Sanjeev Gupta www.digitalwebadvisors.com |
clarity. if you run ofbiz as a standalone tomcat server it does not
interact with HTTPD, but is in competition for the ports. if you run ofbiz as a proxy through HTTPD, then ports are not in competition since you using 8019 port. you still need to configure ofbiz to return the proper posts in the config file. Sanjeev Gupta sent the following on 8/18/2012 9:58 AM: > @Deepak : the documentation actually suggests that we have Apache& ofbiz use > ports 80& 433. I think if we have ofbiz use different ports (8080& 8443) > than HTTPD (80& 443) , the urls generate by Ofbiz (with port 8080& 8443) > will not work on HTTPD. > > @Jacques Yes I followed the documentation for configuring HTTPD. > > > > ----- > Rgds > Sanjeev > www.sanjeevg.com > @sanjeevgcom > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-and-Apache-HTTPD-tp4635813p4635826.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
I guess I was making an incorrect assumptions. I now have HTTPD running 80 & 443, while Ofbiz is running on 8080 & 8443. I'm able to access Ofbiz both through HTTPD ports as well as Catalina ports.
I think we should updated the Ofbiz documentation too that suggests that we update the Ofbiz ports to 80 & 443.
Rgds
Sanjeev Gupta www.digitalwebadvisors.com |
Free forum by Nabble | Edit this page |