|
Its
not so hard.
All
you have to do is read one of the many postings on this subject throughout this
list ;)
If you
dont want to build an ear for your web-application, you can add it to
orion/config/application.xml with the following line:
<web-module id="mytest" path="C:\work\mytest"
/>
Then
you just deploy your web-app to the default site by editing
orion/config/default-web-site.xml and add the following
line:
<web-app application="default" name="mytest"
root="/mytest"/>
WR
-----Ursprungligt meddelande----- Fr�n:
Bryant Bunderson [mailto:[EMAIL PROTECTED]] Skickat: den 29
mars 2001 17:56 Till: Orion-Interest �mne: Simple web app
development
I am developing several small Servlet / JSP
Web applications and testing them under different servers. I don't have a clue
how to get Orion to recognize my application unless I package it all up into
an EAR file and put it into the applications directory. What I want to do is
to point Orion to my work directory and have it run the app from there. I do
that now with other servers and it works just fine.
For the sake of this message, I have created the
following structure on my Windows 2000 box.
C:\work\mytest
C:\work\mytest\index.html
C:\work\mytest\web-inf
C:\work\mytest\web-inf\web.xml
The index.html file says 'Hello, world!' and the
web.xml file has the following in it:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Test
Application</display-name>
</web-app>
To run the app from Tomcat I add the following
line to conf/server.xml:
<Context path="/mytest" docBase="C:/work/mytest"
debug="0" reloadable="true" />
To run the app from Resin I add the following line to
conf/resin.conf:
<web-app id='mytest'
app-dir='/work/mytest'></web-app>
To run the app from Weblogic I add the following line
to weblogic.properties:
weblogic.httpd.webApp.mytest=c:/work/mytest
I do not have a clue how to point Orion to this simple app
and have it run. I have tried on and off over several months with no success.
Why is this so hard to do?
Bryant
|