hi phil
i saw ur web.xml file for mapping servlet
try giving forward slash in your <url-pattern> tag
like this

   <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>

note the forward slash in <url-pattern> tag before ur alias name
it should work


Umesh Sonavane
Software Engg.
Verchaska
www.verchaska.com


----- Original Message -----
From: PHiL <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Wednesday, December 06, 2000 4:00 PM
Subject: 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