Hi, looking at orion documentation (web.xml configuration file) the syntax
of url-pattern tag is: 
        <url-pattern>/*.thePattern</url-pattern> 
so try adding the '/'...

Giustino De Vincentiis
e-mail: [EMAIL PROTECTED]

-----Messaggio originale-----
Da: PHiL [mailto:[EMAIL PROTECTED]]
Inviato: mercoled� 6 dicembre 2000 10.31
A: Orion-Interest
Oggetto: TR: Servlet not found


Hi,

I just could not call servlet, 404 error in the browser...

Here is what I've done:

Add the EAR file in the in the server.xml
<application name="Webactiv" path="../applications/webactiv.ear" />

Add the application in the default-web-site.xml
<web-app application="Webactiv" name="war-ic" root="/webactiv" />

When I start orion, all is ok, auto deploy run and create everything in the
/orion/applications and /orion/application-deployments.
Here is the trace:
C:\orion>java -jar orion.jar
Auto-unpacking C:\orion\applications\webactiv.ear... done.
Auto-unpacking C:\orion\applications\webactiv\war-ic.war... done.
Auto-deploying Webactiv (New server version detected)...
Auto-deploying ejb-jar-ic3.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic2.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic1.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic5975.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic59754.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic597545.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic597.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic6.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic5.jar (No previous deployment found)... done.
Orion/1.3.8 initialized
Auto-deploying NWA War (New server version detected)...

When I access to first jsp page: http://localhost:port/webactiv/Login.jsp it
show the page. This page submit Login/passwd to
http://localhost:port/webactiv/LoginServlet. The 404 error is here.

In the war-ic.war file I use the /WEB-INF/web.xml file to declare the
servlet and the alias:
  <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <display-name>LoginServlet</display-name>
    <description>no description</description>

<servlet-class>com.stratelia.webactiv.servlets.LoginServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>LoginServlet</url-pattern>
  </servlet-mapping>

My servlet classes are located in the /WEB-INF/classes/com/.../files.class

The deployed EAR is generated with the SUN deployer tool, and run today for
testing purpose under J2EE-RI test server.

Really need help to get ride of this one...
It's hard job to be new in orion's world!

Thanx

Philippe PAGET.



Reply via email to