Is there a way to define an ear-global classpath with JBoss?

Discussions

EJB programming & troubleshooting: Is there a way to define an ear-global classpath with JBoss?

  1. I'm using hibernate from a session bean and a hibernate session factory service (.sar), they both depend on the hibernate jar plus it's dependencies.

    Is there a way to add all these jars in the ear level and tell the app server to add them to the class loader for all the modules in the ear?

    I spent a day packaging my ear a zillion ways with manifect classpath and all, and my sar deployment always dies with a class not found exception. It works fine if i copy hte jars to the default/lib dir.
  2. Try to use MBean .

    cheers
    Dee