Hi, yes, document-root doesnt really make any sense when using a prepackaged
dir structure (since the document-root is marked by the root of the
package).
However, you should have no problems using a <virtual-directory ../> tag in
orion-web.xml to point to your other dir if need be. (note that you can
still use document-root if you use a standalone orion-web.xml file
containing the info - we suggest
the servlet 2.2 packaging style though of course).
Hope it helps :)
/Magnus Stenman, the Orion team
----- Original Message -----
From: Brien Voorhees
To: Orion-Interest
Sent: Friday, March 03, 2000 12:50 AM
Subject: document-root no longer working
I installed Orion 0.9.4 today and couldn't get it working with a different
document-root. Since I'm often installing new versions of Orion and also
testing my stuff with other servers, I don't like to have my *.html, *.jsp,
etc. files under the Orion directory tree. I'm trying to set my document
root for the default web app to "c:\web" but I get the following error:
C:\orion94>java -jar orion.jar
Error starting HttpServer: Error initializing site
file:/C:/orion94/config/defau
lt-web-site.xml: Error loading web-app 'defaultWebApp' at
C:\orion94\default-web
-app: document-root can only be used when using standalone configs, Servlet
2.2
packaged apps have a preset root
Orion/0.9.4 initialized.
I modified default-web-app/web-inf/orion-web.xml with the following snippet
(adding only the document-root line which worked under 0.9.2)
:
<orion-web-app
deployment-version="0.9.4"
jsp-cache-directory="./persistence"
temporary-directory="./temp"
servlet-webdir="/servlet/"
document-root="c:\web"
>
Any help would be greatly appreciated.
Thanks!
Brien Voorhees