Running Orion from a non-writeable directory

Written by Joseph Ottinger

This guide gives an overview to running Orion from directories that are not writeable by the target user. You may want to do this if you download and extract Orion as root, then wish users on the system to run their own instances from the central installation.

In this document $CWD represents the current working directory.

Quick Reference Info

Configuring Orion

Beware! All relative paths given in config files will be relative to the config file itself, not the current directory.

First, copy server.xml, application.xml, data-sources.xml, jms.xml, and rmi.xml to a config directory owned by the user. Nothing beyond your normal data-sources need be put in data-sources.xml. Any config files that are not copied must be referenced with absolute paths (or paths relative to the new location of the config file).

server.xml

jms.xml

rmi.xml

 

Running Orion

 

Since $CWD is used as a temporary folder for generating and compiling CMP and JSP .java files, Orion must by started from a folder the user has write access to like so:

java -jar /usr/local/orion/orion.jar -config configs/server.xml
 

The default search for server.xml is $CWD/config/server.xml so if you've called your config directory that, there's no need to even pass Orion its -config flag.

Copyright © 2007 IronFlare AB