title: ERROR org.springframework.web.servlet.DispatcherServlet - Context initialization failed
body: <p>I have mapped each bean properly in my project so as provided the paths accordingly. The project is working fine on the machine it is created. But when other developers import the project and after successful clean &amp; install, tries to run it, it throws exception. In addition, I have viewed some similar titled question but none worked for me.</p>
  
  <p>NOTE: DAO layer or database layer is created as separate project and included into project as a jar.</p>
  
  <p><strong>Exception:</strong></p>
  
  <pre><code>2016-02-26 15:09:33,709 [localhost-startStop-1] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'artistController' with a different definition: replacing [Generic bean: class [com.ceelive.controller.ArtistController]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [D:\ceelive-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ceelive\WEB-INF\classes\com\ceelive\controller\ArtistController.class]] with [Generic bean: class [com.ceelive.controller.ArtistController]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/servlet/ceeliveservlet/servlet-context.xml]]
  2016-02-26 15:09:33,921 [localhost-startStop-1] WARN  org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artistController' defined in ServletContext resource [/WEB-INF/servlet/ceeliveservlet/servlet-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/ceelive/dao/manager/artist/ArtistDao
  2016-02-26 15:09:33,921 [localhost-startStop-1] ERROR org.springframework.web.servlet.DispatcherServlet - Context initialization failed
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'artistController' defined in ServletContext resource [/WEB-INF/servlet/ceeliveservlet/servlet-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/ceelive/dao/manager/artist/ArtistDao
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
   at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
   at javax.servlet.GenericServlet.init(GenericServlet.java:158)
   at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
   at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
   at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4997)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.NoClassDefFoundError: com/ceelive/dao/manager/artist/ArtistDao
   at java.lang.Class.getDeclaredMethods0(Native Method)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
   at java.lang.Class.getDeclaredMethods(Class.java:1975)
   at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)
   at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)
   at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)
   at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanF...
  </code></pre>
  
  <p><strong>pom.xml</strong></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/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.cimple&lt;/groupId&gt;
    &lt;artifactId&gt;ceelive&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;ceelive Maven Webapp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
  
          &lt;!-- Spring Dependencies--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;4.2.4.RELEASE&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;4.2.4.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;4.2.4.RELEASE&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                      &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Need this for json to/from object --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
              &lt;version&gt;2.1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
              &lt;version&gt;2.1.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- jstl Servlet --&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;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet.jsp.jstl&lt;/groupId&gt;
              &lt;artifactId&gt;jstl-api&lt;/artifactId&gt;
              &lt;version&gt;1.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Logging --&gt;
          &lt;!-- &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.14&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
              &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
              &lt;version&gt;1.1.3&lt;/version&gt;
          &lt;/dependency&gt; --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;1.7.14&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.14&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.7.14&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.16&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Apache tiles --&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
             &lt;artifactId&gt;tiles-api&lt;/artifactId&gt;
             &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
             &lt;artifactId&gt;tiles-core&lt;/artifactId&gt;
             &lt;version&gt;2.2.2&lt;/version&gt;
                 &lt;!-- &lt;exclusions&gt;
                      &lt;exclusion&gt;
                        &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                        &lt;artifactId&gt;slf4j-jdk14&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                 &lt;/exclusions&gt; --&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
             &lt;artifactId&gt;tiles-jsp&lt;/artifactId&gt;
             &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
             &lt;artifactId&gt;tiles-servlet&lt;/artifactId&gt;
             &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
             &lt;artifactId&gt;tiles-template&lt;/artifactId&gt;
             &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- compile only, runtime container will provide this --&gt;
          &lt;!-- Need this for config annotation --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;3.1.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
      &lt;!-- ceeliveDAO - Custom dependency --&gt;
      &lt;dependency&gt;
           &lt;groupId&gt;com.cimple&lt;/groupId&gt;
           &lt;artifactId&gt;ceeliveDAO&lt;/artifactId&gt;
           &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;finalName&gt;ceelive&lt;/finalName&gt;
  
            &lt;pluginManagement&gt;
          &lt;plugins&gt;
  
              &lt;!-- &lt;plugin&gt;
                &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
                &lt;artifactId&gt;tomcat6-maven-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.2&lt;/version&gt;
              &lt;/plugin&gt; --&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
                &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.2&lt;/version&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.3&lt;/version&gt;
                &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt; 
                &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
                  &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;9.2.11.v20150529&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt;
                      &lt;webApp&gt;
                          &lt;contextPath&gt;/spring4ajax&lt;/contextPath&gt;
                      &lt;/webApp&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.10&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;downloadSources&gt;true&lt;/downloadSources&gt;
                      &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt;
                      &lt;wtpversion&gt;2.0&lt;/wtpversion&gt;
                      &lt;wtpContextName&gt;spring4ajax&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-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
  
              &lt;plugin&gt;
                  &lt;groupId&gt;it.session.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;tiles-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${maventiles.plugin.version}&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;/plugin&gt;
           &lt;/plugins&gt;
        &lt;/pluginManagement&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;service&lt;/display-name&gt;
  
      &lt;!-- Deafult pages --&gt;
      &lt;welcome-file-list&gt;
         &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;!-- The definition of the Root Spring Container shared by all Servlets and Filters --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;/WEB-INF/servlet/root-context.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;!-- Creates the Spring Container shared by all Servlets and Filters --&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;!-- Log listner --&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.util.Log4jConfigListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;!-- Processes application requests --&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;ceelive&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;/WEB-INF/servlet/ceeliveservlet/servlet-context.xml&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;!-- Servlet Mapping --&gt;
     &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;ceelive&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/&lt;/url-pattern&gt;
     &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>servlet-context.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans:beans xmlns="http://www.springframework.org/schema/mvc"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:beans="http://www.springframework.org/schema/beans"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"&gt;
  
  
     &lt;context:component-scan base-package="com.ceelive.controller" /&gt;
  
      &lt;!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure --&gt;
  
      &lt;!-- Enables the Spring MVC @Controller programming model --&gt;
      &lt;annotation-driven /&gt;
  
      &lt;!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory --&gt;
      &lt;resources mapping="/resources/**" location="/resources/" /&gt;
  
      &lt;!-- Event Dao Bean --&gt;
      &lt;beans:bean id="eventDao" class="com.ceelive.dao.manager.event.EventDaoImpl"&gt;
      &lt;/beans:bean&gt;
      &lt;!-- Artist Dao Bean --&gt;
      &lt;beans:bean id="artistDao" class="com.ceelive.dao.manager.artist.ArtistDaoImpl"&gt;
      &lt;/beans:bean&gt;
      &lt;!-- Event Service Bean --&gt;
      &lt;beans:bean id="eventService" class="com.ceelive.service.event.EventServiceImpl"&gt;
          &lt;beans:property name="eventDao" ref="eventDao"&gt;&lt;/beans:property&gt;
      &lt;/beans:bean&gt;
      &lt;!-- Artist Service Bean --&gt;
      &lt;beans:bean id="artistService" class="com.ceelive.service.artist.ArtistServiceImpl"&gt;
          &lt;beans:property name="artistDao" ref="artistDao"&gt;&lt;/beans:property&gt;
      &lt;/beans:bean&gt;
      &lt;!-- Event Controller Bean --&gt;
      &lt;beans:bean id="eventController" class="com.ceelive.controller.EventController"&gt;
          &lt;beans:property name="eventService" ref="eventService"&gt;&lt;/beans:property&gt;
          &lt;beans:property name="beanUtil" ref="beanUtil"&gt;&lt;/beans:property&gt;
      &lt;/beans:bean&gt;
      &lt;!-- Artist Controller Bean --&gt;
      &lt;beans:bean id="artistController" class="com.ceelive.controller.ArtistController"&gt;
          &lt;beans:property name="artistService" ref="artistService"&gt;&lt;/beans:property&gt;
          &lt;beans:property name="beanUtil" ref="beanUtil"&gt;&lt;/beans:property&gt;
      &lt;/beans:bean&gt;
      &lt;!-- BeanUtil bean --&gt;
      &lt;beans:bean id="beanUtil" class="com.ceelive.utility.BeanUtil"&gt;
      &lt;!-- HibernateConfiguration bean --&gt;
      &lt;/beans:bean&gt;
         &lt;beans:bean id="hibernateConfiguration" class="com.ceelive.configuration.HibernateConfiguration"&gt;
      &lt;/beans:bean&gt;
      &lt;!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory --&gt;
          &lt;beans:bean id="tilesConfigurer"
          class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"&gt;
          &lt;beans:property name="definitions"&gt;
              &lt;beans:list&gt;
                  &lt;beans:value&gt;/WEB-INF/tiles.xml&lt;/beans:value&gt;
              &lt;/beans:list&gt;
          &lt;/beans:property&gt;
      &lt;/beans:bean&gt;
      &lt;beans:bean id="tilesViewResolver"
          class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
          &lt;beans:property name="viewClass"&gt;
              &lt;beans:value&gt;
                  org.springframework.web.servlet.view.tiles2.TilesView
              &lt;/beans:value&gt;
          &lt;/beans:property&gt;
          &lt;beans:property name="order" value="0"/&gt;
      &lt;/beans:bean&gt;
  
      &lt;context:component-scan base-package="com.frameworkonly.tilesapp" /&gt;
  &lt;/beans:beans&gt;
  </code></pre>