2 Replies Latest reply on Mar 12, 2014 3:04 PM by stephan.prantl

    Custom LoginModule: Files in meta-inf not accessible

    stephan.prantl

      Proceeding Bug AS7-5864 here but with a bit different setup.
      Im having the same Problem (no access to the meta-inf-Folder in the resources-Jars).
      The only difference is that im using it (also the spring-framework, which needs the Files in the meta-inf) in a standalone JAAS LoginModule.

      So the Solution with meta-inf="export" doesn't work here cause i haven't a jboss-deployment-structure.xml-File. I've also tried already to outsource the spring-jars to a seperate module and using than the meta-inf Attribute but the Attribute isn't allowed on the module-Tag.

      Also the include-Filter (META-INF/**) on each resource-root doesn't affect anything.

      I'm now googling and trying to find the solution since 2 weeks - so at last i hope you can help me here.

       

      Security-Domain Configuration:

      <security-domain name="GplaPipUsersSecurityDomain" cache-type="default">
                          <authentication>
                              <login-module module="at.sozvers.gpla.users.loginmodule" code="at.sozvers.gpla.j2ee.users.loginmodule.GplaUsersLoginModule" flag="required">
                                  <module-option name="appName" value="PIP - Pruefinnendienstprogramm"/>
                              </login-module>
                          </authentication>
      </security-domain>
      

       

      and the module.xml of the LoginModule:

      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.1" name="at.sozvers.gpla.users.loginmodule">
        <dependencies>
        <module name="javaee.api" />
        <module name="org.picketbox" />
        <module name="javax.api" />
        <module name="org.jboss.vfs" />
        <module name="org.slf4j" />
        </dependencies>
      
      
        <resources>
        <resource-root path="gpla-j2ee-users-loginmodule-1.0.0-SNAPSHOT.jar" />
      
      
        <resource-root path="lib/antlr-2.7.7.jar" />
        <resource-root path="lib/aopalliance-1.0.jar" />
        <resource-root path="lib/bcpg-jdk15on-1.47.jar" />
        <resource-root path="lib/bcprov-jdk15on-1.47.jar" />
        <resource-root path="lib/commons-codec-1.7.jar" />
        <resource-root path="lib/commons-collections-3.2.1.jar" />
        <resource-root path="lib/commons-configuration-1.9.jar" />
        <resource-root path="lib/commons-dbcp-1.4.jar" />
        <resource-root path="lib/commons-io-2.4.jar" />
        <resource-root path="lib/commons-lang-2.6.jar" />
        <resource-root path="lib/commons-logging-1.1.3.jar" />
        <resource-root path="lib/commons-net-3.3.jar" />
        <resource-root path="lib/commons-pool-1.5.4.jar" />
        <resource-root path="lib/dom4j-1.6.1.jar" />
        <resource-root path="lib/gpla-commons-1.1.0-SNAPSHOT.jar" />
        <resource-root path="lib/gpla-hibernate-commons-1.0.0-SNAPSHOT.jar" />
        <resource-root path="lib/gpla-hibernate-synergie-2.10.0-SNAPSHOT.jar" />
        <resource-root path="lib/gpla-hibernate-users-1.0.0-SNAPSHOT.jar" />
        <resource-root path="lib/gpla-j2ee-users-principal-1.0.0-SNAPSHOT.jar" />
        <resource-root path="lib/gpla-security-1.2.0-SNAPSHOT.jar" />
        <resource-root path="lib/hibernate-commons-annotations-4.0.2.Final.jar" />
        <resource-root path="lib/hibernate-core-4.2.5.Final.jar" />
        <resource-root path="lib/hibernate-entitymanager-4.2.5.Final.jar" />
        <resource-root path="lib/hibernate-jpa-2.0-api-1.0.1.Final.jar" />
        <resource-root path="lib/javassist-3.15.0-GA.jar" />
        <resource-root path="lib/jboss-logging-3.1.0.GA.jar" />
        <resource-root path="lib/jboss-transaction-api_1.1_spec-1.0.1.Final.jar" />
        <resource-root path="lib/joda-time-2.3.jar" />
        <resource-root path="lib/spring-aop-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-beans-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-context-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-core-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-expression-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-jdbc-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-orm-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        <resource-root path="lib/spring-tx-4.0.2.RELEASE.jar">
        <filter>
        <include path="META-INF/**" />
        </filter>
        </resource-root>
        </resources>
      </module>