14 Replies Latest reply on Jan 29, 2013 6:05 AM by akash bansal

    IllegalStateException

    akash bansal Newbie

      Hi,

       

      I am getting "Illegal attempt to set ViewHandler after a response has been rendered." exception while deploying EAR. I am using Spring 3.0.3, spring webflow 2.1 and jsf 1.2.

       

      Below is my faces-config.xml file :

       

      <?xml version="1.0" encoding="UTF-8"?>

      <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"

      xmlns:xi="http://www.w3.org/2001/XInclude"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">

       

          <converter>

              <converter-id>com.fds.customjsf.converter.FdsBoolean</converter-id>

              <converter-class>com.fds.customjsf.converter.FdsBooleanConverter</converter-class>

          </converter>

       

          <converter>

              <converter-id>com.fds.customjsf.converter.FdsDateTime</converter-id>

              <converter-class>com.fds.customjsf.converter.FdsConvertDateTime</converter-class>

          </converter>

         

        <application>

        <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>

        <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>

      </application>

      </faces-config>

       

       

      Below is web.xml file :

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">

          <description>Sample application</description>

          <display-name>Sample application</display-name>

          <context-param>

              <param-name>javax.faces.DEFAULT_SUFFIX

              </param-name>

              <param-value>.xhtml</param-value>

          </context-param>

          <context-param>

              <param-name>facelets.REFRESH_PERIOD

              </param-name>

              <param-value>1</param-value>

          </context-param>

          <context-param>

              <param-name>com.sun.faces.responseBufferSize</param-name>

              <param-value>500000</param-value>

          </context-param>

          <context-param>

              <param-name>facelets.SKIP_COMMENTS</param-name>

              <param-value>true</param-value>

          </context-param>

          <context-param>

              <param-name>facelets.DEVELOPMENT</param-name>

              <param-value>false</param-value>

          </context-param>

          <context-param>

              <param-name>javax.faces.STATE_SAVING_METHOD

              </param-name>

              <param-value>server</param-value>

          </context-param>

          <context-param>

              <param-name>org.richfaces.SKIN</param-name>

              <param-value>laguna</param-value>

          </context-param>

              <context-param>

                  <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

                  <param-value>com.sun.facelets.FaceletViewHandler</param-value>

              </context-param>

             

          <!-- The master configuration file for this Spring web application -->

          <context-param>

              <param-name>contextConfigLocation</param-name>

              <param-value>

                  /WEB-INF/data-access-config.xml

                  /WEB-INF/web-application-config.xml

                  /WEB-INF/spring-beans.xml

                  /WEB-INF/applicationContext-security.xml

              </param-value>

          </context-param>

       

          <!-- Log4j -->

          <servlet>

            <servlet-name>log4jservlet</servlet-name>

            <servlet-class>com.fds.ar.logging.servlet.Log4jServlet</servlet-class>

            <init-param>

                <param-name>log4j-init-sys-prop-name</param-name>

                <!--

                    Change this value if you need a different name for the sys property.

                -->

                <param-value>accounting-log4j-config</param-value>

            </init-param>

            <init-param>

                <param-name>accounting-log4j-config</param-name>

                <!--

                    This is the default log4j config that will be used if there is no

                    value defined via system property

                -->

                <param-value>/WEB-INF/log4j.xml</param-value>

            </init-param>

            <load-on-startup>1</load-on-startup>

          </servlet>

       

          <servlet-mapping>

            <servlet-name>log4jservlet</servlet-name>

            <url-pattern>/servlet/log4jservlet</url-pattern>

          </servlet-mapping>

       

       

          <listener>

              <listener-class>com.fds.ar.util.servlet.PropertyServlet</listener-class>

          </listener>

          <listener>

              <listener-class>org.springframework.web.context.ContextLoaderListener

              </listener-class>

          </listener>

          <listener>

              <listener-class>

                  org.springframework.web.context.request.RequestContextListener

              </listener-class>

          </listener>

       

          <!-- The front controller of this Spring Web application, responsible for handling all application requests -->

          <servlet>

              <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

              <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

              <init-param>

                  <param-name>contextConfigLocation</param-name>

                  <param-value></param-value>

              </init-param>

              <load-on-startup>2</load-on-startup>

          </servlet>

             

          <!-- Map all /spring requests to the Dispatcher Servlet for handling -->

          <servlet-mapping>

              <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

              <url-pattern>/accounting/*</url-pattern>

          </servlet-mapping>

              <servlet-mapping>

                  <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

                  <url-pattern>*.flow</url-pattern>

              </servlet-mapping>

       

              <!-- Spring Security -->

              <filter>

                  <filter-name>springSecurityFilterChain</filter-name>

                  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>

              </filter>

              <filter-mapping>

                  <filter-name>springSecurityFilterChain</filter-name>

                  <url-pattern>/*</url-pattern>

              </filter-mapping>

       

       

              <filter>

              <display-name>Ajax4jsf Filter</display-name>

              <filter-name>ajax4jsf</filter-name>

              <filter-class>org.ajax4jsf.Filter</filter-class>

          </filter>

       

              <filter-mapping>

              <filter-name>ajax4jsf</filter-name>

                      <servlet-name>Faces Servlet</servlet-name>

              <dispatcher>REQUEST</dispatcher>

              <dispatcher>FORWARD</dispatcher>

              <dispatcher>INCLUDE</dispatcher>

          </filter-mapping>

       

              <filter-mapping>

              <filter-name>ajax4jsf</filter-name>

                      <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

              <dispatcher>REQUEST</dispatcher>

              <dispatcher>FORWARD</dispatcher>

              <dispatcher>INCLUDE</dispatcher>

          </filter-mapping>

       

              <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet

              </servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.faces</url-pattern>

          </servlet-mapping>

          <login-config>

              <auth-method>BASIC</auth-method>

          </login-config>

       

          <session-config>

              <session-timeout>

                  120

              </session-timeout>

          </session-config>

       

              <persistence-unit-ref>

                  <persistence-unit-ref-name>persistence/floodDatabaseEntityManagerFactory</persistence-unit-ref-name>

              </persistence-unit-ref>

       

          <!--  This works, or you can supply the index.jsp   -->

          <welcome-file-list>

              <welcome-file>ar/main/main.flow</welcome-file>

          </welcome-file-list>

       

      </web-app>

       

       

       

       

      12:57:05,489 ERROR [org.ajax4jsf.webapp.BaseXMLFilter] (http-/127.0.0.1:9090-1) Exception in the filter chain: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'armain' of flow 'main'

          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656) [spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) [spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.1.Final-redhat-1.jar:1.0.1.Final-redhat-1]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final-redhat-1.jar:1.0.1.Final-redhat-1]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) [spring-security-web-3.0.3.RELEASE.jar:]

          at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) [spring-web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) [spring-web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.2.Final-redhat-1-JBPAPP-9404.jar:7.1.2.Final-redhat-1]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:369) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

      Caused by: org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'armain' of flow 'main'

          at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:569) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:226) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) [spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:774) [spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) [spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) [spring-webmvc-3.0.3.RELEASE.jar:3.0.3.RELEASE]

          ... 48 more

      Caused by: java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered.

          at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:564) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

          at org.springframework.faces.webflow.FlowApplication.wrapAndSetViewHandler(FlowApplication.java:250) [spring-faces-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.faces.webflow.FlowApplication.setViewHandler(FlowApplication.java:100) [spring-faces-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

          at org.springframework.faces.webflow.JsfUtils.notifyBeforeListeners(JsfUtils.java:48) [spring-faces-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:83) [spring-faces-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:184) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.engine.State.enter(State.java:194) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.engine.Flow.start(Flow.java:535) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:364) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:222) [spring-webflow-2.1.0.RELEASE.jar:2.1.0.RELEASE]

          ... 55 more

        • 1. Re: IllegalStateException
          Nicklas Karlsson Master

          Hunting down issues like that is tricky (Spring and JSF 1.2)...

          Has it worked on another AS before? How are you setting up JSF 1.2 in AS7? What libraries do you have in the WAR?

          • 2. Re: IllegalStateException
            akash bansal Newbie

            Yes, this was working fine on weblogic 10.3, but when I migrated it on JBoss, it failed.

             

            I have not done anything special like putting jboss-deployment-structure.xml  in META-INF folder.

             

            Moreover I am having folllowing jars in WAR's lib folder:

             

            aopalliance-1.0.jar

            aspectjrt-1.6.8.jar

            aspectjweaver-1.6.8.jar

            commons-beanutils-1.8.0.jar

            commons-codec-1.3.jar

            commons-collections-3.2.jar

            commons-digester-1.8.1.jar

            commons-lang-2.1.jar

            commons-logging-1.0.4.jar

            jsf-api-1.2_14.jar

            jsf-facelets-1.1.14.jar

            jsf-impl-1.2_14.jar

            jstl-1.1.2.jar

            jxl-2.6.jar

            laguna-3.3.3.Final.jar

            nekohtml-1.9.6.jar

            richfaces-api-3.3.3.Final.jar

            richfaces-impl-3.3.3.Final.jar

            richfaces-ui-3.3.3.Final.jar

            spring-aop-3.0.3.RELEASE.jar

            spring-asm-3.0.3.RELEASE.jar

            spring-beans-3.0.3.RELEASE.jar

            spring-binding-2.1.0.RELEASE.jar

            spring-context-3.0.3.RELEASE.jar

            spring-context-support-3.0.3.RELEASE.jar

            spring-core-3.0.3.RELEASE.jar

            spring-expression-3.0.3.RELEASE.jar

            spring-faces-2.1.0.RELEASE.jar

            spring-jdbc-3.0.3.RELEASE.jar

            spring-js-2.1.0.RELEASE.jar

            spring-ldap-core-1.3.0.RELEASE.jar

            spring-orm-3.0.3.RELEASE.jar

            spring-security-config-3.0.3.RELEASE.jar

            spring-security-core-3.0.3.RELEASE.jar

            spring-security-ldap-3.0.3.RELEASE.jar

            spring-security-web-3.0.3.RELEASE.jar

            spring-tx-3.0.3.RELEASE.jar

            spring-web-3.0.3.RELEASE.jar

            spring-webflow-2.1.0.RELEASE.jar

            spring-webmvc-3.0.3.RELEASE.jar

            • 3. Re: IllegalStateException
              Nicklas Karlsson Master

              Try dropping the jsf-*.jar and add a

               

              <context-param>
                    <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
                    <param-value>Mojarra-1.2</param-value>
              </context-param>

               

              in web.xml

              • 4. Re: IllegalStateException
                akash bansal Newbie

                After removing following jars and adding <context-param> entry, I am getting another exception :

                 

                jsf-api-1.2_14.jar

                jsf-facelets-1.1.14.jar

                jsf-impl-1.2_14.jar

                 

                14:22:40,853 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.web.deployment.default-host./accounting: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./accounting: JBAS018040: Failed to start context

                    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

                 

                14:22:41,056 INFO  [org.jboss.as.server] (HttpManagementService-threads - 9) JBAS015870: Deploy of deployment "acctrecv.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./accounting" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./accounting: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"acctrecv.ear\".\"ar-spring-war-3.09-SNAPSHOT.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}

                14:22:41,057 INFO  [org.jboss.as.osgi] (MSC service thread 1-6) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-commission-3.09-SNAPSHOT.jar:main" from Service Module Loader

                14:22:41,057 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-rpt-manager-3.09-SNAPSHOT.jar:main" from Service Module Loader

                14:22:41,057 INFO  [org.jboss.as.osgi] (MSC service thread 1-2) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-lockbox-3.09-SNAPSHOT.jar:main" from Service Module Loader

                14:22:41,058 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-report-history-3.09-SNAPSHOT.jar:main" from Service Module Loader

                14:22:41,058 INFO  [org.jboss.as.osgi] (MSC service thread 1-5) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-sales-rpts-3.09-SNAPSHOT.jar:main" from Service Module Loader

                14:22:41,058 INFO  [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-spring-war-3.09-SNAPSHOT.war:main" from Service Module Loader

                ....

                 

                Do I need to add different jars in places of deleted jar files.

                • 5. Re: IllegalStateException
                  Nicklas Karlsson Master

                  That's a bit cryptic. Wondering about the "jboss.security.jacc" part.

                  What does the web.xml of the ar-spring-war look like? How about the persistence.xml (if any)?

                  • 6. Re: IllegalStateException
                    akash bansal Newbie

                    Here is web.xml file :

                     

                    <?xml version="1.0" encoding="UTF-8"?>

                    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">

                        <description>Sample application</description>

                        <display-name>Sample application</display-name>

                        <context-param>

                          <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>

                          <param-value>Mojarra-1.2</param-value>

                        </context-param>

                        <context-param>

                            <param-name>javax.faces.DEFAULT_SUFFIX

                            </param-name>

                            <param-value>.xhtml</param-value>

                        </context-param>

                        <context-param>

                            <param-name>facelets.REFRESH_PERIOD

                            </param-name>

                            <param-value>1</param-value>

                        </context-param>

                        <context-param>

                            <param-name>com.sun.faces.responseBufferSize</param-name>

                            <param-value>500000</param-value>

                        </context-param>

                        <context-param>

                            <param-name>facelets.SKIP_COMMENTS</param-name>

                            <param-value>true</param-value>

                        </context-param>

                        <context-param>

                            <param-name>facelets.DEVELOPMENT</param-name>

                            <param-value>false</param-value>

                        </context-param>

                        <context-param>

                            <param-name>javax.faces.STATE_SAVING_METHOD

                            </param-name>

                            <param-value>server</param-value>

                        </context-param>

                        <context-param>

                            <param-name>org.richfaces.SKIN</param-name>

                            <param-value>laguna</param-value>

                        </context-param>

                            <context-param>

                                <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

                                <param-value>com.sun.facelets.FaceletViewHandler</param-value>

                            </context-param>

                           

                        <!-- The master configuration file for this Spring web application -->

                        <context-param>

                            <param-name>contextConfigLocation</param-name>

                            <param-value>

                                /WEB-INF/data-access-config.xml

                                /WEB-INF/web-application-config.xml

                                /WEB-INF/spring-beans.xml

                                /WEB-INF/applicationContext-security.xml

                            </param-value>

                        </context-param>

                     

                        <!-- Log4j -->

                        <servlet>

                          <servlet-name>log4jservlet</servlet-name>

                          <servlet-class>com.fds.ar.logging.servlet.Log4jServlet</servlet-class>

                          <init-param>

                              <param-name>log4j-init-sys-prop-name</param-name>

                              <!--

                                  Change this value if you need a different name for the sys property.

                              -->

                              <param-value>accounting-log4j-config</param-value>

                          </init-param>

                          <init-param>

                              <param-name>accounting-log4j-config</param-name>

                              <!--

                                  This is the default log4j config that will be used if there is no

                                  value defined via system property

                              -->

                              <param-value>/WEB-INF/log4j.xml</param-value>

                          </init-param>

                          <load-on-startup>1</load-on-startup>

                        </servlet>

                     

                        <servlet-mapping>

                          <servlet-name>log4jservlet</servlet-name>

                          <url-pattern>/servlet/log4jservlet</url-pattern>

                        </servlet-mapping>

                     

                     

                        <listener>

                            <listener-class>com.fds.ar.util.servlet.PropertyServlet</listener-class>

                        </listener>

                        <listener>

                            <listener-class>org.springframework.web.context.ContextLoaderListener

                            </listener-class>

                        </listener>

                        <listener>

                            <listener-class>

                                org.springframework.web.context.request.RequestContextListener

                            </listener-class>

                        </listener>

                     

                        <!-- The front controller of this Spring Web application, responsible for handling all application requests -->

                        <servlet>

                            <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

                            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

                            <init-param>

                                <param-name>contextConfigLocation</param-name>

                                <param-value></param-value>

                            </init-param>

                            <load-on-startup>2</load-on-startup>

                        </servlet>

                           

                        <!-- Map all /spring requests to the Dispatcher Servlet for handling -->

                        <servlet-mapping>

                            <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

                            <url-pattern>/accounting/*</url-pattern>

                        </servlet-mapping>

                            <servlet-mapping>

                                <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

                                <url-pattern>*.flow</url-pattern>

                            </servlet-mapping>

                     

                            <!-- Spring Security -->

                            <filter>

                                <filter-name>springSecurityFilterChain</filter-name>

                                <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>

                            </filter>

                            <filter-mapping>

                                <filter-name>springSecurityFilterChain</filter-name>

                                <url-pattern>/*</url-pattern>

                            </filter-mapping>

                     

                     

                            <filter>

                            <display-name>Ajax4jsf Filter</display-name>

                            <filter-name>ajax4jsf</filter-name>

                            <filter-class>org.ajax4jsf.Filter</filter-class>

                        </filter>

                     

                            <filter-mapping>

                            <filter-name>ajax4jsf</filter-name>

                                    <servlet-name>Faces Servlet</servlet-name>

                            <dispatcher>REQUEST</dispatcher>

                            <dispatcher>FORWARD</dispatcher>

                            <dispatcher>INCLUDE</dispatcher>

                        </filter-mapping>

                     

                            <filter-mapping>

                            <filter-name>ajax4jsf</filter-name>

                                    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

                            <dispatcher>REQUEST</dispatcher>

                            <dispatcher>FORWARD</dispatcher>

                            <dispatcher>INCLUDE</dispatcher>

                        </filter-mapping>

                     

                            <servlet>

                            <servlet-name>Faces Servlet</servlet-name>

                            <servlet-class>javax.faces.webapp.FacesServlet

                            </servlet-class>

                            <load-on-startup>1</load-on-startup>

                        </servlet>

                        <servlet-mapping>

                            <servlet-name>Faces Servlet</servlet-name>

                            <url-pattern>*.faces</url-pattern>

                        </servlet-mapping>

                        <login-config>

                            <auth-method>BASIC</auth-method>

                        </login-config>

                     

                        <session-config>

                            <session-timeout>

                                120

                            </session-timeout>

                        </session-config>

                     

                            <persistence-unit-ref>

                                <persistence-unit-ref-name>persistence/floodDatabaseEntityManagerFactory</persistence-unit-ref-name>

                            </persistence-unit-ref>

                     

                        <!--  This works, or you can supply the index.jsp   -->

                        <welcome-file-list>

                            <welcome-file>ar/main/main.flow</welcome-file>

                        </welcome-file-list>

                     

                    </web-app>

                     

                     

                    And below is persistence.xml file :

                     

                    <?xml version="1.0"?>

                    <persistence xmlns="http://java.sun.com/xml/ns/persistence"

                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"

                       version="2.0">

                          <persistence-unit name="floodDatabase">     

                          <jta-data-source>java:jboss/jdbc/AccountingDB</jta-data-source>     

                          <jar-file>entity-2.1.jar</jar-file>

                          <jar-file>ar-entity-3.09-SNAPSHOT.jar</jar-file>

                          <jar-file>ar-web-billing-entity-3.09-SNAPSHOT.jar</jar-file>

                          <properties>                   

                             <property name="hibernate.connection.autocommit" value="false"/>

                             <property name="hibernate.show_sql" value="true"/>        

                             <property name="hibernate.transaction.flush_before_completion" value="true"/>

                             <property name="jboss.entity.manager.factory.jndi.name" value="java:jboss/persistence/floodDatabaseEntityManagerFactory"/>

                             <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled"></property>

                          </properties>

                       </persistence-unit>

                    </persistence>

                    • 7. Re: IllegalStateException
                      Nicklas Karlsson Master

                      Wonder if it's something with the persistence unit. What happens if you drop the persistence-unit-ref from web.xml. Does the stacktrace change?

                      • 8. Re: IllegalStateException
                        akash bansal Newbie

                        After commenting persistence-unit-ref in web.xml file, spring is not able to find EntityManagerFactory. Stacktrace has changed. Pls. refer below stacktrace :

                         

                        jboss.naming.context.java.module.acctrecv."ar-spring-war-3.09-SNAPSHOT".env.persistence.floodDatabaseEntityManagerFactory

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [spring-web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [spring-web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.16.Final-redhat-1-JBPAPP-9404.jar:]

                            at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.2.Final-redhat-1-JBPAPP-9404.jar:7.1.2.Final-redhat-1]

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                            at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

                        Caused by: javax.naming.NameNotFoundException: env/persistence/floodDatabaseEntityManagerFactory -- service jboss.naming.context.java.module.acctrecv."ar-spring-war-3.09-SNAPSHOT".env.persistence.floodDatabaseEntityManagerFactory

                            at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

                            at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

                            at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:122)

                            at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)

                            at javax.naming.InitialContext.lookup(InitialContext.java:392) [rt.jar:1.6.0_37]

                            at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187) [spring-context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

                            ... 20 more

                         

                        15:11:49,057 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Initializing Mojarra (1.2_15-b01-FCS) for context '/accounting'

                        15:11:49,184 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-6) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.

                        15:11:49,184 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-6) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.

                        15:11:49,195 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.web.deployment.default-host./accounting: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./accounting: JBAS018040: Failed to start context

                            at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                            at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

                         

                        15:11:49,397 INFO  [org.jboss.as.server] (HttpManagementService-threads - 11) JBAS015870: Deploy of deployment "acctrecv.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./accounting" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./accounting: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"acctrecv.ear\".\"ar-spring-war-3.09-SNAPSHOT.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}

                        15:11:49,399 INFO  [org.jboss.as.osgi] (MSC service thread 1-6) JBAS011908: Unregister module: Module "deployment.acctrecv.ear.ar-mail-3.09-SNAPSHOT.jar:main" from Service Module Loader

                        • 9. Re: IllegalStateException
                          Nicklas Karlsson Master

                          OK, I guess it should be in there. I assume you see the java:jboss/persistence/floodDatabaseEntityManagerFactory bound in the log

                          I haven't used persistence-unit-ref before so I'm not sure how the name is mapped to a specific EMF...

                          • 10. Re: IllegalStateException
                            akash bansal Newbie

                            Hi Nicklas,

                             

                            I managed to resolve this error by using Mojarra 1.2 but now I have fallen into another problem :

                             

                            java.lang.NullPointerException com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524) com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100) org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176) org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:99) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) org.springframework.faces.webflow.FlowLifecycle.render(FlowLifecycle.java:80) org.springframework.faces.webflow.JsfView.render(JsfView.java:89) org.springframework.webflow.engine.ViewState.render(ViewState.java:282) org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:186) org.springframework.webflow.engine.State.enter(State.java:194) org.springframework.webflow.engine.Flow.start(Flow.java:535) org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:364) org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:222) org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140) org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193) org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174) org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:774) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) javax.servlet.http.HttpServlet.service(HttpServlet.java:734) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

                            ...

                             

                            I am ussing Mojarra-1.2 and richfaces 3.3.3.  and richfaces jar files are included in WAR's lib folder.

                            • 11. Re: IllegalStateException
                              Nicklas Karlsson Master

                              Don't think you'll get facelets OOTB with 1.2. Include it yourself.

                              • 12. Re: IllegalStateException
                                akash bansal Newbie

                                Yes, facelets 1.2 is also included in WAR

                                • 13. Re: IllegalStateException
                                  Nicklas Karlsson Master

                                  So the JSF jars are no longer in the jar but the facelets jar is?

                                  • 14. Re: IllegalStateException
                                    akash bansal Newbie

                                    I resolved this issue. Culprit was jsf-facelets-1.1.14.jar file. Updating it to jsf-facelets-1.1.15 resolved this issue.