jsf - Tomcat Server can not find this Spring ContextLoaderListener class during the server start up -


the error is:

info: listener "org.apache.myfaces.webapp.startupservletcontextlistener" configured context. duplicate definition has been ignored. mai 14, 2013 11:19:50 org.apache.catalina.core.standardcontext listenerstart severe: erreur lors de la configuration de la classe d'écoute de l'application (application listener) org.springframework.web.context.contextloaderlistener 

i try tutorial http://www.mkyong.com/spring/spring-error-classnotfoundexception-org-springframework-web-context-contextloaderlistener/ no result. use

  • tomcat 7.0.
  • jsf 2.0
  • spring security 3.0.6

web.xml

    <?xml version="1.0" encoding="utf-8"?> <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_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="webapp_id" version="2.5">   <display-name>plateformhotlin</display-name>   <welcome-file-list>     <welcome-file>index.html</welcome-file>     <welcome-file>index.htm</welcome-file>     <welcome-file>index.jsp</welcome-file>     <welcome-file>default.html</welcome-file>     <welcome-file>default.htm</welcome-file>     <welcome-file>default.jsp</welcome-file>   </welcome-file-list>   <welcome-file-list>         <welcome-file>index.jsp</welcome-file>     </welcome-file-list>   <context-param>     <param-name>primefaces.theme</param-name>     <param-value>redmond</param-value>   </context-param>    <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>*.xhtml</url-pattern>    </servlet-mapping>   <servlet-mapping>       <servlet-name>faces servlet</servlet-name>       <url-pattern>*.jsf</url-pattern>    </servlet-mapping>     <welcome-file-list>         <welcome-file>/index.xhtml</welcome-file>     </welcome-file-list>      <session-config>         <session-timeout>             30         </session-timeout>     </session-config> <!-- ////////////////////////// end: faces related ///////////////////////// -->  <!-- ========================== spring related ============================= -->     <context-param>         <param-name>contextconfiglocation</param-name>         <param-value>          /web-inf/security-app-context.xml          /web-inf/applicationcontext.xml          </param-value>     </context-param>     <listener>         <listener-class>             org.springframework.web.context.contextloaderlistener         </listener-class>     </listener>     <listener>         <listener-class>             org.springframework.web.context.request.requestcontextlistener         </listener-class>     </listener>     <!-- 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>           <dispatcher>request</dispatcher>           <dispatcher>forward</dispatcher>       </filter-mapping>       <filter-mapping>         <filter-name>springsecurityfilterchain</filter-name>         <url-pattern>/j_spring_security_logout</url-pattern>     </filter-mapping> <!-- ////////////////////////// end: spring related //////////////////////// --> </web-app> 


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -