Hi Mike and Malcolm!  (And Orion-Interest list - moved from jakarta-struts
list.)

Thanks for the information.

Mike, I revised my Orion.xml files as you suggested - but still having
problems.   (I think there is a "hole" in my understanding of this whole
setup issue.)

Here is my current setup:

My WAR file is         c:\orion\applications\struts-documentation.war

My application.xml refers to:   <web-module id="struts-documentation"
path="../applications/struts-documentation.war" />

My default-web-site.xml refers to: <web-app
application="struts-documentation" name="struts-documentation"
root="/struts-documentation" />

Under this setup - Orion initializes fine.   However - when I enter
"http://localhost/struts-documentation" in a browser, I get the following
error message:

Error instantiating web-application
No application named 'struts-documentation' found in the server


This leads me to believe that I need to add "something" back to the
server.xml file.    But when I add the following: <application
name="struts-documentation" path="../applications/struts-documentation.war"
/>

to server.xml - Orion does not initialize and I receive the original error
message (error instantiating application at file
c:/orion/applications/struts-documentation.war:  unable to find/read/
assembly information for c:\orion\applications\struts-documentation
<META-INF/application.xml>)

OK - so back to my original question - don't I need an application.xml for
my .WAR?   Do I need to include the application.xml in the WAR file?


Malcolm - I appreciate your hints.   But what specific element to you mean
by download the J2EE "stuff" from Sun.   What utility are you referring to
create the WAR?   I'm obviously an idiot - so any specific information will
be helpful.

Thanks again for all of your help!



-----Original Message-----
From:   Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
Sent:   Saturday, July 08, 2000 7:36 PM
To:     [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:        RE: Problem with deploying struts-documentation.war AND any way to
search archives?

This is actually not a problem, it's a misunderstanding ;)

The <application> tag is for J2EE applications, WAR files are "web
applications", not whole J2EE applications. WARs are one of the modules that
makes up an EAR.

There is no need to build an EAR to deploy WAR files in Orion (or any J2EE
compliant server).

In your config/application.xml file add:
        <web-module id="strutsDoc"
path="d:\scratch\jakarta-struts\webapps\struts-documentation.war" />

Then in config/default-web-site.xml (or ANY website file) add:
        <web-app application="default" name="strutsDoc" root="/struts/doc" />

And any WAR will deploy.

Hope this helps,

Mike

> -----Original Message-----
> From: Megan Ray [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 8 July 2000 3:11
> To: [EMAIL PROTECTED]
> Subject: Problem with deploying struts-documentation.war AND any way to
> search archives?
>
>
> I'm a newbie to struts- and web development in general  - trying to deploy
> it on Orion webserver
>
> I followed the instructions for deploying Struts - when I try to start
> Orion - I get the following error message:
>
> "unable to find/read assembly info for
> c:\orion\applications\struts-documentation <META-INF/application.xml>
>
> Here is a summary of my Orion setup for the documentation.war:
>
> struts-documentation.war is located in c:\orion\applications
>
> the server.xml has the following line added:
>
>       <application name="struts-doc"
> path="../applications/struts-documentation.war"/>
>
> the default-web-site.xml has the following line added:
>
>       <web-app application="struts-doc" name="struts-documentation"
> root="/struts-documentation" />
>
> Am I setting this up incorrectly?
>
> I assume the struts-documentation.war doesn't have the application.xml
> (required by Orion?)    I thought about trying to deploy the
> struts example
> without the war - but the build.bat file will not work (to create
> directory
> structure.)
>
> Any hints are appreciated.   I would like to access both the documentation
> and struts example.
>
> Thanks!
>
> P.S.   Is there any way to search the struts-user e-mail archives?   I'm
> sure most of my questions have been asked before.
>
> Thanks again!
>


Reply via email to