RAP and JAAS LoginModule [message #509906] |
Mon, 25 January 2010 08:12  |
Eclipse User |
|
|
|
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 #510320 is a reply to message #509906] |
Wed, 27 January 2010 03:33  |
Eclipse User |
|
|
|
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?
>
|
|
|
Powered by
FUDForum. Page generated in 0.07758 seconds