Juan Lorandi et al, Thanks for your help. WRT "and WEB-INF/web.xml is there? is it correct?" I believe the directory structure is correct. It is as follows (listed with tree utility /F /A options) \---WEB-INF | web.xml | \---classes \---com \---objectgeneration \---sample Employee.class EmployeeForm.class I am not sure if the web.xml is correct, but here it is as follows. (it looks correct to me) ------------------------------------ <?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>Employee Web Application</display-name> <servlet> <servlet-name>EmployeeForm</servlet-name> <description>Servlet that calls the Employee Session Bean</description> <servlet-class>com.objectgeneration.sample.EmployeeForm</servlet-class> <init-param> <param-name>jdbcURL</param-name> <param-value>jdbc:odbc:test</param-value> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> <param-name>jdbcUser</param-name> <param-value>sa</param-value> <param-name>jdbcPassword</param-name> <param-value></param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>EmployeeForm</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app> --------------------------------- I've included the above file as an email attachement in case it gets chewed up by email. Juan thanks for your help. --- Mateo TorreAlto > > > > >From: "Juan Lorandi (Chile)" > <[EMAIL PROTECTED]> > >Reply-To: Orion-Interest > <[EMAIL PROTECTED]> > >To: Orion-Interest <[EMAIL PROTECTED]> > >Subject: RE: Deploying a servlet ear, war: help an > oroin newbie > >Date: Tue, 21 Nov 2000 18:02:31 -0300 > > > >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 > > > > > > _____________________________________________________________________________________ > Get more from the Web. FREE MSN Explorer download : > http://explorer.msn.com > > . > ______________ > Get more from the Web. FREE MSN Explorer download : > http://explorer.msn.com > > . > __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
<?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>Employee Web Application</display-name> <servlet> <servlet-name>EmployeeForm</servlet-name> <description>Servlet that calls the Employee Session Bean</description> <servlet-class>com.objectgeneration.sample.EmployeeForm</servlet-class> <init-param> <param-name>jdbcURL</param-name> <param-value>jdbc:odbc:test</param-value> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value> <param-name>jdbcUser</param-name> <param-value>sa</param-value> <param-name>jdbcPassword</param-name> <param-value></param-value> </init-param> </servlet> <!-- <ejb-ref> <ejb-ref-name>ejb/EmployeeSessionHome</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>com.objectgeneration.sample.ejb.EmployeeSessionHome</home> <remote>com.objectgeneration.sample.ejb.EmployeeSession</remote> </ejb-ref> --> <servlet-mapping> <servlet-name>EmployeeForm</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app>