Help with modules and depency within an EJB
I have an EJB project. It has one application module, one ejb module,
and three web modules. One web module is a common module and it's
contents are used by the other two. The problem that I have is that the
common web module uses some libraries that are used by the other two
libraries. No matter what I do, I cannot get all of the libraries to
deploy to both web modules.
I went as far as to put all libraries in the root of the .ear. The
problem I found is that commons-logging really likes to be in the web
module's lib directory. I then marked both of them as copy file to
/WEB-INF/lib. Unfortunately, only one module got the files, the other
module never got a lib directory.
Has anyone else seen this or am I going about it the wrong way?
Please sign in to leave a comment.
IntelliJ is going to create a web.xml if it does not already exist.
Which web.xml is used? If the dependent web module is a complete web
module and it contains filter mapping, are these merged into the web.xml
of any module(s) that depend on it?
Norris Shelton wrote:
>
>
It does not appear to be as robust as we thought. I eventually had to
recreate all of the modules (in order) and that works. We still have a
lot of duplication of libraries and we basically throw away the web.xml
and jboss-web.xml (we add common- to the front of each name) of the
common web module.
Norris Shelton wrote:
>
>