Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP and JAAS LoginModule
RAP and JAAS LoginModule [message #509906] 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).

I developed a JAAS LoginModule for our authentication purposes that
authenticates by using information retrieved via CDO/EMF.

In order to get tomcat to work with my LoginModule the necessary jar files
need to be present in the WEB-INF/lib directory.

So far my workaround is to copy the plugin jars that are dependencies of the
LoginModule from the WEB-INF/eclipse/plugin directory to WEB-INF/lib, so
that tomcat can access them for the LoginModule. This is wasteful, as I
need to have many plugins (for the ease of use I copy all plugins right
now, as it is not easy to determine the full dependency tree by hand) twice
into the WAR file. Once in WEB-INF/eclipse/plugin and once in WEB-INF/lib.

Is there a way to deploy the RAP app so that the plugins end up in
WEB-INF/lib and that the equinox starter looks for them there, too?

Any help is much appreciated.

Lothar
Re: RAP and JAAS LoginModule [message #510240 is a reply to message #509906] Tue, 26 January 2010 20:24 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
On 25.01.2010 19:08, Lothar Werzinger wrote:
> Hi,
>
> I successfully deployed a RAP application (derived it from the demo provided
> in the RAP help).
>
> I developed a JAAS LoginModule for our authentication purposes that
> authenticates by using information retrieved via CDO/EMF.
Would you mind to spend some time and extend the RAP FAQ [1] by an entry
that explains how to use JAAS and RAP?

>
> In order to get tomcat to work with my LoginModule the necessary jar files
> need to be present in the WEB-INF/lib directory.
>
> So far my workaround is to copy the plugin jars that are dependencies of the
> LoginModule from the WEB-INF/eclipse/plugin directory to WEB-INF/lib, so
> that tomcat can access them for the LoginModule. This is wasteful, as I
> need to have many plugins (for the ease of use I copy all plugins right
> now, as it is not easy to determine the full dependency tree by hand) twice
> into the WAR file. Once in WEB-INF/eclipse/plugin and once in WEB-INF/lib.
>
> Is there a way to deploy the RAP app so that the plugins end up in
> WEB-INF/lib and that the equinox starter looks for them there, too?
Not as far as I know. The equinox starter doesn't help much here. It
searches for the launch.ini in WEB-INF, WEB-INF/eclipse to determine the
"root" of the framework. All bundles are expected to reside in a
"plugins" folder under that root.
If you think this is a general requirement, you may file an enhancement
request against Equinox [2]

You could customize the build process that it creates a copy of all the
bundles in the lib folder. Maybe you will need to switch to
headless/releng builds [3] that provide the necessary flexibility.

> Any help is much appreciated.
>
> Lothar
>

[1] http://wiki.eclipse.org/RAP/FAQ
[2] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox
[3] http://www.eclipse.org/eclipse/platform-releng/index.php
Re: RAP and JAAS LoginModule [message #510320 is a reply to message #509906] Wed, 27 January 2010 08:33 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Lothar,

what you could do to avoid having all libs twice is exporting all
packages from your lib folder into OSGi using a ServletBridge mechanism
called "extendedFrameworkExports". This is done automatically for some
basic packages like javax.servlet and you can add additional packages.
This is done in your web.xml.

The drawback of this approach is that you have to specify every single
package that is needed by your bundles.

I'm not sure if I can recommend this :-)

Regards,
Stefan.

Lothar Werzinger schrieb:
>
> Is there a way to deploy the RAP app so that the plugins end up in
> WEB-INF/lib and that the equinox starter looks for them there, too?
>
Previous Topic:RAP war file and jsp files
Next Topic:TableViewer Column resized event
Goto Forum:
  


Current Time: Sat Oct 05 03:25:13 GMT 2024

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

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

Back to the top