After running 'java -jar orion.jar', I get the following output:

Error initializing site C.A.I.S: No application named 'cais' found in the
server
Orion/1.4.5 initialized

I can't seem to get the application setup correctly. I've included the
following files:
server.xml
applicaton.xml
cais-web-site.xml

Orion is installed under /u/public/orion on linux.
My application is installed as follows

------ my directory structure ----------------------------
/u/build
   |+ META-INF (ejb's etc...)
   |- build.xml (and build)
   |+ cais-web (web app)
   |       |+ WEB-INF
   |       |      |+ classes
   |       |      |+ lib
   |       |      |+ src
   |       |           |+ com ...
   |       |
   |       |+ web
   |               |- *.html, *.jsp, etc...
   |
-------------config/server.xml ---------------------------------
<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "Orion Application Server Config"
"
http://www.orionserver.com/dtds/application-server.dtd">

<application-server
   application-directory="../applications"
   deployment-directory="../application-deployments" >

   <rmi-config path="./rmi.xml" />
   <!-- JMS-server config link, uncomment to activate the JMS service -->
   <!-- <jms-config path="./jms.xml" /> -->
   <principals path="./principals.xml" />
   <log>
      <file path="../log/server.log" />
   </log>

   <global-application name="default" path="application.xml" />

   <global-web-app-config path="global-web-application.xml" />

   <web-site path="./default-web-site.xml" />
   <web-site path="./cais-web-site.xml" />

   <!-- Compiler, activate this to specify an alternative compiler such
      as jikes for EJB/JSP compiling. -->
   <!-- <compiler executable="jikes" classpath="/myjdkdir/jre/lib/rt.jar"
/> -->

</application-server>

-------------config/application.xml ---------------------------------
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application
runtime 1.2//EN" "
http://www.orionserver.com/dtds/orion-application.dtd">

<!-- The global application config that is the parent of all the other
   applications in this server. -->
<orion-application>
   <web-module id="defaultWebApp" path="../default-web-app" />
   <web-module id="cais" path="/u/build" />

   <persistence path="../persistence" />

        <!-- Path to the libraries that are installed on this server.
   These will accesible for the servlets, EJBs etc -->
   <library path="../lib" />

   <log>
      <file path="../log/global-application.log" />
      <file path="../log/default-application.log" />
   </log>

   <data-sources path="data-sources.xml" />

   <namespace-access>
      <read-access>
         <namespace-resource root="">
            <security-role-mapping>
               <group name="administrators" />
            </security-role-mapping>
         </namespace-resource>
      </read-access>
      <write-access>
         <namespace-resource root="">
            <security-role-mapping>
               <group name="administrators" />
            </security-role-mapping>
         </namespace-resource>
      </write-access>
   </namespace-access>
</orion-application>

-------------config/cais-web-site.xml ---------------------------------
<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "Orion Web-site"
"
http://www.orionserver.com/dtds/web-site.dtd">

<web-site host="[ALL]" port="80" display-name="C.A.I.S">
   <default-web-app application="cais" name="cais-web" />
   <!-- Access Log, where requests are logged to -->
   <access-log path="../log/cais-web-access.log" />

</web-site>


Reply via email to