Adding webapps

Written by Joseph Ottinger

If you're just wanting to add a simple web application (a WAR file, for example, or something that's been designed for certain less-than-optimal servlet containers) to the default orion web site, there are two files you've got to modify. This is hardly an optimal solution - you're better off with your own applications, in my opinion - but it's certainly not hard to do.

  1. Modify $ORION/config/application.xml, adding a line like this:
    <web-module id="myid" path="path/to/war/file.war" />
    Note that there's no need to use the .war file if you have some desire to deploy from a filesystem; just use the path to the directory that containes WEB-INF.

    This file (application.xml) controls an application named "default" (as seen in $ORION/config/server.xml, in the global-application node); this name is relevant in the next step.

  2. Now modify $ORION/config/default-web-site.xml, with the following line:
    <web-app application="default" name="myid" root="/file" />
    The application here should match the name from the previous step, the name should match the web-module's id, and the root should be the relative URI used to access this web application.

Copyright © 2007 IronFlare AB