0 Replies Latest reply on Jul 18, 2012 1:33 AM by Navin Maheshwari

    jboss 7.0.2 WebApplicationContext Error

    Navin Maheshwari Newbie

      Hello,

      I am getting below error while starting application link thr browser,

       

       

      20:04:42,402 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "mifidbe.war"

      20:06:34,486 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/IACMS].[Faces Servlet]] (http--127.0.0.1-8080-2) Servlet.service() for servlet Faces Servlet threw exception: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?

          at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:251) [org.springframework.web-3.1.0.RELEASE.jar:]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at java.lang.Thread.run(Thread.java:722) [:1.7.0_05]

       

      below is my web.xml setting, Please let me know if i am missing something?

       

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

          xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

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

          version="3.0" metadata-complete="true">

          <display-name>mifidbe</display-name>

         

          <context-param>

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

              <param-value>

                  /WEB-INF/classes/spring/ApplicationContext-ams.xml,/WEB-INF/classes/spring/ApplicationContext-useradmin.xml,/WEB-INF/classes/spring/ApplicationContext-security.xml,/WEB-INF/classes/spring/ApplicationContext-feed.xml

              </param-value>

          </context-param>

         

          <listener>

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

              <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>

          </listener>

         

          <!-- START Spring Security -->

          <filter>

              <filter-name>filterChainProxy</filter-name>

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

          </filter>

          <filter-mapping>

              <filter-name>filterChainProxy</filter-name>

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

              <dispatcher>FORWARD</dispatcher>

              <dispatcher>REQUEST</dispatcher>

          </filter-mapping>