1 of 1 people found this helpful
From 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:
Am I forced to add a portlet.xml? The application is not a portlet..it's a simple webapp
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.