You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2006/02/24 16:28:20 UTC

StartupServletContextListener in tomhawk-sandbox-examples web.xml but not in examples-simple web.xml

We have inconsistently defined a listener entry in the
tomahawk-sandbox-examples web.xml file but not in the
myfaces-example-simple web.xml file.

<listener>
  <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

I found out because sandbox examples work as-is with jetty 5.1.8, but
the simple examples do not.

I'm guessing we want to remove the listener declaration from sandbox.
I wouldn't be opposed to adding it to simple, though :)

I'm guessing it's problematic to have the listener defined in both the
tld file and the web.xml file on most containers, but I don't know for
sure.

-Mike

Re: StartupServletContextListener in tomhawk-sandbox-examples web.xml but not in examples-simple web.xml

Posted by Mike Kienenberger <mk...@gmail.com>.
On 2/25/06, Matthias Wessendorf <mw...@gmail.com> wrote:
> But I added the listener to your archetype, because of I added the
> Jetty6 plugin for mvn.
> So calling "jetty:run" will start the container and deploy the sample
> app, without getting that error message ;-)

How hard would it be for you to add "jetty:run" to the tomahawk and
sandbox examples?

Also, according to Greg of Jetty, the TLD listeners should be picked
up by default in Jetty 6, so the web.xml file listener entry isn't
needed for Jetty 6.

Re: StartupServletContextListener in tomhawk-sandbox-examples web.xml but not in examples-simple web.xml

Posted by Matthias Wessendorf <mw...@gmail.com>.
> Lets remove from sandbox to be consistent.

+1

But I added the listener to your archetype, because of I added the
Jetty6 plugin for mvn.
So calling "jetty:run" will start the container and deploy the sample
app, without getting that error message ;-)

-Matthias

> On 2/24/06, Mike Kienenberger <mk...@gmail.com> wrote:
> > We have inconsistently defined a listener entry in the
> > tomahawk-sandbox-examples web.xml file but not in the
> > myfaces-example-simple web.xml file.
> >
> > <listener>
> >   <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> > </listener>
> >
> > I found out because sandbox examples work as-is with jetty 5.1.8, but
> > the simple examples do not.
> >
> > I'm guessing we want to remove the listener declaration from sandbox.
> > I wouldn't be opposed to adding it to simple, though :)
> >
> > I'm guessing it's problematic to have the listener defined in both the
> > tld file and the web.xml file on most containers, but I don't know for
> > sure.
> >
> > -Mike
> >
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

Re: StartupServletContextListener in tomhawk-sandbox-examples web.xml but not in examples-simple web.xml

Posted by Sean Schofield <se...@gmail.com>.
Lets remove from sandbox to be consistent.

On 2/24/06, Mike Kienenberger <mk...@gmail.com> wrote:
> We have inconsistently defined a listener entry in the
> tomahawk-sandbox-examples web.xml file but not in the
> myfaces-example-simple web.xml file.
>
> <listener>
>   <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> </listener>
>
> I found out because sandbox examples work as-is with jetty 5.1.8, but
> the simple examples do not.
>
> I'm guessing we want to remove the listener declaration from sandbox.
> I wouldn't be opposed to adding it to simple, though :)
>
> I'm guessing it's problematic to have the listener defined in both the
> tld file and the web.xml file on most containers, but I don't know for
> sure.
>
> -Mike
>