webtier@glassfish.java.net

JSF 2.0 on Jetty

From: Martin Beránek <martin.beranek_at_i.cz>
Date: Tue, 13 Oct 2009 09:36:11 +0200

Hello,

I am new to this group. Since I use only JSF 1.2 (myfaces impl) with facelets.

We are using Jetty as embedded container in our app. With jsf1.2 it works fine. I am trying migrate to jsf2 (bacause of new features, cleaner code, integreted facelets, ...).

BUT, jsf anotations didn't work. I am staring server like this:

Server server = new Server(8080);
WebAppContext webapp = new WebAppContext("web","/");
server.setHandler(webapp);
server.start();
server.join();

I tried to debug initialization process of JSF, but it's too large to find proper lines.

thanks for help

-- 
Martin Beránek
mailto:martin.beranek_at_i.cz
http://www.i.cz