openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gurkan Erdogdu <>
Subject Re: Testing OWB against JSF 2.0 RI ?
Date Mon, 31 Aug 2009 17:29:54 GMT
Hi Sven;

>>However as I am further determining features and benefits of the duo
OWB + JSF 2.0 RI in webapplications, I can update you about usage of
these both >>together, if you want.

Yeah, it will be fine. Also it is very good idea to run our samples via JSF 2.0. Please also
share your experience with our dev@ list.

Thanks a lot;


From: Sven Linstaedt <>
Sent: Monday, August 31, 2009 7:00:05 PM
Subject: Re: Testing OWB against JSF 2.0 RI ?

Actually it turns out, the OWB exceptions were caused by JSF 2.0 RI by dispatching resource
request to a full jsf lifecycle, if the FacesServlet is prefix mapped to the application's
root. Because the request has no viewstate attached and the URI could not be resolved to a
metadata view the viewroot is null, so JSFUtil.isPostBack() fails.

However as I am further determining features and benefits of the duo OWB + JSF 2.0 RI in webapplications,
I can update you about usage of these both together, if you want.

br, Sven

    at com.sun.faces.context.ExceptionHandlerImpl.handle(
    at com.sun.faces.lifecycle.Phase.doPhase(
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(
    at com.sun.faces.lifecycle.LifecycleImpl.execute(
    at javax.faces.webapp.FacesServlet.service(
    at org.mortbay.jetty.servlet.ServletHolder.handle(
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
    at org.apache.webbeans.jsf.WebBeansJSFFilter.doFilter(
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
    at org.mortbay.jetty.servlet.ServletHandler.handle(
    at org.mortbay.jetty.servlet.SessionHandler.handle(
    at org.mortbay.jetty.handler.ContextHandler.handle(
    at org.mortbay.jetty.webapp.WebAppContext.handle(
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
    at org.mortbay.jetty.handler.HandlerCollection.handle(
    at org.mortbay.jetty.handler.HandlerWrapper.handle(
    at org.mortbay.jetty.Server.handle(
    at org.mortbay.jetty.HttpConnection.handleRequest(
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
    at org.mortbay.jetty.HttpParser.parseNext(
    at org.mortbay.jetty.HttpParser.parseAvailable(
    at org.mortbay.jetty.HttpConnection.handle(
    at org.mortbay.thread.BoundedThreadPool$
Caused by: java.lang.NullPointerException
    at org.apache.webbeans.util.JSFUtil.isPostBack(
    at org.apache.webbeans.jsf.WebBeansPhaseListener.afterPhase(
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(
    at com.sun.faces.lifecycle.Phase.doPhase(
    ... 23 more

2009/8/31 Gurkan Erdogdu <>

Hi Sven;
>Last time Matthias Wessendorf from MyFaces Project also tried to use JSF 2.0 with OWB
but he was not successful. I do not know what is the problem with JSF 2.0.  I did not try
using JSF 2 with OWB.
>Could you give an exception stack trace that your application throws?  Which implementation
you use RI JSF 2 or MyFaces ?
>-- Gurkan
>2009/8/31 Sven Linstaedt <>
>>I suppose OWB should also work with JSF 2.0, even the examples currently use JSF 1.x.
Today I tried to check out some of the new JSF 2 features and run into various problems (in
other words: exceptions). Is there someone already tried to use this combination of frameworks
and give me a hint, if the web.xml and faces-config.xml setup differs between usage of OWB
in JSF 1.x and JSF 2.0?
>>br, sven
>Gurkan Erdogdu

View raw message