[jboss-dev-forums] [JBoss AS 7 Development] - Re: moving from 7.0.1 to 7.1final , getting NoClassDefFoundError

Tanya Ruttenberg do-not-reply at jboss.com
Thu Mar 1 11:10:37 EST 2012


Tanya Ruttenberg [https://community.jboss.org/people/daxxy] created the discussion

"Re: moving from 7.0.1 to 7.1final , getting NoClassDefFoundError"

To view the discussion, visit: https://community.jboss.org/message/720934#720934

--------------------------------------------------------------
I had this problem with a different module. Notice that org.jboss.weld is throwing the error.  You have to go down to the module whose library is throwing the error and add org.slf4j and org.apache.log4j to the dependencies for *the module*.  It will do no good to add it to your app -- it least it did me no good.

In my case, it was org.jboss.logging that was throwing the error so I added the dependencies to the module for org.jboss.logging like this

<module xmlns="urn:jboss:module:1.1" name="org.jboss.logging">
    <resources>
        <resource-root path="jboss-logging-3.1.0.GA.jar"/>
        <!-- Insert resources here -->
    </resources>
    <dependencies>
        <module name="org.jboss.logmanager"/>
        <module name="org.slf4j" />
        <module name="org.apache.log4j" />
    </dependencies>
</module>


TDR
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/720934#720934]

Start a new discussion in JBoss AS 7 Development at Community
[https://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/20120301/36503c8c/attachment.html 


More information about the jboss-dev-forums mailing list