On Oct 26, 2009, at 12:35 PM, Roan Brasil Monteiro wrote:
> I got one problem, First error, I was thinking I could deploy WAR
> when I use EJB on Glassfish v2.1, I am wrong, I should deploy as
> EAR. I can deploy on Glassfish 3 WAR file when use EJB.
>
Correct.
> In this case I have a maven project with EJB files and Jersey Files,
> How can a modify the pom.xml file to deploy as EAR this project? I
> added the plugin ear but I need to set up the tag <configuration>,
> some idea?
I do not know, never done that before. Perhaps Felipe knows?
If you are using NetBeans 6.8 M2 or greater you could try and create a
new maven enterprise application. See:
File->New Project
select "Maven" category and select "Maven Enterprise Application". It
will produce three maven sub-projects: the web project; the ejb
project; and the ear project, which combines the first two.
I have attached such a Java EE 5 maven project created by NBs.
Hth,
Paul.