Sure. First..I will assume your dir is correctly formatted (that is, web-app dir, WEB-INF/classes, WEB-INF/lib, WEB/INF/web.xml, and what ever classes, lib files, jsp, html, images, etc). So I am assuming you have the .war file. Now, I don't deploy in the Orion install dir. So I set up my own folder outside. Lets call this c:\myapps. So I have this:
 
c:\myapps\META-INF\application.xml
c:\myapps\myapp\www\WEB-INF
c:\myapps\myapp\www\WEB-INF\classes
c:\myapps\myapp\www\WEB-INF\lib
c:\myapps\myapp\www\WEB-INF\web.xml
 
In the /orion/config/server.xml file add this at the end:
 
  <application name="myapp" path="c:\myapps\myapp" />
  <web-site path="./myapp.xml"/>
 
 
In the /orion/config/myapp.xml file you'll have:
 
<?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="My Web Site">
 <default-web-app application="myapp" name="www" />
 <access-log path="../log/myapp-web-access.log" />
</web-site>
 
Finally, in the c:\myapps\META-INF\application.xml file, you'll have:
 
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"  "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
 
<application>
  <display-name>My App</display-name>
    <module>
      <web>
        <web-uri>www.war</web-uri>
        <context-root>/</context-root>
      </web>
    </module>
    <security-role>
      <role-name>administrators</role-name>
    </security-role>
    <security-role>
      <role-name>users</role-name>
    </security-role>
</application>
 
 
As far as I know..this is all you need to do. There is one thing I have to explain. In the above application.xml, you'll see that it says www.war. This would be located in the c:\myapps\myapp\www.war  But also notice that the www.war has the same name as the www dir in the myapp dir. This isn't necessary..just what I do. I generally give the same name to the war file as the dir name the web-app is in. This way, I can change the application.xml file above like so:
 
    <module>
      <web>
        <web-uri>www</web-uri>
        <context-root>/</context-root>
      </web>
    </module>
 
This little change will now allow me to use the myapp\www folder in expanded form for development purposes. With Orion, if you turn on the development="true", your WEB-INF\classes\*.class files will auto-reload if any changes to the corresponding .java files occur while you edit. I think you have to specify the source dir too for that to work. What I do, instead, is use ANT to do all my builds and the last target in the build.xml file is <touch file="c:\myapps\myapp\META-INF\application.xml"/> which Orion notices and auto-reloads the application. Just make sure ALL classes that may be stored as attributes in the HttpSession implement Serializable correctly including having the static final long serialVersionUID = xxxxL; in it!
 
Got any questions..feel free to ask.
 
 
 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Miller
Sent: Thursday, August 16, 2001 12:31 AM
To: Orion-Interest
Subject: deploying a war file

Has anyone done this in Orion before? If so could you tell me how.
 
Any advice, tips, info would be appreciated.
 
Regards,
 
Johnny
 

http://www.iii.co.uk

Interactive Investor International is a leading UK Internet personal

finance service that provides individuals with the capability to identify,

compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor

International plc, is regulated by the SFA.

Reply via email to