Not an expert, but an advice nonetheless ;)
Login module is an AS thing, and your extension is registering an already
existing login module, so JBoss throws an Exception. That's expected.
To deploy portlets you don't need to create an extension. But if you want to
register it in GateIn's portlet repository then, yes, creating an extension
is the way to go. Even if you do that, and you create an extension, you
shouldn't need a new login module.
But if you really need this new login module for some reason, you need to
give it another name and modify the realmName in your
org.exoplatform.container.definition.PortalContainerConfig of your
extension accordantly. AFAIK that's all you need.
On Mon, Feb 7, 2011 at 6:32 PM, Prabhat Jha <pjha(a)redhat.com> wrote:
Hello,
Can we get some expert advice on this pls?
Thanks,
Prabhat
----- Original Message -----
> Hi everyone,
>
> I have an important question about login modules in GateIn/EPP5.
>
> Now there is a gatein-jboss-beans.xml file which contains definition
> of 3 login modules for gatein-domain (default realmName).
>
> Think of this situation:
> - we have a set of new portlets and we need to add new login module
> - we are using an extension mechanism to deply everything and
> initialize new portal (we don't want to touch gatein.ear at all)
> - we add a new gatein-jboss-beans.xml in extension .ear (with old +
> new login modules defined), now it means that both
> gatein-jboss-beans.xml (from gatein.ear and from extension .ear) are
> used
>
> But it's a problem because you will get an error during startup:
> IllegalStateException: gatein-domain is already installed.
>
> Now I know about these options:
> 1) replace gatein-jboss-beans.xml in gatein.ear with new file
> 2) have new gatein-jboss-beans.xml in extension .ear and rename file
> in gatein.ear to something like: gatein-jboss-beans.xml-backup (it
> means that only the one from extension is used)
> 3) create new portal container with new realmName and define all login
> modules in new domain (but in our case we want to extend default
> portal container)
>
> So the question is if there is some other way how to define new login
> modules (without touching gatein.ear)?
>
> Thanks for any help or ideas!
>
> Best regards,
> Michal Vančo, JBoss QA
>
> (I have it temporarily done with second option, but I'd like to
> improve it - I want only to deploy new .ear and that's all)
>
> _______________________________________________
> gatein-dev mailing list
> gatein-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/gatein-dev
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev
--
Rafael Liu
+55 61 9608-7722
http://rafaelliu.net