Ok, once more: Deploying the stuts 1.0 pre-release example web application
on Orion in (more or less) five steps
(based on Orion 1.3.8 and jakarta-struts-src-20001209.zip on W2k, jdk1.3):

1. build the struts example web application (or retrieve it from the nightly
build distribution)
    1.1. extract the struts src distribution in a temporary directory
([struts])
    1.2. build struts distribution by executing "[struts]\jakarta-struts\ant
dist" (using [struts]\jakata-struts\build.xml)
2. modify the web application archive
[struts]\dist\struts\webapps\struts-example.war:
    2.1. extract struts-example.war in a clean temporary directory ([temp])
    2.2. open [temp]\WEB-INF\lib\struts.jar and extract
org\apache\struts\resources\struts-config_1_0.dtd to [temp]\WEB-INF\classes\
creating file
[temp]\WEB-INF\classes\org\apache\struts\resources\struts-config_1_0.dtd
    2.3 delete the above file from struts.jar and save struts.jar in
[temp]\WEB-INF\lib\
    2.4 jar (or zip) the contents of [temp]\ in a new web application
archive [temp]\struts-example.war (don't forget keeping the folder names)
3. create a struts.ear file by:
    3.1. create file [temp]\META-INF\application.xml containing the
following:
            <?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>struts</display-name>
              <module>
                <web>
                  <web-uri>struts-example.war</web-uri>
                  <context-root>/struts-example</context-root>
                </web>
              </module>
            </application>
    3.2 jar (or zip) [temp]\META-INF\application.xml and
[temp]\struts-examples.war into a new enterprise application archive
[temp]\struts.ear (using folder names)
4. deploy the example web application on orion
    4.1. extract orion1.3.8.zip in some directory ([orion])
    4.2. copy the struts.ear file into [orion]/application
    4.3. modify [orion]\config\server.xml by adding the following element
under (nested within) the <application-server ...> element:
          <application name="struts" path="../applications/struts.ear" />
    4.4. modify [orion]\config\default-web-site.xml by adding the following
element under (nested within) the <web-site ...> element:
          <web-app application="struts" name="struts-example"
root="/struts-example" />
5. run the example web application
    5.1. startup orion by executing "java -jar orion.jar" within the
[orion]\ directory
    5.2. access the example web application from a browser using url:
http://localhost/struts-example

Ate Douma

----- Original Message -----
From: "Neal Kaiser" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, December 15, 2000 16:18
Subject: Struts 1.0 - Anyone Do It?


> I get the common "Missing resources attribute
> org.apache.struts.action.MESSAGE" error. I've read a lot of threads on
this,
> but didn't find a solution yet.
>
> If anyone has successfully deployed the struts-examples could you please
> post the steps? I'm sure there are many people that would benefit from
this.
>
> Thank you.
>
>
>


Reply via email to