3 Replies Latest reply on Aug 25, 2011 4:36 PM by Jim Dwyer

    AS7 jar dependencies...How to?

    Jim Dwyer Novice

      How do I add a jar dependency to the server?


      I deployed a ejb3 bean successfully in the deployments directory.  The bean depends on another jar (org.apache.commons.io) that I want to be global in the AS7 server so that other components can use it.  How can I make the ejb3 bean see the dependency?


      Here is my error:


      Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils from [Module "deployment.test-services-0.0.1-SNAPSHOT.jar:main" from Service Module Loader]


      The org.apache.commons.io is available in the modules directory.  I feel like I am missing a very simple configuration to make this work.