and WEB-INF/web.xml is there? is it correct?

-----Original Message-----
From: Matthew TorreAlto [mailto:[EMAIL PROTECTED]]
Sent: Martes, 21 de Noviembre de 2000 16:19
To: Orion-Interest
Subject: Deploying a servlet ear, war: help an oroin newbie


I am trying to deploy a servlet with Orion. The servlet runs fine in
JBuilder. It even runs in Orion if I stick it in the default web application

directory. But I want to do it right and use the ear, war files. (or do I)

When I run Orion it seems to pick it up the ear and war file okay.
Orion finds the ear file and unbundles the war file inside.
But..... When I post I get an Error...

I think I set up the web.xml and application.xml just so... I based this off

the orion-primer example and I even reused the build.xml ant file with some 
modifications. (I really like ant.) Everything builds just groovy. I even 
check the war and ear files and everything seems in order.

I've enclosed what I think are the related parts of the application.xml, 
web.xml and the entries in config/server.xml. And I show the html for the 
form post that does not work and the post that does work (running against 
the default web application). If you can help, I'd sure appreciate it. I may

just have the post screwed up (listed at the bottom).

The web.xml file has the following entry... shortened.

<servlet>
    <servlet-name>com.objectgeneration.sample.EmployeeForm
</servlet-name>
    <servlet-class>com.objectgeneration.sample.EmployeeForm</servlet-class>
</servlet>

The application.xml has the following entry.

<module>
    <web>
      <web-uri>employee-app-web.war</web-uri>
      <context-root>/employee-app</context-root>
    </web>
</module>

When I run Orion it seems to pick it up okay.

I made the following entries in the Orion setup files.
In config/server.xml I made this entry...

<application name="employee-app"
            path="D:\Personal\Proto\CodeGen\Employee3
\rel\employee-app.ear" />

Orion finds it the ear file and unbundles the war file inside.

But..... When I post I get an Error...

The post looks like this....
<form action="/employee-app/com.objectgeneration.sample.EmployeeForm"
method="post">

And it does not work....
However when I post to the one I installed in the default web
application it works great.....

<form action="/servlet/com.objectgeneration.sample.EmployeeForm"
method="post">

-- Yours truly
Mateo Torrealto



____________________________________________________________________________
_________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Reply via email to