JBoss Community

Dependencies in module.xml

created by Stan Silvert in JBoss AS7 Development - View the full discussion

I'm trying to add JSF jars to the classpath when a WAR is deployed.

 

I now have modules for javax.faces.api and javax.faces.impl.  (The impl one will go away eventually)

jboss-7.0.0.Aplpha2/modules/javax/faces/api/<jar, index, and module.xml>

jboss-7.0.0.Aplpha2/modules/javax/faces/impl/<jar, index, and module.xml>

 

That part looks OK to me.

 

So now how do I get those jars on the classpath when a WAR is deployed?  I tried adding this to the org.jboss.as.web module.xml:

 

<dependencies>

        ...      

        ...

        <module name="javax.faces.api"/>

        <module name="javax.faces.impl"/>

       ...

       ...

</dependencies>

 

However, that seemed to have no effect.  When the WAR deploys it can't find a JSF impl class I specified in web.xml.

 

What is the proper way to do this?

 

Stan

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community