Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the EAR Application Project wizard type in SampleEAR as the project name and select Apache Geronimo v2.0 in Target Runtime. Leave the rest as is.

Press Next twice.

In the New EAR Application Project window select the Generate Deployment Descriptor checkbox.

geronimo-sample-ear-generatedd.png|align=center

Press Next three times.

Fill in the Geronimo Deployment Plan's fields with the following values (you want to know more why they're important? Read it on in the Geronimo documentation - http://cwiki.apache.org/GMOxDOC12/deployment-plans.html):

  • Group Id: sampleear
  • Artifact Id: sample-ear
  • Artifact Type: ear

Press Finish.

When asked about changing to the Java EE perspective, press Yes. You may want to select the Remember my decision checkbox to avoid dealing with it in the future.

...

You should now have the following project structure.

Note
Wiki Markup

Don't worry about the error *cvc-complex-type.2.4.b: The content of element 'application' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":module}' is expected.* for now. You'll fix it in the next step when you define an ejb module (and webapp module afterwards).

Create EJB project

The next step is to create an EJB project to hold your EJBs. Press Ctrl-N and select EJB Project in EJB category.

...