I am packaging my web application as an ear file because it uses EJBs. I
am using Acegi for security. However if I add Acegi as a dependency in
the war subproject then it pulls in bunch of other jars that are also
needed in my ejb subproject (such as spring) and I run into classloader
issues at runtime. To avoid this, I have moved the Acegi dependency into
the ejb package. Now everything works fine - Acegi and Spring are both
available to the web application. The only problem is that the web
application cannot access Acegi taglibs because they are no longer under
WEB-INF/lib. I could put Acegi back in the war project but I would have
to exclude all the dependent jars - I don't like doing this because the
list of Acegi dependent jars is really long! What is the most elegant
way to handle this situation?

 

Thanks.

Naresh

Reply via email to