certainly on unix-like systems you need special OS permissions to open 
low-numbered ports.  I'm pretty sure that's the reason for the Permission 
denied message.  Try using port 8090 or 8081, something near 8080.

david jencks

On Sep 2, 2012, at 11:52 AM, Dileepa Jayakody wrote:

> Hi all,
> 
> I've been running into the below [1] issue when trying to deploy 
> org.eclipse.equinox.http bundle and starting it. My goal is to somehow get 
> Geronimo support osgi http service. 
> Since the runtime was complaining about a port bind issue, I tried below 
> methods;
> 
> 1. changing default http port to 100 in the org.eclipse.equinox.http bundle
> 2. pass -Dorg.osgi.service.http.port=100 
> 
> In both above methods I got the same error, although the http Port was 
> changed to 100 in method:1. The runtime was still complaining about a port 
> bind error as below.
> Can someone help me in identifying the root cause of this?
> 
> Thanks,
> Dileepa
> [1]
> [2012-09-02 23:39:16,995] ERROR {org.eclipse.equinox.http} -  Port 80 is use
> java.net.BindException: Permission denied
>     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.eclipse.equinox.http.HttpServerSocket.<init>(HttpServerSocket.java:48)
>     at 
> org.eclipse.equinox.http.HttpConfiguration.createServerSocket(HttpConfiguration.java:220)
>     at 
> org.eclipse.equinox.http.HttpListener.setProperties(HttpListener.java:109)
>     at org.eclipse.equinox.http.HttpListener.<init>(HttpListener.java:56)
>     at 
> org.eclipse.equinox.http.HttpConfiguration.createDefaultListeners(HttpConfiguration.java:138)
>     at 
> org.eclipse.equinox.http.HttpConfiguration.initialize(HttpConfiguration.java:102)
>     at 
> org.eclipse.equinox.http.HttpConfiguration.<init>(HttpConfiguration.java:90)
>     at org.eclipse.equinox.http.Http.start(Http.java:70)
>     at org.eclipse.equinox.http.Activator.start(Activator.java:33)
>     at 
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at 
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
>     at 
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
>     at 
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
>     at 
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
>     at 
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:291)
>     at 
> org.apache.geronimo.console.bundlemanager.BundleManagerPortlet.processAction(BundleManagerPortlet.java:207)
>     at 
> org.apache.pluto.driver.services.container.FilterChainImpl.doFilter(FilterChainImpl.java:117)
>     at 
> org.apache.pluto.driver.services.container.FilterChainImpl.processFilter(FilterChainImpl.java:84)
>     at 
> org.apache.pluto.driver.services.container.FilterManagerImpl.processFilter(FilterManagerImpl.java:112)
>     at 
> org.apache.pluto.container.driver.PortletServlet.dispatch(PortletServlet.java:359)
>     at 
> org.apache.pluto.container.driver.PortletServlet.doGet(PortletServlet.java:261)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
>     at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
>     at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
>     at 
> org.apache.pluto.driver.container.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:233)
>     at 
> org.apache.pluto.driver.container.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:101)
>     at 
> org.apache.pluto.container.impl.PortletContainerImpl.doAction(PortletContainerImpl.java:251)
>     at 
> org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:135)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at 
> org.apache.geronimo.console.filter.RedirectByHashFilter.doFilter(RedirectByHashFilter.java:116)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at 
> org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:48)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at 
> org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:137)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
>     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>     at 
> org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:89)
>     at 
> org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)
>     at 
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:730)
>     at 
> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:48)
>     at 
> org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
>     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>     at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>     at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
>     at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>     at 
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
>     at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
>     at 
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:662)
> 
> 
> On Tue, Aug 28, 2012 at 1:10 PM, Ivan <[email protected]> wrote:
> Yes, Tomcat is the sevlet container provider if you are using geronimo tomcat 
> assembly.
> 
> 
> 2012/8/28 Dileepa Jayakody <[email protected]>
> Hi Ivan,
> 
> On Mon, Aug 27, 2012 at 9:31 PM, Ivan <[email protected]> wrote:
> After having a glance at the jar file, it is required to involve a servlet 
> container to serve the http service function. Think the link below should be 
> helpful. 
> 
> Geronimo provides tomcat as the servlet container under the hood isn't it? 
> 
> Thanks,
> Dileepa 
>  
> [1]  http://www.eclipse.org/equinox/server/http_in_container.php 
> 
> 
> 2012/8/27 Dileepa Jayakody <[email protected]>
> 
> 
> On Mon, Aug 27, 2012 at 6:56 PM, Ivan <[email protected]> wrote:
> If the bundle is really installed, all the things will be taken over by OSGi 
> environment. Is the bundle in active status ?
> 
> Yes Ivan, it is in active state but there's no services registered by the 
> org.eclipse.equinox.http.servlet bundle.
> Does Geronimo support osgi http service by default?
> 
> Thanks,
> Dileepa 
> 
> 2012/8/27 Dileepa Jayakody <[email protected]>
> Hi All,
> 
> I have a set of bundles deployed in Geronimo 
> (geronimo-tomcat7-javaee6-web-3.0.0) which need to use OSGi http service.
> I couldn't find a default bundle in Geronimo which registers 
> org.osgi.service.http.HttpService so I installed 
> org.eclipse.equinox.http.servlet.1.0.0.200704022148 and started the bundle.
> However it seems the bundle doesn't register the httpService (After the 
> bundle starts, there's no registered services listed under the bundle) 
> 
> Can someone please help me to get osgi httpService up and running so that my 
> bundles can use it to register servlets and resources? 
> 
> Thanks,
> Dileepa
> 
> 
> 
> 
> 
> -- 
> Ivan
> 
> 
> 
> 
> 
> 
> -- 
> Ivan
> 
> 
> 
> -- 
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
> 
> Mobile : +94777-857616
> 
> 
> 
> 
> -- 
> Ivan
> 
> 
> 
> -- 
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
> 
> Mobile : +94777-857616
> 

Reply via email to