Marko, Have a look at this page here for info on using annotations embedded: http://www.eclipse.org/jetty/documentation/current/using-annotations-embedded.html
Jan On 19 July 2013 07:21, Marko Asplund <[email protected]> wrote: > Hi, > > I'm having problems running a servlet 3.0 webapp in an embedded Jetty 9 > (9.0.4.v20130625) instance. > I've tried to follow the "OneWebApp.java" example found here: > http://www.eclipse.org/jetty/documentation/current/embedded-examples.html > > I'm having the following issues: > - webapp includes a servlet for which servlet mapping is specified using > @WebServlet urlPatterns attribute. > Jetty doesn't appear to apply this mapping > - webapp includes a ServletContainerInitializer, which doesn't appear to get > executed > > Do I need to do some extra configuration to get these features working? > I've tested the webapp with Tomcat 7 and it works correctly in that server. > > Jetty WebAppContext class allows adding servlets and filters > programmatically, but how do I add a ServletContextListener? > > > marko > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > -- Jan Bartel <[email protected]> www.webtide.com – Developer advice, services and support from the Jetty & CometD experts. _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
