3 Replies Latest reply on Feb 12, 2008 4:57 AM by Avihai Marchiano

    How to - sar depend on jars in the ear?

    Avihai Marchiano Novice


      I use maven2 for build.
      i package my application as an ear with the following structure:
      lib - with third parties jars.

      As you see I use sar in order to startup task when the application is loaded (I put dependency on the MBean in order to load after all ejb were loadeded )

      The server-startup use classes in server and server-inf.
      The sar is loaded after all ejb were loaded , but I get ClassNotFound when I try in server-startup code to load classes from server.jar

      Any solution will be more than welcome.

      Thank you