On 2/26/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> Since JSF is part of the JEE 5 spec users don't need to include the
> JSF jars or their dependencies in their webapps when deploying into
> Geronimo 2.0.  This makes developing a webapp much easier but makes

the jsf-jars in the WEB-INF/lib should be ignored, AFAIK

In the spec I see that javax.faces.* classes should not be included in
WEB-INF/lib but I don't see any specific discussion about the the
servlet container ignoring them when they are present.  I may be
overlooking something, but at any rate I agree with you that they
should be ignored.  In fact the current behavior in Geronimo is to not
allow web apps to override classes in javax.*.

> developing JSF a little more tricky because the MyFaces jars are part
> of the server runtime.  But for a MyFaces developer the advantage of
> taking this approach is that you can test your code in a full JEE
> stack where new JSF 1.2 features like resource injection come into
> play.  If you decide to use Geronimo for a MyFaces development or
> testing environment then you'll want to overwrite the MyFaces jars in
> geronimo/repository/org/apache/myfaces as you make code changes to

so "replacing" JSF is straight forward w/ Geronimo?

What if I have to use JSF RI ?
Do you guys also have a strategy for that ? Is there a special GBean /
Connector or else needed for ? Not that I have to use RI, but I am
interested in that ;)

As mentioned above, the spec says that apps should not include
javax.faces in their webapps, so overriding MyFaces with another JSF
impl would need to be configured at the server level.  Geronimo
provides a pretty flexible dependency system that will allow the user
to choose, for example, tomcat or jetty for the servlet container,
cayenne or openjpa for JPA, axis2 or cxf for web services, etc... When
all is said and done, I think Geronimo will provide the user with 1 or
2 configurations for download that have been specifically tested using
the TCK and then allow them to customize their server if desired using
plugins.  Right now the only JSF implementation on Geronimo's radar is
MyFaces, but if there's a desire to implement an additional
configuration based on the JSF RI or provide it as a plugin then that
would certainly be doable.

Best wishes,
Paul

Reply via email to