Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP war file and jsp files
RAP war file and jsp files [message #509905] Mon, 25 January 2010 13:12 Go to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Hi,

I successfully deployed a RAP application (derived it from the demo provided
in the RAP help). The web.xml contains the following section:

> <!--
> This is required if your application bundles expose JSPs.
> -->
> <servlet-mapping>
> <servlet-name>equinoxbridgeservlet</servlet-name>
> <url-pattern>*.jsp</url-pattern>
> </servlet-mapping>

I tried to add two jsp files (for FORM authentication), but I get a 404
error:

> HTTP Status 404 - ProxyServlet: /tradescape/login.jsp
>
> type Status report
>
> message ProxyServlet: /tradescape/login.jsp
>
> description The requested resource (ProxyServlet: /tradescape/login.jsp)
is not available.

My guess is that I need to do something more, but searching the net did not
deliver any useful information.

Any help is appreciated.

Lothar
Re: RAP war file and jsp files [message #509907 is a reply to message #509905] Mon, 25 January 2010 18:12 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Did you read this?
http://www.eclipse.org/equinox/server/jsp_support.php

On 25.01.2010 18:59, Lothar Werzinger wrote:
> Hi,
>
> I successfully deployed a RAP application (derived it from the demo provided
> in the RAP help). The web.xml contains the following section:
>
>> <!--
>> This is required if your application bundles expose JSPs.
>> -->
>> <servlet-mapping>
>> <servlet-name>equinoxbridgeservlet</servlet-name>
>> <url-pattern>*.jsp</url-pattern>
>> </servlet-mapping>
>
> I tried to add two jsp files (for FORM authentication), but I get a 404
> error:
>
>> HTTP Status 404 - ProxyServlet: /tradescape/login.jsp
>>
>> type Status report
>>
>> message ProxyServlet: /tradescape/login.jsp
>>
>> description The requested resource (ProxyServlet: /tradescape/login.jsp)
> is not available.
>
> My guess is that I need to do something more, but searching the net did not
> deliver any useful information.
>
> Any help is appreciated.
>
> Lothar
>
>
Re: RAP war file and FORM based authentication [message #509925 is a reply to message #509907] Mon, 25 January 2010 18:58 Go to previous messageGo to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Rüdiger Herrmann wrote:

> Did you read this?
> http://www.eclipse.org/equinox/server/jsp_support.php

The page does not mention anything about the "equinoxbridgeservlet", but I
verified that the RAP feature contained the two mentioned bundles
(org.eclipse.equinox.jsp.jasper org.eclipse.equinox.jsp.jasper.registry).

I figured as the RAP demo already contained the below mentioned
servlet-mapping for *.jsp that they would work more or less out of the box.

I don't necessarily need jsp's, I could do with regular html as well. I just
want to get the FORM based authentication to work. But from searching the
net it looked like accessing html pages from RAP apps is not trivial and
the mentioned configuration option from the RAP demo suggested it may be
easier with jsp's.

What would be the easiest way to achive FORM based authentication with a RAP
app in a WAR? (I changed the message title to reflect the new question)

Lothar

> On 25.01.2010 18:59, Lothar Werzinger wrote:
>> Hi,
>>
>> I successfully deployed a RAP application (derived it from the demo
>> provided in the RAP help). The web.xml contains the following section:
>>
>>> <!--
>>> This is required if your application bundles expose JSPs.
>>> -->
>>> <servlet-mapping>
>>> <servlet-name>equinoxbridgeservlet</servlet-name>
>>> <url-pattern>*.jsp</url-pattern>
>>> </servlet-mapping>
>>
>> I tried to add two jsp files (for FORM authentication), but I get a 404
>> error:
>>
>>> HTTP Status 404 - ProxyServlet: /tradescape/login.jsp
>>>
>>> type Status report
>>>
>>> message ProxyServlet: /tradescape/login.jsp
>>>
>>> description The requested resource (ProxyServlet: /tradescape/login.jsp)
>> is not available.
>>
>> My guess is that I need to do something more, but searching the net did
>> not deliver any useful information.
>>
>> Any help is appreciated.
>>
>> Lothar
Re: RAP war file and FORM based authentication [message #510089 is a reply to message #509925] Tue, 26 January 2010 14:10 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
On 25.01.2010 19:58, Lothar Werzinger wrote:
> Rüdiger Herrmann wrote:
>
>> Did you read this?
>> http://www.eclipse.org/equinox/server/jsp_support.php
>
> The page does not mention anything about the "equinoxbridgeservlet", but I
> verified that the RAP feature contained the two mentioned bundles
> (org.eclipse.equinox.jsp.jasper org.eclipse.equinox.jsp.jasper.registry).
>
> I figured as the RAP demo already contained the below mentioned
> servlet-mapping for *.jsp that they would work more or less out of the box.
RAP is not related to JSP at all. The RAP demo is actually a modified
version of the Equinox servletbridge template [1] which in turn offers
also support for JSPs. That's why there is a commented JSP mapping.

>
> I don't necessarily need jsp's, I could do with regular html as well. I just
> want to get the FORM based authentication to work. But from searching the
> net it looked like accessing html pages from RAP apps is not trivial and
> the mentioned configuration option from the RAP demo suggested it may be
> easier with jsp's.
>
> What would be the easiest way to achive FORM based authentication with a RAP
> app in a WAR? (I changed the message title to reflect the new question)
Why don't you use a plain (RAP) dialog to query username and password?

>
> Lothar
>
>> On 25.01.2010 18:59, Lothar Werzinger wrote:
>>> Hi,
>>>
>>> I successfully deployed a RAP application (derived it from the demo
>>> provided in the RAP help). The web.xml contains the following section:
>>>
>>>> <!--
>>>> This is required if your application bundles expose JSPs.
>>>> -->
>>>> <servlet-mapping>
>>>> <servlet-name>equinoxbridgeservlet</servlet-name>
>>>> <url-pattern>*.jsp</url-pattern>
>>>> </servlet-mapping>
>>>
>>> I tried to add two jsp files (for FORM authentication), but I get a 404
>>> error:
>>>
>>>> HTTP Status 404 - ProxyServlet: /tradescape/login.jsp
>>>>
>>>> type Status report
>>>>
>>>> message ProxyServlet: /tradescape/login.jsp
>>>>
>>>> description The requested resource (ProxyServlet: /tradescape/login.jsp)
>>> is not available.
>>>
>>> My guess is that I need to do something more, but searching the net did
>>> not deliver any useful information.
>>>
>>> Any help is appreciated.
>>>
>>> Lothar

[1] http://www.eclipse.org/equinox/server/http_in_container.php
Previous Topic:How to use the RAP Theme Editor from the Incubator?!
Next Topic:RAP and JAAS LoginModule
Goto Forum:
  


Current Time: Wed Dec 08 12:54:33 GMT 2021

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

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

Back to the top