openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Arnošt <pavel.arn...@loutka.cz>
Subject Passivating and restoring beans on reload
Date Sun, 24 Jun 2012 13:34:59 GMT
Hi,

I have Tomcat 7.0.21 (because I have taken notice that there is a 
problem with passivation in Tomcat 7.0.22+) with OWB 1.1.4 and MyFaces 
2.1.8 and I'm trying to activate beans passivation/restoration on 
reload. I installed OWB and MyFaces into Tomcat's lib directory and 
into server.xml I added line:

<Listener 
className="org.apache.webbeans.web.tomcat.ContextLifecycleListener" />

in META-INF/openwebbeans/openwebbeans.properties I have:

org.apache.webbeans.web.failover.issupportfailover=true
org.apache.webbeans.web.failover.issupportpassivation=true

Now on reload I'm getting:

15:27:41.375 ERROR o.a.w.web.failover.FailOverBag - 
java.lang.NullPointerException: null
at 
org.apache.webbeans.web.context.WebContextsService.activateContext(WebContextsService.java:813)

~[openwebbeans-web-1.1.4.jar:1.1.4]
at 
org.apache.webbeans.web.failover.FailOverBag.restore(FailOverBag.java:99) 
~[openwebbeans-web-1.1.4.jar:1.1.4]
at 
org.apache.webbeans.web.failover.FailOverBagWrapper.restore(FailOverBagWrapper.java:81) 
[openwebbeans-web-1.1.4.jar:1.1.4]
at 
org.apache.webbeans.web.failover.DefaultOwbFailOverService.restoreBeans(DefaultOwbFailOverService.java:171)

[openwebbeans-web-1.1.4.jar:1.1.4]
at 
org.apache.webbeans.web.failover.FailOverBagWrapper.sessionDidActivate(FailOverBagWrapper.java:162)

[openwebbeans-web-1.1.4.jar:1.1.4]
at 
org.apache.catalina.session.StandardSession.activate(StandardSession.java:939) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:287) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.session.StandardManager.load(StandardManager.java:204) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:470) 
[catalina.jar:7.0.21]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241) 
[catalina.jar:7.0.21]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3854) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:949) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:360) 
[catalina.jar:7.0.21]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
[servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 
[servlet-api.jar:na]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)

[catalina.jar:7.0.21]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

[catalina.jar:7.0.21]
at 
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)

[catalina.jar:7.0.21]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

[catalina.jar:7.0.21]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

[catalina.jar:7.0.21]
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) 
[catalina.jar:7.0.21]
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) 
[catalina.jar:7.0.21]
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:269) 
[tomcat-coyote.jar:7.0.21]
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)

[tomcat-coyote.jar:7.0.21]
at 
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1773) 
[tomcat-coyote.jar:7.0.21]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
[na:1.7.0_04]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
[na:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_04]

What am I doing wrong? 

Thanks,
Regards,
Pavel


Mime
View raw message