Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » org.eclipse.equinox.http.servlet fails to get the right paths
org.eclipse.equinox.http.servlet fails to get the right paths [message #1839499] Mon, 22 March 2021 19:42 Go to next message
Pablo  eltrán is currently offline Pablo eltránFriend
Messages: 20
Registered: November 2014
Junior Member
Hi,

Some logic in the org.eclipse.equinox.http.servlet plugin to initialize

org.eclipse.equinox.http.servlet.internal.context.DispatchTargets

does not have any sense.

The alias is rightly calculated as:

requestUri.substring(contextPath.length() + servletPath.length());

by removing the contextPath and the servletPath from the requestUri.

However, the same alias is used later as input for the constructor of the
org.eclipse.equinox.http.servlet.internal.context.DispatchTargets class and it replaces the original requestUri value. Why??

As result, the contextPath and the servletPath values are lost when required by third-party software.

A real case: the Apache Felix Webconsole does not work in an Equinox Servlet Container with a servletPath.

If the original requestURI is:

/contextPath/servletPath/system/console

The alias is rightly calculated: "/system/console"

However, the contextPath and the servletPath are lost and the Felix Web Console redirects for initialization to

/system/console/bundles

instead of

/contextPath/servletPath/system/console/bundles

Bests regards,
Pablo

FYI: The Webconsole works with the older 1.1.500 version but not with the newer 1.6.600.

Re: org.eclipse.equinox.http.servlet fails to get the right paths [message #1839550 is a reply to message #1839499] Tue, 23 March 2021 18:33 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Can you provide a bit more details on the environment you are running this? I think you must be running from the servlet bridge inside a WAR, but I am not sure given your description.

If I try to switch from using the default '/' context root with the equinox.http.jetty support the web console still works for me. But I suspect that is different than what you are doing.
Previous Topic:Controlling dependency startLevel
Next Topic:[Http Service] Invalid session id change event
Goto Forum:
  


Current Time: Thu Apr 25 09:12:12 GMT 2024

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

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

Back to the top