You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Martin Dubuc <ma...@gmail.com> on 2007/05/31 23:02:44 UTC

tomahawk 1.1.5 and JSF 1.2/Tomcat 6

I would like to use tomahawk 1.1.5 with JSF 1.2 RI inside Tomcat 6. Is
this combinatiion supported? I have tried to load the tomahawk
examples, but I get an exception when loading the first page:

May 31, 2007 8:37:33 PM com.sun.faces.config.ConfigureListener configure
SEVERE: null MessageFactory
java.lang.ClassCastException:
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener cannot
be cast to javax.faces.event.PhaseListener
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:885)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)

               at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

               at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
...

I have followed instructions on MyFaces pages, including setting up
the extensions filter.

Martin

Re: tomahawk 1.1.5 and JSF 1.2/Tomcat 6

Posted by Martin Dubuc <ma...@gmail.com>.
Ryan,

I am not sure why you are asking what I have in WEB-INF/lib. I am not
trying to execute a custom application. For testing purposes, I am
just trying to get some example applications to work. I have copied
tomahawk-1.1.5.jar in tomcat's lib directory. Then, I copied to
tomcat's webapps directory one of the war files that I found in the
tomahawk-examples-1.1.5-bin.tar (for instance
myfaces-example-blank-1.1.5.war).

I modified tomcat's conf/web.xml to add the following statements:
    <filter>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <filter-class>
            org.apache.myfaces.webapp.filter.ExtensionsFilter
        </filter-class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value>
            <description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB
            </description>
        </init-param>
    </filter>

   <!-- extension mapping for adding <script/>, <link/>, and other resource
         tags to JSF-pages  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <!-- servlet-name must match the name of your
             javax.faces.webapp.FacesServlet entry -->
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>

    <!-- extension mapping for serving page-independent resources (javascript,
         stylesheets, images, etc.)  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    </filter-mapping>

    <!-- extension mapping for adding <script/>, <link/>, and other resource
         tags to JSF-pages  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <url-pattern>*.jsf</url-pattern>
    </filter-mapping>

I restarted Tomcat and got the exception that I reported in the first
message of this thread.

I don't know if tomahawk 1.1.5 is supposed to work with JSF 1.2 Sun RI.

Martin

On 6/1/07, rlubke <Ry...@sun.com> wrote:
>
> I'm not able to reproduce.
>
> What do you have in WEB-INF/lib?
>
>
>
> martind1111 wrote:
> >
> > I am using JSF version 1.2_04-b07-FCS.
> >
> > Martin
> >
> > On 5/31/07, rlubke <Ry...@sun.com> wrote:
> >>
> >> What's the exact version of the RI you're using?
> >>
> >>
> >> martind1111 wrote:
> >> >
> >> > I would like to use tomahawk 1.1.5 with JSF 1.2 RI inside Tomcat 6. Is
> >> > this combinatiion supported? I have tried to load the tomahawk
> >> > examples, but I get an exception when loading the first page:
> >> >
> >> > May 31, 2007 8:37:33 PM com.sun.faces.config.ConfigureListener
> >> configure
> >> > SEVERE: null MessageFactory
> >> > java.lang.ClassCastException:
> >> > org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener cannot
> >> > be cast to javax.faces.event.PhaseListener
> >> >         at
> >> >
> >> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:885)
> >> >         at
> >> >
> >> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
> >> >         at
> >> >
> >> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
> >> >         at
> >> >
> >> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
> >> >         at
> >> >
> >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
> >> >         at
> >> >
> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> >> >         at
> >> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> >> >         at
> >> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> >> >         at
> >> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
> >> >         at
> >> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
> >> >
> >> >                at
> >> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> >> >
> >> >                at
> >> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
> >> >         at
> >> >
> >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> >> >         at
> >> >
> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> >> >         at
> >> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> >> >         at
> >> > org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> >> > ...
> >> >
> >> > I have followed instructions on MyFaces pages, including setting up
> >> > the extensions filter.
> >> >
> >> > Martin
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/tomahawk-1.1.5-and-JSF-1.2-Tomcat-6-tf3848875.html#a10902930
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/tomahawk-1.1.5-and-JSF-1.2-Tomcat-6-tf3848875.html#a10921010
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: tomahawk 1.1.5 and JSF 1.2/Tomcat 6

Posted by rlubke <Ry...@Sun.COM>.
I'm not able to reproduce.

What do you have in WEB-INF/lib?



martind1111 wrote:
> 
> I am using JSF version 1.2_04-b07-FCS.
> 
> Martin
> 
> On 5/31/07, rlubke <Ry...@sun.com> wrote:
>>
>> What's the exact version of the RI you're using?
>>
>>
>> martind1111 wrote:
>> >
>> > I would like to use tomahawk 1.1.5 with JSF 1.2 RI inside Tomcat 6. Is
>> > this combinatiion supported? I have tried to load the tomahawk
>> > examples, but I get an exception when loading the first page:
>> >
>> > May 31, 2007 8:37:33 PM com.sun.faces.config.ConfigureListener
>> configure
>> > SEVERE: null MessageFactory
>> > java.lang.ClassCastException:
>> > org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener cannot
>> > be cast to javax.faces.event.PhaseListener
>> >         at
>> >
>> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:885)
>> >         at
>> >
>> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
>> >         at
>> >
>> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
>> >         at
>> >
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
>> >         at
>> >
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
>> >         at
>> >
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>> >         at
>> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>> >         at
>> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>> >         at
>> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>> >         at
>> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>> >
>> >                at
>> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>> >
>> >                at
>> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>> >         at
>> >
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>> >         at
>> >
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> >         at
>> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>> >         at
>> > org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>> > ...
>> >
>> > I have followed instructions on MyFaces pages, including setting up
>> > the extensions filter.
>> >
>> > Martin
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/tomahawk-1.1.5-and-JSF-1.2-Tomcat-6-tf3848875.html#a10902930
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/tomahawk-1.1.5-and-JSF-1.2-Tomcat-6-tf3848875.html#a10921010
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: tomahawk 1.1.5 and JSF 1.2/Tomcat 6

Posted by Martin Dubuc <ma...@gmail.com>.
I am using JSF version 1.2_04-b07-FCS.

Martin

On 5/31/07, rlubke <Ry...@sun.com> wrote:
>
> What's the exact version of the RI you're using?
>
>
> martind1111 wrote:
> >
> > I would like to use tomahawk 1.1.5 with JSF 1.2 RI inside Tomcat 6. Is
> > this combinatiion supported? I have tried to load the tomahawk
> > examples, but I get an exception when loading the first page:
> >
> > May 31, 2007 8:37:33 PM com.sun.faces.config.ConfigureListener configure
> > SEVERE: null MessageFactory
> > java.lang.ClassCastException:
> > org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener cannot
> > be cast to javax.faces.event.PhaseListener
> >         at
> > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:885)
> >         at
> > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
> >         at
> > com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
> >         at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
> >         at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
> >         at
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> >         at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> >         at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> >         at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
> >         at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
> >
> >                at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> >
> >                at
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
> >         at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> >         at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> >         at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> >         at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> > ...
> >
> > I have followed instructions on MyFaces pages, including setting up
> > the extensions filter.
> >
> > Martin
> >
> >
>
> --
> View this message in context: http://www.nabble.com/tomahawk-1.1.5-and-JSF-1.2-Tomcat-6-tf3848875.html#a10902930
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: tomahawk 1.1.5 and JSF 1.2/Tomcat 6

Posted by rlubke <Ry...@Sun.COM>.
What's the exact version of the RI you're using?


martind1111 wrote:
> 
> I would like to use tomahawk 1.1.5 with JSF 1.2 RI inside Tomcat 6. Is
> this combinatiion supported? I have tried to load the tomahawk
> examples, but I get an exception when loading the first page:
> 
> May 31, 2007 8:37:33 PM com.sun.faces.config.ConfigureListener configure
> SEVERE: null MessageFactory
> java.lang.ClassCastException:
> org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener cannot
> be cast to javax.faces.event.PhaseListener
>         at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:885)
>         at
> com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
>         at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
> 
>                at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 
>                at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> ...
> 
> I have followed instructions on MyFaces pages, including setting up
> the extensions filter.
> 
> Martin
> 
> 

-- 
View this message in context: http://www.nabble.com/tomahawk-1.1.5-and-JSF-1.2-Tomcat-6-tf3848875.html#a10902930
Sent from the MyFaces - Users mailing list archive at Nabble.com.