Tuesday Jan 28, 2014

Using updated release of Jersey, Tyrus, Weld, ... in GlassFish 4

The Java EE specification is an umbrella specification that refers to different components specifications, aka components JSRs (e.g. Servlet, JMS, JAX-RS, ...). And as the Java EE 7 Reference Implementation, GlassFish 4 is made of those different components JSRs Reference Implementations. 

In addition to the specification, most of those implementations (eg. Jersey) also offers additional features (and fixes). And clearly, the different implementations that make GlassFish are evolving each at a different pace. Jersey (JAX-RS RI), Tyrus (WebSocket RI), Weld (CDI RI), Mojarra (JSF RI) are examples of implementations that evolves rapidly. GlassFish 4.0 embeds Tyrus 1.0, Jersey 2.0, Mojarra 2.2.0 and Weld 2.0.0.SP1 but since that time, those implementations have evolved quite a lot. As of today, the current release of Tyrus is 1.4, the current release of Jersey is 2.5.1, the current release of Weld is 2.0.5 and the current release of release of Mojarra is 2.2.5.

So what to do if you want to use one of the new features provided by one of those implementations in GlassFish 4? One way is to wait that the specific version of that implementation, say Jersey for example, is integrated in a nightly build of the GF 4.0.1 branch. Another solution is to upgrade the specific implementation (e.g. Jersey) in an existing GlassFish 4 setup. The following posts explains how to update Tyrus, how to update Jersey, how to update Weld and how to update Mojarra in a GF4 setup. 

It should be mentioned that no extra testing has been done, so clearly do not do this in any critical environments. And if the updated setup is not stable, it is always easy to come back to the initial configuration. Most of the time, it's just a matter of putting back the original implementation Jar and restarting GlassFish. For Jersey, the provided update script is able to restore the initial configuration if needed. 
Also, since Jersey has dependencies on HK2 and since HK2 has been updated between GF 4.0 and the 4.0.1 branch, it is only possible to update Jersey in a GlassFish 4.0.1 build.

In any cases, if you are using GF 4 with an updated version of Tyrus, Jersey, Mojarra or Weld, we would like to hear your feedback!

Monday Mar 05, 2012

GlassFish 3.1.2 Updated Components (Final)

Now that GlassFish 3.1.2 has been released, it's time to check on the exact list of updated components (one of the important themes in pretty much every release).

• JSF/Mojarra 2.1.6
• Grizzly 1.9.46
• Metro 2.2
• Jersey 1.11
• Shoal 1.6.17
• EclipseLink 2.3.2
• Message Queue 4.5U2
• OSGi Core 4.3.0
• Update Center 2.3.5
• Hibernate Validator 4.2.0-FCS
• JavaDB 10.8.1.2
• Weld 1.1.4.Final

ALT_DESCR

About half of the bugs squashed in this GlassFish 3.1.2 release were through the integration of those recent components.

Saturday Nov 12, 2011

JSF 2.2 recent progress - Early Draft

JSF specification lead Ed Burns has an update on the progress of JSF 2.2, another component which should be required as part of the upcoming Java EE 7 standard.

JSF spec logo

This includes a reminder of the scope of this specification, the availability of the early draft and height specific features that are being worked on and split into "Mostly Specified Features" and "Not Yet Fully Specified Features" (I think you can read the latter as "at risk"). My favorite is "763-EverythingIsInjectable".

Remember that JSF 2.2 is due out in the middle of 2012 which is in time to be integrated in the Java EE 7 platform JSR (currently scheduled for second half of 2012). In the mean time, JSF 2.2 nightly builds are available.

Wednesday Sep 28, 2011

Ed Burns discusses JSF and HTML5

Ed Burns, the JSF spec lead, has a blog post discussing HTML5 in JSF 2.2 and identifying Metadata, Sectioning and Form elements as the key areas to evolve in the specification.

ALT_DESCR

We've previously discussed support for WebSocket in GlassFish/Grizzly but the wider HTML5 standard, while still somewhat of a moving target, cannot be ignored.

Expect more concrete news and progress in the coming weeks and months in both specifications and implementations.

Thursday Jun 16, 2011

Mojarra (JSF) 2.1.2 is here

The Mojarra 2.1.2 release was cut a few days ago. Here are the full Maven coordinates : api, impl. You can also get to the release notes and to the list of bugs fixed in this release.

Mojarra 2.1.2

This is scheduled for inclusion into the upcoming GlassFish 3.1.1 release. In fact it's already integrated in the latest promoted build (#8) which also includes woodstox 4.1.1. Weld 1.1.1.Final has already been integrated a few builds ago.

The JSF team is now working on JSR 344 (JSF 2.2) for which you can get a status by visiting http://jsf-spec.java.net/ and the associated mailing lists. A first expert draft is now available.

Wednesday May 25, 2011

Transparency, Mojarra-style

In addition to the announced transparency in Java EE 7, each open source implementation has its own set of initiatives to encourage participation and feedback via transparent development.

Mojarra, the production-quality reference implementation shipping in the majority of application servers is no exception as you can read in this blog post by Ed Burns covering ohloh and svnsearch.

ALT_DESCR

These transparency principles are overal true for GlassFish (a transparent fish) as illustrated in this recent post. Check out its ohloh page and the svnsearch page.

Sunday Jan 09, 2011

ICEFaces 2.0, more familiar faces for the new year

ALT DESCR

The long-awaited version 2 of ICEfaces was released late in December 2010.
This version extends the JSF 2.0 features to add a new suite of components, an alternative to <f:ajax/> (see Direct-to-DOM render kit) for existing JSF components, a re-architected AjaxPush/Comet support now available as the IcePush library usable from other non-JSF frameworks, and more.

The release announcement shows support for NetBeans 6.9, Eclipse 3.6, explicit versions of Mojarra (latest is JSF 2.1-b09, minimum is JSF 2.0.3), and GlassFish 3.0, 3.1 Milestone 7 (among others). You can hear about ICEfaces in a recently published JSFCentral interview of Ted Goddard, read this other interview or check out the ICESoft YouTube channel. They also have an upcoming webinar.

ICEFaces 2.0 has come a long way since GlassFish v3 and JSF 2.0 were released (it was then in alpha) and remains a quite popular choice among GlassFish users. In related news, Mojarra 2.1.0 RC1 is now available (via Maven or in the latest promoted build of GlassFish 3.1).

Thursday Oct 29, 2009

GlassFish v2.1.1 is Now Available

GlassFish v2.1.1 is out (Sun Distro, Community Distro). GFv2.1.1 is the foundation for SailFin v2 and includes refinements on Replication and Failure detection plus many (>200) bug fixes and other improvements. See Shreedhar' s Overview, Kevin's post, the Wiki page and PR @Oracle OpenWorld.

GFv2.1.1 also includes OpenMQ 4.4, Grizzly 1.0.30 (changes), Jersey 1.0.3 (changes), Shoal 1.1 (changes) and JSF 1.2_13. The bulk of the changes are from the GF repository (changes).

The commercial offering is via the GlassFish Portfolio. Note that GFv2.1.1 is also a patch for earlier releases (GFv2.1, itself a patch for GFv2U2) but the patch has not yet published at SunSolve. I'll post an entry at GlassFishForBusiness when it becomes available.

Monday Oct 19, 2009

Mojarra 2.0.0 is here! Start Using JSF 2.0 Now!

ALT DESCR

Mojarra 2.0, the production-quality, reference implementation for JSF 2.0 is out! Yet another step closer to v3 final. This will of course be part of GlassFish v3 later this year (with an integration planned as early as this week) but Maven and standalone are two other options to grab the bits.

In his blog, Ryan lists a set of very good resources (mainly blog posts) on JSF 2.0. Earlier this year, Ryan authored a series of blogposts which were also very detailed and informative. He covers tools support (yes, it's coming very soon as Cay discusses for NetBeans in his latest blog post) and recognizes the numerous contributors to this major release.

Note also that while JSF 2.0 is set to be part of Java EE 6, it does not require a servlet 3.0 container. In the case of GlassFish v3.0, web.xml is optional and there is no longer the need to declare the Faces servlet (see Cay's entry on that as well).

Mojarra as an implementation of JSF 2.0 is the first one out but it is also set to be part of a number of coopetitor's. Finally, now is probably a good time to skim throught The Aquarium posts tagged with the jsf2 and mojarra keywords.

Added The latest release is Mojarra 2.0.1, see Jim's post.

Sunday Jul 19, 2009

Mojarra 2.0 beta2 Implements PFD for JSF 2.0

ALT DESCR

There is a new beta for Mojarra 2.0, the RI of JSF 2.0 (relnotes, news, downloads).

Mojarra 2.0 is bundled in GlassFish v3 and the new release of Mojarra is included in recent Promoted Builds; an alternative is to use the Update Center and only update JSF.

The Update Crenter is accessed through an update tool; either the one bundled in the GlassFish console or the unbundled one. To do that, first ensure that you have http://pkg.glassfish.org/v3/dev as your preferred repository and then check on available updates. You will get a long list; you can then unselect all the components (using (Command-Modifier)-U on my mac) and then select JSF only. Then you just need to install the new packages.

Thanks to Jim for the tip. Ah!, also note that Mojarra can also be used in other containers; install and configure it manually.

Thursday Jul 09, 2009

Google AppEngine and NetBeans ... and Mojarra / JSF

ALT DESCR

There is a new project at Kenai: NBAppEngine. As the name suggests, this is intended to provide a NetBeans plugin for the Google AppEngine. Check the introductory writeups by Petr and Geertjan; check it out, and consider helping out.

On a related topic, I noticed that Mojarra 1.2.13 now has "support" for Google AppEngine; see ChangeLog.

Now, if we could only get them to Support JPA Properly...

Monday May 25, 2009

IceFaces' Ajax with JSF 2.0 (Mojarra)

ALT DESCR

JSF 2.0 is arguably one of the most awaited update to the Java EE 6 specification. IceFaces, the well-known provider of Ajax-enabled JSF components, is now building its 2.0 version on top of the Ajax support now built into the JSF 2.0 specification. Co-specification lead Roger Kitain has a recent blog entry discussing how ICEFaces uses JSF 2.0 to send Ajax requests from the client and how it processes them on the server.

In other recent JSF news, Ryan Lubke discusses bookmark-ability in JSF 2.0 (with the reference Mojarra implementation). Previous entries regarding JSF 2.0 can be found using the jsf2 tag.

In a few days time you'll be able to use the Preview version of GlassFish v3 which supports JSF 2.0. The adventurous can grab a recent GlassFish v3 promoted build here.

Saturday Jan 10, 2009

Implementation for Latest JSF 2.0 - Now in the Update Center

ALT DESCR

The JSF 2.0 team last month released an implementation of the new JSF 2.0 PRD (see JCP vote) and an updated JSF 1.2.11.

The releases are available at the GFv3 Update Center (see, e.g., Mac) and can be installed using the stand-alone UpdateTool or the Admin Console. Let us know if you encounter any problems.

This implementation has all PRD features including the Declarative Events described by Jason, but the EG is still working on additional features like state management. A few others, like bookmarkable URLs, are still being discussed and may or not make it.

Sunday Dec 14, 2008

How to Use MyFaces with GlassFish - an Update

Most migrations to GlassFish are straight-forward, a testimony to the value of the JavaEE specification (and to the extra care to the user in the GF community!). The only area that sometimes requires non-trivial changes are dependencies on implementation details in MyFaces.

The GlassFish JSF implementation (Mojarra) is Used in Many Containers and the new JSF 2.0 spec should improve portability but GF supports a useMyFaces Property for this use case. Arun just published a note showing how to use the property when Using Apache Tomahawk but I'm extracting here the configuration table for ease of reference:

ALT DESCR

• On GlassFish v2 - Set "useMyFaces" in "sun-web.xml"
• On GlassFish v3 Prelude - Not supported
• On GlassFish v3 Trunk - Set "useMyFaces" OR "useBundledJsf" in "sun-web.xml".

Note that you also need to disable Facelets 2.0 in "web.xml" if you have Facelets 1.1.x dependencies.