The application server needs to know the mapping so it can invoke the
FacesServlet when the url matches the mapping. But why would the
FacesServlet itself need to know its mapping?

I didn't have a problem with the RI regarding validation of the web.xml.
I don't think the RI is even parsing the web.xml; it doesn't have a
context startup listener, unlike MyFaces.

-----Original Message-----
From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 1:05 PM
To: Virtudazo, Dennis (Exchange)
Cc: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: MyFaces with Weblogic


On Thu, 24 Feb 2005 09:29:45 -0500, Virtudazo, Dennis (Exchange)
<[EMAIL PROTECTED]> wrote:
> Btw, it wasn't the parsing of faces-config.xml that was causing the 
> problem. It was the parsing of the web.xml.  I don't know why MyFaces 
> (its ServletContextListener) is even trying to parse web.xml, I would 
> think web.xml is already parsed by the application server and anything

> MyFaces needs is available through the j2ee api.

Any JSF implementation is going to need to know how FacesServlet is
mapped (i.e. /faces/* or *.faces).  However, there's no API in the
servlet spec to ask the container for that information, so it has to be
parsed again by the JSF implementation.

The RI does the same thing.

Craig


***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************

Reply via email to