Orchestra and HttpSession Size.
Hi, I am currently profiling my jsf orchestra application and trying to calculate the approximate size of HttpSession. I am using a tool called MessAdmin (http://messadmin.sourceforge.net/) which helps me to list each and every session attribute and approximately calculates the size. I want to understand why in Details for Session HTTP, there is a attribute org.apache.myfaces.orchestra.conversation.conversationmana...@658c349c that can reach size upto 120 MB at the begin of the conversation. The managed beans are conversation.manual and don't have a huge size. Furthermore, it seems that there is one ConversationManager object by http session that contains alls conversations And when i use a profiler the application, there is no increase of the heap memory in server-side at each conversation. Is there any noted explanation for this ? Bug in Messadmin http session calculation or Orchestra needs lot of memory ? Thanks Seb -- PGP : 0x73E6EF22
[Orchestra] Multiples webapps deployed but only one application using Orchestra
I have one application using JSF/Orchestra and others does'nt use Orchestra. The first application is loaded first at startup. when i use the others applications, I get this message *java.lang.IllegalArgumentException: Orchestra was unable to create an instance of bean with name 'AccessScopeManager'. Ensure that JSF variable resolution uses your dependency injection (DI) framework (eg Spring's DelegatingVariableResolver is in your faces-config.xml file) and the standard Orchestra configuration beans are defined (eg by using import resource=classpath*:/META-INF/spring-orchestra-init.xml /).* because orchestra is not configurated (but the PhaseListenerManager is executed). What is the solution for using Orchestra only in one webapp ? Thanks -- PGP : 0x73E6EF22
Re: [Orchestra] JSF/JBoss unable to create AccessScopeManager
Hello; Maybe i have found a solution. Indeed, it seems to work by adding this filter : filter filter-namespringRequestContextFilter /filter-name filter-classorg.springframework.web.filter.RequestContextFilter /filter-class /filter filter-mapping filter-namespringRequestContextFilter /filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping Le 6 août 2009 11:51, Sébastien Foubert sebastien.foub...@gmail.com a écrit : Hello, I'm using myfaces-orchestra-core 1.3.1 myfaces-orchestra-core15 1.0 and on JBoss 4.2.3 when i start the server and at each request on the server that did'nt initialize a conversation, i got this stacktrace *11:40:41,168 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase. java.lang.IllegalArgumentException: Orchestra was unable to create an instance of bean with name 'AccessScopeManager'. Ensure that JSF variable resolution uses your dependency injection (DI) framework (eg Spring's DelegatingVariableResolver is in your faces-config.xml file) and the standard Orchestra configuration beans are defined (eg by using import resource=classpath*:/META-INF/spring-orchestra-init.xml /). at org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:98) at org.apache.myfaces.orchestra.conversation.jsf.AccessScopePhaseListener.doBeforeRenderResponse(AccessScopePhaseListener.java:163) at org.apache.myfaces.orchestra.conversation.jsf.AccessScopePhaseListener.beforePhase(AccessScopePhaseListener.java:119) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:134) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:595) 11:40:49,670 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforeP* But if i deploy the ear after the start of the server there is no error and conversation works normally Have you an idea ? Thks -- PGP : 0x73E6EF22 -- PGP : 0x73E6EF22
[Orchestra] JSF/JBoss unable to create AccessScopeManager
Hello, I'm using myfaces-orchestra-core 1.3.1 myfaces-orchestra-core15 1.0 and on JBoss 4.2.3 when i start the server and at each request on the server that did'nt initialize a conversation, i got this stacktrace *11:40:41,168 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforePhase. java.lang.IllegalArgumentException: Orchestra was unable to create an instance of bean with name 'AccessScopeManager'. Ensure that JSF variable resolution uses your dependency injection (DI) framework (eg Spring's DelegatingVariableResolver is in your faces-config.xml file) and the standard Orchestra configuration beans are defined (eg by using import resource=classpath*:/META-INF/spring-orchestra-init.xml /). at org.apache.myfaces.orchestra.conversation.AccessScopeManager.getInstance(AccessScopeManager.java:98) at org.apache.myfaces.orchestra.conversation.jsf.AccessScopePhaseListener.doBeforeRenderResponse(AccessScopePhaseListener.java:163) at org.apache.myfaces.orchestra.conversation.jsf.AccessScopePhaseListener.beforePhase(AccessScopePhaseListener.java:119) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:134) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:595) 11:40:49,670 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) beforeP* But if i deploy the ear after the start of the server there is no error and conversation works normally Have you an idea ? Thks -- PGP : 0x73E6EF22