[jboss-dev-forums] [JBoss AS7 Development] - Dependencies in module.xml

Stan Silvert do-not-reply at jboss.com
Fri Feb 11 16:21:35 EST 2011


Stan Silvert [http://community.jboss.org/people/stan.silvert%40jboss.com] created the discussion

"Dependencies in module.xml"

To view the discussion, visit: http://community.jboss.org/message/586997#586997

--------------------------------------------------------------
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
[http://community.jboss.org/message/586997#586997]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110211/7cc4434e/attachment.html 


More information about the jboss-dev-forums mailing list