Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Cannot start Equinox Server
Cannot start Equinox Server [message #130544] Sun, 03 May 2009 21:13 Go to next message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 92
Registered: July 2009
Member
Hello Everyone

I found an interesting article about using an equinox server for webapps
so it would be possible to host business-logic bundles that had been
used in an RCP before in a web application.

I am also following this page
http://www.eclipse.org/equinox/server/http_in_equinox.php which
describes what is necessary to get it running.

But thats exactly my problem. My application wont run. When I start, I
get the following StackTrace which tells me "Permission Denied"?

I am running on Kubuntu-Linux but eclipse is in my home-directory, so
this shouldnt be a problem.
I also used the argument -Dorg.eclipse.equinox.http.jetty.port=8080 to
change the listen port, but this seems to be ignored (according to the
stacktrace)

Stacktrace

WARNUNG: Failed to start: SocketListener0@0.0.0.0:80
org.osgi.framework.BundleException: Exception in
org.eclipse.equinox.http.jetty.internal.Activator.start() of bundle
org.eclipse.equinox.http.jetty.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1028)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:265)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:257)
at osgi.webserver.Activator.start(Activator.java:34)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:355)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1074)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:616)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:508)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:299)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:489)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:211)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:321)
Caused by: org.osgi.service.cm.ConfigurationException: default :
Multiple exceptions
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:95)
at
org.eclipse.equinox.http.jetty.internal.Activator.start(Acti vator.java:53)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:1003)
... 18 more
Caused by: org.mortbay.util.MultiException[java.net.BindException:
Permission denied]
at org.mortbay.http.HttpServer.doStart(HttpServer.java:686)
at org.mortbay.util.Container.start(Container.java:72)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager.up dated(HttpServerManager.java:93)
... 22 more
03.05.2009 21:02:21 org.mortbay.http.HttpServer doStart


My plugin has the following dependencies

org.eclipse.equinox.http.jetty;bundle-version="1.1.0"
org.eclipse.equinox.http.registry;bundle-version="1.0.100",
org.eclipse.equinox.jsp.jasper;bundle-version="1.0.100",
org.eclipse.equinox.jsp.jasper.registry;bundle-version="1.0.0 ",
javax.servlet;bundle-version="2.4.0",
javax.servlet.jsp;bundle-version="2.0.0"

and this is the actual code

Bundle jettyBundle = Platform.getBundle("org.eclipse.equinox.http.jetty");
Bundle httpRegistryBundle =
Platform.getBundle("org.eclipse.equinox.http.registry");
try{
jettyBundle.start();
httpRegistryBundle.start();
}catch(BundleException e){
e.printStackTrace();
}

The error is thrown at jettyBundle.start();

Can somebody help me out here.
Thanks
Re: Cannot start Equinox Server [message #130557 is a reply to message #130544] Mon, 04 May 2009 06:54 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Marc Schlegel schrieb:
> But thats exactly my problem. My application wont run. When I start, I
> get the following StackTrace which tells me "Permission Denied"?

In order to open a port below 1024 on Unix/Linux systems you need to be
"root".

> I also used the argument -Dorg.eclipse.equinox.http.jetty.port=8080 to
> change the listen port, but this seems to be ignored (according to the
> stacktrace)

Please use "-Dorg.osgi.service.http.port=8080".

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Cannot start Equinox Server [message #130582 is a reply to message #130557] Mon, 04 May 2009 17:36 Go to previous messageGo to next message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 92
Registered: July 2009
Member
Gunnar Wagenknecht schrieb:
> Marc Schlegel schrieb:
>> But thats exactly my problem. My application wont run. When I start, I
>> get the following StackTrace which tells me "Permission Denied"?
>
> In order to open a port below 1024 on Unix/Linux systems you need to be
> "root".
>
>> I also used the argument -Dorg.eclipse.equinox.http.jetty.port=8080 to
>> change the listen port, but this seems to be ignored (according to the
>> stacktrace)
>
> Please use "-Dorg.osgi.service.http.port=8080".
>
> -Gunnar
>
Thanks. Runs smoothly now :)
Re: Cannot start Equinox Server [message #512086 is a reply to message #130557] Wed, 03 February 2010 20:54 Go to previous message
Igor Ganapolsky is currently offline Igor GanapolskyFriend
Messages: 39
Registered: July 2009
Location: New York
Member

Perfect, solved my problem.
Previous Topic:categorizing p2 repositories dynamically on a CI server for features with qualifiers
Next Topic:Eclipse feature/plugin integrity validation
Goto Forum:
  


Current Time: Sat Apr 20 03:05:05 GMT 2024

Powered by FUDForum. Page generated in 0.02817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top