3.3. Running from the webapp project

The second approach for running a Wicket Objects application is to build a WAR archive of the webapp. Most IDEs will then allow this WAR to be deployed on an external servlet container, for debugging.

Starting with a Naked Objects application, the WAR archive is most easily built using the webapp project. In it you'll need to make the following changes:

You should then be able to build the webapp and deploy. For example, in Eclipse this is done by Run As > Server:

and then select the external servlet container to deploy against:

If deploying this way, then the web browser URL may be slightly different. For example with Eclipse the URL to specify is http://localhost:8080/webappname.