Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  1. Ensure that you have a Geronimo server defined in Eclipse, and specify it as the tartget runtime. See Defining Geronimo server runtimes and servers for how to define Geronimo servers and server runtimes in Eclipse.
  2. Build the samples in maven using this command: mvn eclipse:eclipse. See Maven Guide to using Eclipse with Maven 2.x for more information about this command.
  3. In Eclipse, import the resulting EAR file from the last step, that is, calculator-ear-2.1.2.ear. This will create three projects in Eclipse: calculator-ear-2.1.2, calculator-ejb-2.1.2, calculator-war-2.1.2.
  4. Ensure that the imported EAR file can be deployed to your Geronimo server by deploying it and invoke the WAR file http://localhost:8080/calculator-war-2.1.2/Image Removed. After that, undeploy the EAR file and stop the server.
  5. Copy the three java files in SVN, that is, in \samples\tags\samples-parent-2.1.2\samples\calculator\calculator-ejb\src\main\java\org\apache\geronimo\samples\slsb\calculator into the Eclipse package org.apache.geronimo.samples.slsb.calculator for the calculator-ejb-2.1.2 project. This package should have been created for you during the import; if not, create it yourself prior to copying java files.
  6. For the calculator-war-2.1.2 project create this package: org.apache.geronimo.samples.calculator.
  7. Copy the single java file in SVN, that is,\samples\tags\samples-parent-2.1.2\samples\calculator\calculator-war\src\main\java\org\apache\geronimo\samples\calculator\CalculatorServlet.java into the package org.apache.geronimo.samples.calculator.
  8. In Eclipse, add the calculator-ejb-2.1.2 project to the build path for the calculator-war-2.1.2 project to ensure that everything builds.

...