Skip to main content


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: 61
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: 1313
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 messageGo to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 61
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
Re: Redirecting Requests to Root Path Entry Point [message #1714278 is a reply to message #1262158] Wed, 11 November 2015 09:40 Go to previous message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 192
Registered: February 2013
Senior Member
old problem
Now Could i refuse entry point (empty)?

<servlet-mapping>
<servlet-name>rwtServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

Dmitry
Previous Topic:RAP in Geronimo/EJB lookups
Next Topic:Uncaught errors WAS8 + Chrome
Goto Forum:
  


Current Time: Tue Apr 23 14:58:43 GMT 2024

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

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

Back to the top