Versions Compared

Key

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

...

  • Double click on "Hello World -> Web Content -> WEB-INF -> geronimo-web.xml" to open it in Geronimo Deployment Plan Editor.
  • In "General" tab, select "Add a run time dependency to Geronimo's shared library" as below:
  • Press "Ctrl+S" to save the file.
  • In "Source" tab, make sure a dependency on geronimo/sharedlib//car is would be added as below:
        <sys:dependencies>
          <sys:dependency>
            <sys:groupId>geronimo</sys:groupId>
            <sys:artifactId>sharedlib</sys:artifactId>
            <sys:type>car</sys:type>
          </sys:dependency>
        </sys:dependencies>
  • For Geronimo v2.0 & above, change <sys:groupId> to "org.apache.geronimo.configs" as below: (this is due to a current bug in Geronimo Deployment Plan Editors)

                <sys:groupId>org.apache.geronimo.configs</sys:groupId>

  • Press "Ctrl + S" again to save the changes.

Step-6:

Redeploy & run the web-app by right-clicking on "Hello World -> Web Content -> index.jsp" and selecting "Run As -> Run on Server -> Finish".

Make sure you get an output as below: