Problem packaging EAR - 8M1

Hi,

I am uising 8M1 and trying to package an EAR such that at the top level I have a lib directory such that the exploded EAR structure looks something like this:

META-INF/appplication.xml
my.war (Existing facet)
my-ejbs.jar (Existing facet)
lib/A.jar
lib/B.jar
jboss-seam.jar

I am able only some of the desired structure with my Project properties. I have been able to get the application.xml and the war and ejb jar (which are existing project facets) to be included and I've created a Project library for the jars in the lib directory but I am unable to associate it with the J2EE5 application facet. When I click on "Add" button in the "Modules and Libraries to Package" section of my J2EE Application facet the I find that "Add Library" along with "Add Module" and "Add Facet" are greyed out. Is this a bug or am I just going about things wrongly?

TIA.

4 comments
Comment actions Permalink

See http://www.jetbrains.net/jira/browse/IDEADEV-25508

Fortunately there is a workaround:
Add the library to both the web and the ejb facets and configure it as
being deployed to /lib.
IDEA will add manifest entries for the jars to the manifests of both
the ejb jar and the war file, but those entires are not harmful
(just superfluous).

N wrote:

Hi,

I am uising 8M1 and trying to package an EAR such that at the top level I have a lib directory such that the exploded EAR structure looks something like this:

META-INF/appplication.xml
my.war (Existing facet)
my-ejbs.jar (Existing facet)
lib/A.jar
lib/B.jar
jboss-seam.jar

I am able only some of the desired structure with my Project properties. I have been able to get the application.xml and the war and ejb jar (which are existing project facets) to be included and I've created a Project library for the jars in the lib directory but I am unable to associate it with the J2EE5 application facet. When I click on "Add" button in the "Modules and Libraries to Package" section of my J2EE Application facet the I find that "Add Library" along with "Add Module" and "Add Facet" are greyed out. Is this a bug or am I just going about things wrongly?

TIA.

0
Comment actions Permalink

Thanks for the reply. I tried out this suggestion and I am very close. I now have the root level lib and jboss-seam.jar file in the EAR, however, I am still picking a WEB-INF\classes\META-INF\persistence.xml file in the war file generated by my Web facet. I haven't specified this anywhere in that facets configuration and it shouldn't be there and I can't for the life of me figure out how to get rid of it or how it got in there.

0
Comment actions Permalink

Bitten again - I found that problem has also been logged as a bug. http://www.jetbrains.net/jira/browse/IDEADEV-24414

0
Comment actions Permalink

N wrote:

Bitten again - I found that problem has also been logged as a bug. http://www.jetbrains.net/jira/browse/IDEADEV-24414


Yup, I've been bitten by that, too - there's an earlier issue from me at
http://www.jetbrains.net/jira/browse/IDEADEV-22630
but so far it has not seen much action.

0

Please sign in to leave a comment.