title: SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
body: <p>so I'm in a new internship position and I was told to modernize a JEE applciation.
  I've migrated the code in my machine in both .rar , .tar.gz and raw source code , and I sotill get the same problem.
  so here is the full stack trace of the problem :</p>
  <pre><code>Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version name:   Apache Tomcat/7.0.109
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server built:          Apr 22 2021 18:43:38 UTC
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version number: 7.0.109.0
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Name:               Linux
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Version:            5.10.93-1-MANJARO
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Architecture:          amd64
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Java Home:             /usr/lib/jvm/java-17-openjdk
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Version:           17.0.1+12
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Vendor:            Oracle Corporation
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_BASE:         /home/azseza/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_HOME:         /home/azseza/apache-tomcat-7.0.47/apache-tomcat-7.0.109
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.base=/home/azseza/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.home=/home/azseza/apache-tomcat-7.0.47/apache-tomcat-7.0.109
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dwtp.deploy=/home/azseza/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dfile.encoding=UTF-8
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -XX:+ShowCodeDetailsInExceptionMessages
  Feb 14, 2022 12:16:34 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  INFO: The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]
  Feb 14, 2022 12:16:34 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler [&quot;http-bio-8080&quot;]
  Feb 14, 2022 12:16:34 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 415 ms
  Feb 14, 2022 12:16:34 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service [Catalina]
  Feb 14, 2022 12:16:34 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/7.0.109
  Feb 14, 2022 12:16:37 PM org.apache.catalina.startup.TldConfig execute
  INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  Feb 14, 2022 12:16:37 PM org.apache.catalina.core.StandardContext addApplicationListener
  INFO: The listener [com.sun.faces.config.ConfigureListener] is already configured for this context. The duplicate definition has been ignored.
  Feb 14, 2022 12:16:37 PM org.apache.catalina.core.ApplicationContext log
  INFO: No Spring WebApplicationInitializer types detected on classpath
  Feb 14, 2022 12:16:37 PM com.sun.faces.config.ConfigureListener contextInitialized
  INFO: Initializing Mojarra 2.2.8 ( 20140814-1418 https://svn.java.net/svn/mojarra~svn/tags/2.2.8@13507) for context '/registre'
  Feb 14, 2022 12:16:37 PM com.sun.faces.spi.InjectionProviderFactory createInstance
  INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
  SLF4J: Class path contains multiple SLF4J bindings.
  SLF4J: Found binding in [jar:file:/home/azseza/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/registre/WEB-INF/lib/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: Found binding in [jar:file:/home/azseza/JAVA/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/registre/WEB-INF/lib/slf4j-simple-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  Feb 14, 2022 12:16:37 PM com.sun.faces.application.annotation.ConverterConfigHandler collect
  WARNING: @FacesConverter is using both value and forClass, only value will be applied.
  Feb 14, 2022 12:16:38 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
  INFO: Running on PrimeFaces 6.2
  Feb 14, 2022 12:16:38 PM org.primefaces.extensions.application.PostConstructApplicationEventListener processEvent
  INFO: Running on PrimeFaces Extensions 6.0.0
  Feb 14, 2022 12:16:38 PM org.apache.catalina.core.ApplicationContext log
  INFO: Initializing Spring root WebApplicationContext
  log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  Feb 14, 2022 12:16:38 PM org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
  java.lang.IllegalArgumentException
      at org.springframework.asm.ClassReader.&lt;init&gt;(Unknown Source)
      at org.springframework.asm.ClassReader.&lt;init&gt;(Unknown Source)
      at org.springframework.asm.ClassReader.&lt;init&gt;(Unknown Source)
      at org.springframework.core.type.classreading.SimpleMetadataReader.&lt;init&gt;(SimpleMetadataReader.java:52)
      at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
      at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
      at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
      at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:298)
      at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
      at org.springframework.context.annotation.ConfigurationClassParser.getImports(ConfigurationClassParser.java:300)
      at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:230)
      at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:153)
      at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:130)
      at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:285)
      at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:223)
      at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:630)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5128)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5653)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1689)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1679)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:833)
  
  Feb 14, 2022 12:16:38 PM org.apache.catalina.core.StandardContext startInternal
  SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
  Feb 14, 2022 12:16:38 PM org.apache.catalina.core.StandardContext startInternal
  SEVERE: Context [/registre] startup failed due to previous errors
  Feb 14, 2022 12:16:38 PM org.apache.catalina.core.ApplicationContext log
  INFO: Closing Spring root WebApplicationContext
  Feb 14, 2022 12:16:38 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler [&quot;http-bio-8080&quot;]
  Feb 14, 2022 12:16:38 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 4851 ms
  </code></pre>
  <p>The pom.xml file :</p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
      xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.bd.csrp.registre&lt;/groupId&gt;
      &lt;artifactId&gt;registre&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;name&gt;registre&lt;/name&gt;
      &lt;description&gt;***&lt;/description&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;properties&gt;
  
          &lt;spring.version&gt;3.2.0.RELEASE&lt;/spring.version&gt;
          &lt;org.mapstruct.version&gt;1.2.0.Final&lt;/org.mapstruct.version&gt;
          &lt;hibernate.version&gt;4.3.0.Final&lt;/hibernate.version&gt;
          &lt;hibernate-jpa.version&gt;1.0.1.Final&lt;/hibernate-jpa.version&gt;
          &lt;hibernate-validator.version&gt;5.0.2.Final&lt;/hibernate-validator.version&gt;
          &lt;jsf-api.version&gt;2.2.8&lt;/jsf-api.version&gt;
          &lt;jsf-impl.version&gt;2.2.8&lt;/jsf-impl.version&gt;
          &lt;primefaces.version&gt;6.2&lt;/primefaces.version&gt;
          &lt;primefaces-extensions.version&gt;6.0.0&lt;/primefaces-extensions.version&gt;
          &lt;primefaces.themes.version&gt;1.0.9&lt;/primefaces.themes.version&gt;
          &lt;postgresql.version&gt;9.4-1200-jdbc4&lt;/postgresql.version&gt;
          &lt;dozer.version&gt;5.4.0&lt;/dozer.version&gt;
          &lt;java.mail.version&gt;1.4&lt;/java.mail.version&gt;
          &lt;velocity.version&gt;1.6.2&lt;/velocity.version&gt;
           &lt;ehcache-version&gt;3.6.1&lt;/ehcache-version&gt;
  
          &lt;junit.version&gt;4.11&lt;/junit.version&gt;
          &lt;commons.beanutils.version&gt;1.7.0&lt;/commons.beanutils.version&gt;
          &lt;commons.codec.version&gt;1.3&lt;/commons.codec.version&gt;
          &lt;commons.collection.version&gt;3.2&lt;/commons.collection.version&gt;
          &lt;commons.digester.version&gt;1.8&lt;/commons.digester.version&gt;
          &lt;commons.dcp.version&gt;1.1&lt;/commons.dcp.version&gt;
          &lt;commons.pool.version&gt;1.1&lt;/commons.pool.version&gt;
          &lt;commons.discovery.version&gt;0.4&lt;/commons.discovery.version&gt;
          &lt;commons.logging.version&gt;1.1.1&lt;/commons.logging.version&gt;
          &lt;commons.io.version&gt;2.4&lt;/commons.io.version&gt;
          &lt;commons.fileupload.version&gt;1.3&lt;/commons.fileupload.version&gt;
          &lt;commons.net.version&gt;3.3&lt;/commons.net.version&gt;
          &lt;slf4j.version&gt;1.6.1&lt;/slf4j.version&gt;
          &lt;log4j.version&gt;1.2.16&lt;/log4j.version&gt;
          &lt;jstl.version&gt;1.2&lt;/jstl.version&gt;
          &lt;apache.poi.version&gt;3.17&lt;/apache.poi.version&gt;
          &lt;itext.version&gt;2.1.7&lt;/itext.version&gt;
          &lt;excel.reader.version&gt;1.2&lt;/excel.reader.version&gt;
          &lt;servlet-api.version&gt;3.1.0&lt;/servlet-api.version&gt;
          &lt;servlet.api.version&gt;2.5&lt;/servlet.api.version&gt;
  
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;finalName&gt;registre&lt;/finalName&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.8&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                          &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
                          &lt;wtpContextName&gt;${project.build.finalName}&lt;/wtpContextName&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.7&lt;/source&gt;
                          &lt;target&gt;1.7&lt;/target&gt;
                          &lt;encoding&gt;ISO-8859-1&lt;/encoding&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.3.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;filteringDeploymentDescriptors&gt;true&lt;/filteringDeploymentDescriptors&gt;
                          &lt;webresources&gt;
                              &lt;webresource&gt;
                                  &lt;directory&gt;${basedir}/src/main/webapp/WEB-INF&lt;/directory&gt;
                                  &lt;includes&gt;
                                      &lt;include&gt;web.xml&lt;/include&gt;
                                  &lt;/includes&gt;
                                  &lt;targetpath&gt;WEB-INF&lt;/targetpath&gt;
                                  &lt;filtering&gt;true&lt;/filtering&gt;
                              &lt;/webresource&gt;
                          &lt;/webresources&gt;
  
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  
  
      &lt;dependencies&gt;
          &lt;!-- XML --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;xerces&lt;/groupId&gt;
              &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
              &lt;version&gt;2.11.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
                  &lt;groupId&gt;aopalliance&lt;/groupId&gt;
                  &lt;artifactId&gt;aopalliance&lt;/artifactId&gt;
                  &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;xml-apis&lt;/groupId&gt;
              &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
              &lt;version&gt;1.4.01&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.mapstruct&lt;/groupId&gt;
              &lt;artifactId&gt;mapstruct&lt;/artifactId&gt;
              &lt;version&gt;${org.mapstruct.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Spring --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
  
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
  
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.webflow&lt;/groupId&gt;
              &lt;artifactId&gt;spring-faces&lt;/artifactId&gt;
              &lt;version&gt;2.3.1.RELEASE&lt;/version&gt;
  
          &lt;/dependency&gt;
          &lt;dependency&gt;
          &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
          &lt;artifactId&gt;lombok&lt;/artifactId&gt;
          &lt;version&gt;1.18.20&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- Spring process @Configuration classes --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;cglib&lt;/groupId&gt;
              &lt;artifactId&gt;cglib&lt;/artifactId&gt;
              &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Spring security --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-core&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-web&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-acl&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-ldap&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-taglibs&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;facelets-taglib-jsf20-spring-3&lt;/artifactId&gt;
              &lt;version&gt;0.6&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.ldap&lt;/groupId&gt;
              &lt;artifactId&gt;spring-ldap-core&lt;/artifactId&gt;
              &lt;version&gt;1.3.1.RELEASE&lt;/version&gt;
  
          &lt;/dependency&gt;
  
  
  
          &lt;!-- Commons --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-beanutils&lt;/groupId&gt;
              &lt;artifactId&gt;commons-beanutils&lt;/artifactId&gt;
              &lt;version&gt;${commons.beanutils.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-codec&lt;/groupId&gt;
              &lt;artifactId&gt;commons-codec&lt;/artifactId&gt;
              &lt;version&gt;${commons.codec.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-collections&lt;/groupId&gt;
              &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
              &lt;version&gt;${commons.collection.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-digester&lt;/groupId&gt;
              &lt;artifactId&gt;commons-digester&lt;/artifactId&gt;
              &lt;version&gt;${commons.digester.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-pool&lt;/groupId&gt;
              &lt;artifactId&gt;commons-pool&lt;/artifactId&gt;
              &lt;version&gt;${commons.pool.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-discovery&lt;/groupId&gt;
              &lt;artifactId&gt;commons-discovery&lt;/artifactId&gt;
              &lt;version&gt;${commons.discovery.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
              &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
              &lt;version&gt;${commons.fileupload.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;${commons.io.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-net&lt;/groupId&gt;
              &lt;artifactId&gt;commons-net&lt;/artifactId&gt;
              &lt;version&gt;${commons.net.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Hibernate &amp; JPA --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
              &lt;version&gt;${hibernate.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
              &lt;version&gt;${hibernate.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
              &lt;version&gt;${hibernate-validator.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- &lt;dependency&gt; --&gt;
          &lt;!-- &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt; --&gt;
          &lt;!-- &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt; --&gt;
          &lt;!-- &lt;version&gt;${hibernate-jpa.version}&lt;/version&gt; --&gt;
          &lt;!-- &lt;/dependency&gt; --&gt;
  
          &lt;!-- PostgreSQL --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;version&gt;${postgresql.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- JDBC --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
              &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
              &lt;version&gt;${commons.dcp.version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;javax.sql&lt;/groupId&gt;
                      &lt;artifactId&gt;jdbc-stdext&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- Logging --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;${slf4j.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;${log4j.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
              &lt;version&gt;1.7.7&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- Java Mail --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.mail&lt;/groupId&gt;
              &lt;artifactId&gt;mail&lt;/artifactId&gt;
              &lt;version&gt;${java.mail.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.velocity&lt;/groupId&gt;
              &lt;artifactId&gt;velocity&lt;/artifactId&gt;
              &lt;version&gt;${velocity.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Dozer --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.dozer&lt;/groupId&gt;
              &lt;artifactId&gt;dozer&lt;/artifactId&gt;
              &lt;version&gt;${dozer.version}&lt;/version&gt;
          &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.ehcache&lt;/groupId&gt;
              &lt;artifactId&gt;ehcache&lt;/artifactId&gt;
              &lt;version&gt;${ehcache-version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.cache&lt;/groupId&gt;
              &lt;artifactId&gt;cache-api&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- Apache POI --&gt;
          &lt;!-- Export Excel --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi&lt;/artifactId&gt;
              &lt;version&gt;${apache.poi.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
              &lt;version&gt;${apache.poi.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Export PDF --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.lowagie&lt;/groupId&gt;
              &lt;artifactId&gt;itext&lt;/artifactId&gt;
              &lt;version&gt;${itext.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.myjeeva.poi&lt;/groupId&gt;
              &lt;artifactId&gt;excelReader&lt;/artifactId&gt;
              &lt;version&gt;${excel.reader.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Jasper --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.jasperreports&lt;/groupId&gt;
              &lt;artifactId&gt;jasperreports&lt;/artifactId&gt;
              &lt;version&gt;5.2.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.jasperreports&lt;/groupId&gt;
              &lt;artifactId&gt;jasperreports-fonts&lt;/artifactId&gt;
              &lt;version&gt;4.0.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- Jasper dependancy --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
              &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
              &lt;version&gt;1.7.5&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;net.sourceforge.barbecue&lt;/groupId&gt;
              &lt;artifactId&gt;barbecue&lt;/artifactId&gt;
              &lt;version&gt;1.5-beta1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Test --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;${junit.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;1.8.4&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
  
  
          &lt;!-- Javax Servlet --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;${servlet-api.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
              &lt;version&gt;${jstl.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;${servlet.api.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- JSF --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
              &lt;version&gt;${jsf-api.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
              &lt;version&gt;${jsf-impl.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Primefaces --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
              &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
              &lt;version&gt;${primefaces.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces.themes&lt;/groupId&gt;
              &lt;artifactId&gt;all-themes&lt;/artifactId&gt;
              &lt;version&gt;${primefaces.themes.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces.extensions&lt;/groupId&gt;
              &lt;artifactId&gt;primefaces-extensions&lt;/artifactId&gt;
              &lt;version&gt;${primefaces-extensions.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces.extensions&lt;/groupId&gt;
              &lt;artifactId&gt;resources-ckeditor&lt;/artifactId&gt;
              &lt;version&gt;${primefaces-extensions.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces.extensions&lt;/groupId&gt;
              &lt;artifactId&gt;resources-codemirror&lt;/artifactId&gt;
              &lt;version&gt;${primefaces-extensions.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
  
      &lt;profiles&gt;
  
          &lt;profile&gt;
              &lt;id&gt;developpement&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
              &lt;/activation&gt;
          &lt;/profile&gt;
  
      &lt;/profiles&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;prime-repo&lt;/id&gt;
              &lt;name&gt;PrimeFaces Maven Repository&lt;/name&gt;
              &lt;url&gt;http://repository.primefaces.org&lt;/url&gt;
          &lt;/repository&gt;
  
          &lt;repository&gt;
              &lt;id&gt;datapipeline-mvn-repo&lt;/id&gt;
              &lt;url&gt;https://raw.github.com/fredtucs/mvnrepository/mvn-repo/&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;org.springframework.security.taglibs.facelets&lt;/id&gt;
              &lt;url&gt;http://spring-security-facelets-taglib.googlecode.com/svn/repo/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  &lt;/project&gt;
  
  </code></pre>
  <p>And finaly the web.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;2.5&quot;&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  <p>Please help me , my  JEE heros.</p>