You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by rachel321 <ka...@amentra.com> on 2009/07/14 17:24:12 UTC
WebXml changes between 1.1.x and 1.2.x break with ServletWrapper
MyFaces version 1.2.X uncommented a couple lines of code that exist but are
commented-out in Myfaces 1.1.X- I am trying to find out why these lines are
'uncommented' in Myfaces 1.2.X because they cause a breakage when using a
ServletWrapper (such as coherence*web in our case). i am trying to identify
the best way to fix this incompatibility...
The WebXml.class code in question:
getFacesServletMappings() method:
1.1 - commented out:
// if (FacesServlet.class.isAssignableFrom(servletClass) ||
//
DelegatedFacesServlet.class.isAssignableFrom(servletClass))
// {
1.2.X: uncommented:
if (FacesServlet.class.isAssignableFrom(servletClass) ||
DelegatedFacesServlet.class.isAssignableFrom(servletClass))
{
--
View this message in context: http://www.nabble.com/WebXml-changes-between-1.1.x-and-1.2.x-break-with-ServletWrapper-tp24481808p24481808.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.
Re: WebXml changes between 1.1.x and 1.2.x break with ServletWrapper
Posted by Leonardo Uribe <lu...@gmail.com>.
Hi
In 1.2.x a new web.xml context param
org.apache.myfaces.DELEGATE_FACES_SERVLET was introduced to normalize what
to do when people uses a Servlet wrapper. Just point it to your server
wrapper class name.
see https://issues.apache.org/jira/browse/MYFACES-2234
This type of questions goes on myfaces users list. This list is used to talk
about development of myfaces.
regards
Leonardo Uribe
2009/7/14 rachel321 <ka...@amentra.com>
>
> MyFaces version 1.2.X uncommented a couple lines of code that exist but are
> commented-out in Myfaces 1.1.X- I am trying to find out why these lines are
> 'uncommented' in Myfaces 1.2.X because they cause a breakage when using a
> ServletWrapper (such as coherence*web in our case). i am trying to
> identify
> the best way to fix this incompatibility...
>
> The WebXml.class code in question:
>
> getFacesServletMappings() method:
>
> 1.1 - commented out:
> // if (FacesServlet.class.isAssignableFrom(servletClass) ||
> //
> DelegatedFacesServlet.class.isAssignableFrom(servletClass))
> // {
>
> 1.2.X: uncommented:
> if (FacesServlet.class.isAssignableFrom(servletClass) ||
>
> DelegatedFacesServlet.class.isAssignableFrom(servletClass))
> {
>
> --
> View this message in context:
> http://www.nabble.com/WebXml-changes-between-1.1.x-and-1.2.x-break-with-ServletWrapper-tp24481808p24481808.html
> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>
>