|
Re: Deploy rap on virgo with root as URL [message #740341 is a reply to message #739337] |
Tue, 18 October 2011 12:04 |
Rüdiger Herrmann Messages: 335 Registered: July 2009 |
Senior Member |
|
|
Hi,
to me it looks like "Web-ContextPath: /" actually takes effect. The
"rap" segment of the URL is the path to the servlet.
To get rid of that, you may try the following in the web.xml:
Map the RWT servlet to "/" like so
<servlet>
<servlet-name>rwtDelegate</servlet-name>
<servlet-class>org.eclipse.rwt.internal.engine.RWTDelegate</servlet-class>
</servlet>
....
<servlet-mapping>
<servlet-name>rwtDelegate</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
To avoid conflicts with resource-request, you will have to filter out
all requests to "rwt-resources" and have them served by the default
servlet (assuming that Virgo runs on Jetty):
<servlet>
<servlet-name>rwtResources</servlet-name>
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
</servlet>
....
<servlet-mapping>
<servlet-name>rwtResources</servlet-name>
<url-pattern>/rwt-resources/*</url-pattern>
</servlet-mapping>
Looking at the lengthy XML I admit that there is room for improvement...
but first, let's see if it actually works.
HTH
Rüdiger
On 17.10.2011 13:09, wouterr wrote:
> Hi,
>
> I'm trying to deploy a rap project on virgo and it's running well except
> for the following:
>
> Everytime I want to start the application, I have to point the
> browserurl to localhost/rap?startup=entry.point
>
> I tried several solutions to change the contextpath including adding
> Web-ContextPath: /
> to manifest.mf
>
> and adding <property name="header:Web-ContextPath" value="/" />
> to the project artifact in the plan file, and guess
>
> both ways don't work and I'm a bit lost right now.
>
> I simply want to point the baseurl of the server to the rap servlet with
> an entrypoint but there seems no way to do this. :?
> Is there anybody who can help me?
>
> Thanks in advance,
--
Rüdiger Herrmann
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03103 seconds