-
1. Re: JAAS Authenticator from an external web application
mstruk Jul 12, 2013 10:36 AM (in response to sviluppatorefico)1 of 1 people found this helpfulFrom the stacktrace it looks like your prova-0.0.1-SNAPSHOT.war doesn't have visibility of OAuthLoginModule, which is packaged in exo.portal.component.web.oauth-common.jar - part of org.gatein.lib module which should be visible by default to your web application.
Does your prova-0.0.1-SNAPSHOT.war contain a WEB-INF/portlet.xml? Make sure you have this file even if it's empty. It's presence is required for GateIn to treat is as portlet application and add visibility of necessary classes to it.
You could also add the necessary dependency yourself either via MANIFEST.MF or via jboss-deployment-structure.xml as described here: https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7
You need a dependency on the module called org.gatein.lib.
For example, your META-INF/MANIFEST.MF would look like:
Dependencies: org.gatein.lib
-
2. Re: JAAS Authenticator from an external web application
sviluppatorefico Jul 12, 2013 10:53 AM (in response to mstruk)Am I forced to add a portlet.xml? The application is not a portlet..it's a simple webapp
-
3. Re: JAAS Authenticator from an external web application
mstruk Jul 12, 2013 11:16 AM (in response to sviluppatorefico)If you have no portlets in your .war then no, you don't have to add portlet.xml. You can explicitly configure a dependency like I described.