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:
In the
/orion/config/myapp.xml file you'll have:
http://www.orionserver.com/dtds/web-site.dtd">
Finally, in the c:\myapps\META-INF\application.xml
file, you'll have:
http://java.sun.com/j2ee/dtds/application_1_2.dtd">
My
App
www.war
/
administrators
users
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:
www
/
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 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 = L; in it!
Got
any questions..feel free to ask.
-Original
Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of John
MillerSent: Thursday, August 16, 2001 12:31 AMTo:
Orion-InterestSubject: 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.