[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Problem with help contents in RCP application(embebed http server)

I have solved the problem.
The firewall was blocking the port for eclipse application.


2009/8/28 Carlos M <carlos.m.dev@xxxxxxxxx>
Hi.
 
I have added org.eclipse.equinox.http.jetty and its dependencies, and now, when I execute de RCP application, it throws the next exception:
 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
!MESSAGE Help cannot be displayed.  The embedded application server could not run help web application.
!STACK 0
org.osgi.service.cm.ConfigurationException: org.eclipse.equinox.http.jetty.JettyConfigurator.help : Multiple exceptions
 at org.eclipse.equinox.http.jetty.internal.HttpServerManager.updated(HttpServerManager.java:95)
 at org.eclipse.equinox.http.jetty.internal.Activator.startServer(Activator.java:209)
 at org.eclipse.equinox.http.jetty.JettyConfigurator.startServer(JettyConfigurator.java:43)
 at org.eclipse.help.internal.server.WebappManager.start(WebappManager.java:46)
 at org.eclipse.help.internal.base.BaseHelpSystem.ensureWebappRunning(BaseHelpSystem.java:187)
 at org.eclipse.help.internal.base.HelpDisplay.displayHelpURL(HelpDisplay.java:145)
 at org.eclipse.help.internal.base.HelpDisplay.displayHelp(HelpDisplay.java:39)
 at org.eclipse.help.ui.internal.DefaultHelpUI.displayHelp(DefaultHelpUI.java:127)
 at org.eclipse.ui.internal.help.WorkbenchHelpSystem.displayHelp(WorkbenchHelpSystem.java:833)
 at org.eclipse.ui.internal.actions.HelpContentsAction$1.run(HelpContentsAction.java:83)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
 at org.eclipse.ui.internal.actions.HelpContentsAction.run(HelpContentsAction.java:81)
 at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
 at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
 at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
 at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at bbbb.Application.start(Application.java:20)
 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: org.mortbay.util.MultiException[java.net.SocketException: Permission denied: listen failed]
 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.updated(HttpServerManager.java:93)
 ... 39 more
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
The message indicates that "The embedded application server could not run help web application.". Is it due to problems with ports or wants to say that jetty is inappropriate for run help contents?
To solve this problem with help contents in RCP application, can we use the plugin "org.eclipse.tomcat" like alternative?
 
Thanks a lot.
Carlos.


 
2009/8/28 Simon Kaegi <simon.kaegi@xxxxxxxxx>

"org.eclipse.equinox.http" contains a slimmed down Http Service implementation that we use in embedded use cases. Relevant to your case this implementation is not able to support the Eclipse Help systems Servlet and JSP needs.
 
You want the implementation in org.eclipse.equinox.http.jetty as well as it's dependencies.
 
HTH
-Simon
 
 
 
----- Original Message -----
From: Carlos M
Sent: Friday, August 28, 2009 7:49 AM
Subject: [equinox-dev] Problem with help contents in RCP application(embebed http server)

Hi.

I have some configuration problems in RCP product related with help system.
"Help contents" option works fine if it's executed inside eclipse workbench, but if I export the product to other localization, the help doesn't work.

It throws the next exception: java.lang.NoClassDefFoundError: org/eclipse/equinox/http/jetty/JettyConfigurator
(This is very uncommon because the plugin that contains that class is in the list for product dependencies)

I suppose that help contents run on http server (jetty) and by any reason, this server is needed to be configurated in any way.
I have tried to change the config.ini file in the installation, appending the next:

                          org.eclipse.equinox.http@3:start, org.eclipse.equinox.http.registry@start"

for the property "osgi.bundles".
Before that I have included a dependency in my plugin: "org.eclipse.equinox.http.registry".

However, it produces a error with org.eclipse.equinox.http@3:start

I don't know how I can configurate equinox for that RCP workbench.

Thanks in advance,
Carlos.












_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev