Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Deploy rap on virgo with root as URL
Deploy rap on virgo with root as URL [message #739337] Mon, 17 October 2011 11:09 Go to next message
wouterr is currently offline wouterrFriend
Messages: 6
Registered: October 2011
Junior Member
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,
Re: Deploy rap on virgo with root as URL [message #740341 is a reply to message #739337] Tue, 18 October 2011 12:04 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
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/
Re: Deploy rap on virgo with root as URL [message #755664 is a reply to message #739337] Wed, 09 November 2011 09:10 Go to previous message
wouterr is currently offline wouterrFriend
Messages: 6
Registered: October 2011
Junior Member
Thanks for your reply, tried it but it wasn't working.

The way I solved it is by creating a httpservlet and redirect requests for root to the servlet.
Previous Topic:Deploy rap on virgo with root as URL
Next Topic:Ctrl+S with editor doesn't work with RAP (but works with RCP)
Goto Forum:
  


Current Time: Wed Apr 24 23:42:52 GMT 2024

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

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

Back to the top