title: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
body: <p>error message:</p>
  
  <pre><code>SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [config/spring/Hibernate-ctx.xml]: Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
  Caused by: java.lang.IncompatibleClassChangeError: Implementing class
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2820)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1150)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
      at java.lang.Class.getConstructor0(Class.java:2714)
      at java.lang.Class.getDeclaredConstructor(Class.java:2002)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:78)
      at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newConfiguration(LocalSessionFactoryBean.java:772)
      at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:517)
      at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
      ... 23 more
  </code></pre>
  
  <p>Using tomcat 7 and maven build.</p>
  
  <p><strong>mvn dependency:tree -Dverbose</strong> gives following message:</p>
  
  <pre><code>C:\project&gt;mvn dependency:tree -Dverbose
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'dependency'.
  [INFO] ------------------------------------------------------------------------
  [INFO] Building home-app
  [INFO]    task-segment: [dependency:tree]
  [INFO] ------------------------------------------------------------------------
  [INFO] [dependency:tree {execution: default-cli}]
  [INFO] com.home.app:home-app:war:0.0.1
  [INFO] +- org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
  [INFO] |  +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
  [INFO] |  |  \- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile
  [INFO] |  |  +- (org.springframework:spring-beans:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  |  +- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  |  \- (org.springframework:spring-tx:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  \- (org.springframework:spring-tx:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] +- log4j:log4j:jar:1.2.14:runtime (scope not updated to compile)
  [INFO] +- mysql:mysql-connector-java:jar:5.1.17:compile
  [INFO] +- org.hibernate:ejb3-persistence:pom:3.3.2.Beta1:compile
  [INFO] +- org.hibernate:hibernate-core:jar:3.6.7.Final:compile
  [INFO] |  +- antlr:antlr:jar:2.7.6:compile
  [INFO] |  +- commons-collections:commons-collections:jar:3.1:compile
  [INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
  [INFO] |  +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
  [INFO] |  |  \- (org.slf4j:slf4j-api:jar:1.5.8:compile - omitted for conflict with 1.6.1)
  [INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
  [INFO] |  +- javax.transaction:jta:jar:1.1:compile
  [INFO] |  \- (org.slf4j:slf4j-api:jar:1.6.1:compile - omitted for conflict with 1.5.8)
  [INFO] +- commons-dbcp:commons-dbcp:jar:1.2.2:compile
  [INFO] |  \- commons-pool:commons-pool:jar:1.3:compile
  [INFO] +- org.springframework:spring-hibernate3:jar:2.0.8:compile
  [INFO] |  +- aopalliance:aopalliance:jar:1.0:compile
  [INFO] |  +- commons-logging:commons-logging:jar:1.1:compile
  [INFO] |  |  +- (log4j:log4j:jar:1.2.12:compile - omitted for conflict with 1.2.14)
  [INFO] |  |  +- logkit:logkit:jar:1.0.1:compile
  [INFO] |  |  +- avalon-framework:avalon-framework:jar:4.1.3:compile
  [INFO] |  |  \- (javax.servlet:servlet-api:jar:2.3:compile - omitted for conflict with 3.0-alpha-1)
  [INFO] |  +- org.hibernate:hibernate:jar:3.2.5.ga:compile
  [INFO] |  |  +- net.sf.ehcache:ehcache:jar:1.2.3:compile
  [INFO] |  |  |  +- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for conflict with 1.
  [INFO] |  |  |  \- (commons-collections:commons-collections:jar:2.1:compile - omitted for conflict w
  [INFO] |  |  +- (javax.transaction:jta:jar:1.0.1B:compile - omitted for conflict with 1.1)
  [INFO] |  |  +- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for conflict with 1.1)
  [INFO] |  |  +- asm:asm-attrs:jar:1.5.3:compile
  [INFO] |  |  +- (dom4j:dom4j:jar:1.6.1:compile - omitted for duplicate)
  [INFO] |  |  +- (antlr:antlr:jar:2.7.6:compile - omitted for duplicate)
  [INFO] |  |  +- (cglib:cglib:jar:2.1_3:compile - omitted for conflict with 2.2.2)
  [INFO] |  |  +- (asm:asm:jar:1.5.3:compile - omitted for conflict with 3.3.1)
  [INFO] |  |  \- (commons-collections:commons-collections:jar:2.1.1:compile - omitted for conflict wi
  [INFO] |  +- (org.springframework:spring-beans:jar:2.0.8:compile - omitted for conflict with 3.0.5.R
  [INFO] |  +- (org.springframework:spring-context:jar:2.0.8:compile - omitted for conflict with 3.0.5
  [INFO] |  +- (org.springframework:spring-core:jar:2.0.8:compile - omitted for conflict with 3.0.5.RE
  [INFO] |  +- org.springframework:spring-dao:jar:2.0.8:compile
  [INFO] |  |  +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
  [INFO] |  |  +- (commons-logging:commons-logging:jar:1.1:compile - omitted for duplicate)
  [INFO] |  |  +- (org.springframework:spring-beans:jar:2.0.8:compile - omitted for conflict with 3.0.
  [INFO] |  |  +- (org.springframework:spring-context:jar:2.0.8:compile - omitted for duplicate)
  [INFO] |  |  \- (org.springframework:spring-core:jar:2.0.8:compile - omitted for conflict with 3.0.5
  [INFO] |  \- (org.springframework:spring-jdbc:jar:2.0.8:compile - omitted for conflict with 3.0.5.RE
  [INFO] +- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
  [INFO] |  \- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
  [INFO] |  +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-asm:jar:3.0.5.RELEASE:compile - omitted for conflict with 3
  [INFO] |  +- (org.springframework:spring-beans:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  \- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
  [INFO] |  +- (org.springframework:spring-aop:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-beans:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-expression:jar:3.0.5.RELEASE:compile - omitted for duplicat
  [INFO] |  \- (org.springframework:spring-asm:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] +- org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
  [INFO] |  +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-aop:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-beans:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  +- (org.springframework:spring-context:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  \- (org.springframework:spring-core:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
  [INFO] |  +- (org.springframework:spring-asm:jar:3.0.5.RELEASE:compile - omitted for duplicate)
  [INFO] |  \- (commons-logging:commons-logging:jar:1.1.1:compile - omitted for conflict with 1.1)
  [INFO] +- cglib:cglib:jar:2.2.2:compile
  [INFO] |  \- asm:asm:jar:3.3.1:compile
  [INFO] +- org.springframework:spring-test:jar:3.0.6.RELEASE:test
  [INFO] +- org.springframework:spring-asm:jar:3.0.6.RELEASE:compile
  [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.5.8:runtime
  [INFO] |  \- (org.slf4j:slf4j-api:jar:1.5.8:runtime - omitted for conflict with 1.6.1)
  [INFO] +- org.slf4j:slf4j-api:jar:1.5.8:runtime (scope not updated to compile)
  [INFO] +- org.slf4j:slf4j-log4j12:jar:1.5.8:runtime
  [INFO] |  +- (org.slf4j:slf4j-api:jar:1.5.8:runtime - omitted for duplicate)
  [INFO] |  \- (log4j:log4j:jar:1.2.14:runtime - omitted for duplicate)
  [INFO] +- junit:junit:jar:4.9:compile
  [INFO] |  \- org.hamcrest:hamcrest-core:jar:1.1:compile
  [INFO] +- javassist:javassist:jar:3.12.1.GA:compile
  [INFO] +- com.sun.faces:jsf-impl:jar:2.1.3:compile
  [INFO] +- com.sun.faces:jsf-api:jar:2.1.3:compile
  [INFO] +- javax.servlet:jstl:jar:1.2:compile
  [INFO] +- javax.inject:javax.inject:jar:1:compile
  [INFO] +- javax.servlet:servlet-api:jar:3.0-alpha-1:provided (scope not updated to compile)
  [INFO] +- javax.servlet.jsp:jsp-api:jar:2.2.1-b03:provided
  [INFO] +- com.sun.el:el-ri:jar:1.0:provided
  [INFO] \- org.springframework:spring:jar:2.5.6.SEC03:compile
  [INFO]    \- (commons-logging:commons-logging:jar:1.1.1:compile - omitted for conflict with 1.1)
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESSFUL
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2 seconds
  [INFO] Finished at: Sun Sep 25 23:21:18 CEST 2011
  [INFO] Final Memory: 16M/39M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>This is problem with duplicate of hibernate jar file. But i am not sure which one is duplicating here. My test class is executing fine. ie problem with tomcat.</p>
  
  <p>POM.xml:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.home.app&lt;/groupId&gt;
      &lt;artifactId&gt;home-app&lt;/artifactId&gt;
      &lt;version&gt;0.0.1&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;name&gt;home-app&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;properties&gt;
          &lt;org.springframework.version&gt;3.0.5.RELEASE&lt;/org.springframework.version&gt;
      &lt;/properties&gt;
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;build&gt;
          &lt;plugins&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;2.3.2&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;url&gt;http://localhost:8080/manager/html&lt;/url&gt;
                      &lt;server&gt;myserver&lt;/server&gt;
                      &lt;path&gt;/home-app&lt;/path&gt;
                      &lt;warFile&gt;${project.build.directory}/${project.build.finalName}.war&lt;/warFile&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
              &lt;version&gt;3.0.5.RELEASE&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;1.2.14&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;5.1.17&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;ejb3-persistence&lt;/artifactId&gt;
              &lt;version&gt;3.3.2.Beta1&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
              &lt;version&gt;3.6.7.Final&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
              &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
              &lt;version&gt;1.2.2&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-hibernate3&lt;/artifactId&gt;
              &lt;version&gt;2.0.8&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-expression&lt;/artifactId&gt;
              &lt;version&gt;${org.springframework.version}&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
              &lt;version&gt;3.0.5.RELEASE&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;${org.springframework.version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                      &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;version&gt;${org.springframework.version}&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${org.springframework.version}&lt;/version&gt;
          &lt;/dependency&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;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&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;3.0.6.RELEASE&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-asm&lt;/artifactId&gt;
              &lt;version&gt;3.0.6.RELEASE&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&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.5.8&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;1.5.8&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;1.5.8&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.14&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.9&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;javassist&lt;/groupId&gt;
              &lt;artifactId&gt;javassist&lt;/artifactId&gt;
              &lt;version&gt;3.12.1.GA&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;2.1.3&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
              &lt;version&gt;2.1.3&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&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;1.2&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.inject&lt;/groupId&gt;
              &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
              &lt;version&gt;1&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&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;3.0-alpha-1&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
              &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
              &lt;version&gt;2.2.1-b03&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.el&lt;/groupId&gt;
              &lt;artifactId&gt;el-ri&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring&lt;/artifactId&gt;
              &lt;version&gt;2.5.6.SEC03&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;jboss&lt;/id&gt;
              &lt;name&gt;JBoss repository&lt;/name&gt;
              &lt;url&gt;https://repository.jboss.org/nexus/content/repositories/releases/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
  &lt;/project&gt;
  </code></pre>