Ron Piterman wrote:
I have an EAR project, which includes an EJB project as module, say Foo.

Foo is dependant on Bar, and bar is included in the EAR, but not in the
root directory of the EAR instead in the /lib directory.

This results in a class-not-found exception when deploying in jboss.

Check out the md4j-quickstarter poms [1]. Library jars go yo ear/APP-INF/lib and are visible from both the war and ejb module; the purpose was to reuse libraries.

The root project contains ear, ejb and web modules. In their POMs you can see how dependencies are used along with the ear, war and ejb plugins to do this.

[1] http://md4j.cvs.sourceforge.net/md4j/md4j-quickstarter-mvn/

hth,

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to