Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Redirecting Requests to Root Path Entry Point
Redirecting Requests to Root Path Entry Point [message #1258376] Thu, 27 February 2014 10:13 Go to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 53
Registered: October 2011
Member
Hi!

We recently upgraded to Rap 2.3 and are happy to use the root path entry point.
We have only one minor problem with it. When the application is deployed as WAR, it is not possible to access it on a URL without a trailing slash. Instead a white page is shown.

http://localhost:8080/example -> white page
http://localhost:8080/example/ -> our app

When we look at the source code of the white page it turns out to be the regular starting page of RAP, including the JS libs, setting our page title and so on.

We tried redirecting the request in the web.xml by creating a servlet mapping like this, which unfortunately does not help.
	<servlet-mapping>
		<servlet-name>equinoxbridgeservlet</servlet-name>
		<url-pattern></url-pattern>
	</servlet-mapping>


We also tried to configure an empty entry point, which is not allowed.

Is it possible to redirect the request somehow?

Greetings,
Tibu

[Updated on: Thu, 27 February 2014 10:14]

Report message to a moderator

Re: Redirecting Requests to Root Path Entry Point [message #1259417 is a reply to message #1258376] Fri, 28 February 2014 10:55 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1295
Registered: July 2009
Senior Member

Hi Tibu,

this redirect is usually done by the servlet container. For example,
when you run an application from the IDE, Jetty redirects /example to
/example/ before the RWTServlet is even called. This doesn't seem to
work in the WAR deployment.

We'll look into this problem. Could you open a bug for it?

Regards,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Redirecting Requests to Root Path Entry Point [message #1262158 is a reply to message #1259417] Mon, 03 March 2014 10:17 Go to previous message
Tiburon T is currently offline Tiburon TFriend
Messages: 53
Registered: October 2011
Member
Hi Ralf,

thanks for your feedback on the issue!

The bugreport I created can be found here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=429443

Greetings,
Tibu
Previous Topic:Workbench not working properly with Firefox
Next Topic:Deploying RAP Application
Goto Forum:
  


Current Time: Fri Nov 28 11:24:00 GMT 2014

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

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