Jetty6, JSF 1.2 and Resource Injections

In my last blog entry I talked about the InjectionProvider discovery protocol we implemented in the JSF RI and that we'd be an InjectionProvider for Jetty6.

I'd like to report that the Jetty6InjectionProvider is in now in place in the current RI nightly builds and will be released with 1.2_04.

See this link for details on what annotations Jetty6 supports.
See this link for details on installing the RI for use with Jetty6.

If you have any issues getting this to work, drop me a line.

I'd like to thank Jan Bartel and Greg Wilkins of the Jetty team for their
support in getting this working.




powered by performancing firefox

Comments:

I'm running Jetty 6.1.0 with jsf-1.2_01-b04.jar, with a jsf demo app and I keep getting 2007-03-01 07:24:51.187::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@16921fd{/jsf-renderkit ,jar:file:/C:/installation/jetty-6.1.0/jetty-6.1.0/webapps/jsf-renderkits.war!/} javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/installation/jetty-6.1.0/jetty-6.1.0/lib/ext/j f/jsf-impl.jar!/com/sun/faces/jsf-ri-runtime.xml: Error at line -1 column -1: null at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1587)

Posted by Chui on February 28, 2007 at 05:25 AM PST #

Jetty had a bug in their LogFactory implementation that caused this problem. I would recommend upgrading to 6.1.2rc0.

Posted by Ryan Lubke on February 28, 2007 at 05:30 AM PST #

I'm trying to implement a JSF 1.2 application with JPA (Hibernate Entity Manager) + JTA (jotm-2.0.11 snapshot) to run in Jetty. One problem I'm facing now is the @PersistenceContext annotation is not injected by JSF RI 1.2_04 Jetty6InjectionProvider class (which actually delegates work to Jetty classes and Jetty doesn't support @PersistenceContext annotation). Do you have any idea about how can I use @PersistenceContext annotation in Jetty? Of course if I write my application for some JEE5 server like Geronimo/JBoss/Glassfish then the issue will be resolved but I like the idea testing JSP page without rebuild/redeploy my app (using mvn jetty:run command). In my idea JẸE servers are still heavy because development lifecycle still takes time...

Posted by Thai Ha on April 02, 2007 at 12:09 PM PDT #

I would like to heartily thank you since this problem (The jetty 6.1.2 upgrade) was the reason why I could not upgrade my JSF RI 1.2/Jetty 6 pair to run correctly. Thanks

Posted by Dominique Paquin on April 25, 2007 at 06:38 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

user12615560

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today