[jboss-as7-dev] cl.getResources() doesn't work from module-based code
Anil Saldhana
Anil.Saldhana at redhat.com
Wed Sep 12 14:11:59 EDT 2012
Bill,
the key to this CL puzzle with the JDK jaas stack may lie here:
https://github.com/anilsaldhana/jboss-as/blob/master/security/src/main/java/org/jboss/as/security/plugins/ModuleClassLoaderLocator.java
Regards,
Anil
On 09/12/2012 10:18 AM, Bill Burke wrote:
> I'm creating a custom login-module that is declared within
> standalone.xml. This module references a new module that I have
> deployed (see below). The login-module class uses Resteasy to make
> invocations. The problem is that Resteasy is not able to find and
> register built-in providers. Resteasy does this by doing:
>
> Enumeration<URL> en =
> Thread.currentThread().getContextClassLoader().getResources("META-INF/services/"
> + Providers.class.getName());
> while (en.hasMoreElements())
> {
> URL url = en.nextElement();
>
>
> No URLs are turning up when calling cl. getResources(). Is there some
> configuration switch I don't know about? Here is my module:
>
> <module xmlns="urn:jboss:module:1.1"
> name="org.jboss.resteasy.resteasy-skeleton-key">
> <properties>
> <property name="jboss.api" value="private"/>
> </properties>
>
> <resources>
> <resource-root
> path="resteasy-skeleton-key-core-3.0-alpha-1-SNAPSHOT.jar"/>
> <resource-root
> path="resteasy-skeleton-key-as7-3.0-alpha-1-SNAPSHOT.jar"/>
> </resources>
>
> <dependencies>
> <module name="javax.api"/>
> <module name="javax.servlet.api"/>
> <module name="javax.security.auth.message.api"/>
> <module name="javax.security.jacc.api"/>
> <module name="org.jboss.as.web"/>
> <module name="javax.ws.rs.api"/>
> <module name="org.picketbox"/>
> <module name="org.apache.httpcomponents"/>
> <module name="org.jboss.resteasy.resteasy-jackson-provider"/>
> <module name="org.jboss.resteasy.resteasy-jaxrs"/>
> <module name="org.jboss.resteasy.resteasy-crypto"/>
> <module name="org.jboss.security.web.login-module-authenticator"/>
> </dependencies>
> </module>
>
>
More information about the jboss-as7-dev
mailing list