title: Spring Issues: Error creating beans and Injection of autowired dependencies failed
body: <p>So i'm trying to learn spring and i've been reading a lot of tutorials and trying copying some code from a project that I have in a flash drive.</p>
  
  <p>I already set up tomcat and it works find but i'm still having some problems here.
  The thing is I can normally access a controller's action from my browser without a problem, but when I started adding annotations and ContextLoaderListener it gave me a 404 status all the time. I don't know what I did, but by tweaking some things around, my browser at least tries to reach the controller again. But throws a huge error log which I will share at the end of this post.</p>
  
  <p>These are my dependencies:</p>
  
  <blockquote>
    <ul>
    <li>junit 4.12</li>
    <li>spring-webmvc 4.1.6.RELEASE </li>
    <li>spring-context 4.1.6.RELEASE</li>
    <li>spring-web 4.1.6.RELEASE</li>
    <li>spring-beans 4.1.6.RELEASE</li>
    <li>spring-data-jpa 1.8.0.RELEASE</li>
    <li>spring-jdbc 4.1.6.RELEASE</li>
    <li>mysql-connector-java 5.1.35</li>
    <li>jstl 1.2</li>
    <li>javax.servlet-api 3.1.0 (scope provided)</li>
    <li>javax.servlet.jsp-api 3.1.0 (scope provided)</li>
    <li>jackson-databind 2.5.4</li>
    <li>jackson-core 2.5.4</li>
    <li>jackson-core-asl 1.9.13</li>
    <li>jackson-datatype-hibernate4 2.5.4</li>
    <li>hibernate-annotations 3.5.6-Final</li>
    <li>hibernate-commons-annotations 3.2.0.Final</li>
    <li>hibernate-entitymanager 4.3.10.Final</li>
    <li>jsondoc-core 1.1.15</li>
    <li>jsondoc-springmvc 1.1.15</li>
    <li>jsondoc-ui-webjar 1.1.15</li>
    <li>commons-logging 1.2</li>
    <li>commons-logging-api 1.1</li>
    <li>commons-dbcp 1.4</li>
    </ul>
  </blockquote>
  
  <p>My build plugins are:</p>
  
  <blockquote>
    <ul>
    <li>maven-compiler-plugin 3.1 (source and target 1.8)</li>
    <li>maven-war-plugin 2.4</li>
    </ul>
  </blockquote>
  
  <p><strong>My 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"
       version="3.0"&gt;
  &lt;display-name&gt;Spring Web MVC Application&lt;/display-name&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;
          classpath*:WEB-INF/application-context.xml
          classpath*:WEB-INF/persistence-context.xml
      &lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;mvc-dispatcher&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/mvc-dispatcher-servlet.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-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/api/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>My mvc-dispatcher-servlet</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans" 
      xmlns:context="http://www.springframework.org/schema/context" 
      xmlns:mvc="http://www.springframework.org/schema/mvc" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="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 
                          http://www.springframework.org/schema/mvc
                          http://www.springframework.org/schema/mvc/spring-mvc.xsd"&gt;
  
  &lt;context:component-scan base-package="com.ve" use-default-filters="false"&gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Controller" /&gt;
  &lt;/context:component-scan&gt;
  
  &lt;mvc:annotation-driven&gt;
      &lt;mvc:message-converters&gt;
          &lt;bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"&gt;
              &lt;property name="objectMapper"&gt;
                  &lt;bean class="com.ve.main.HibernateAwareObjectMapper" /&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
      &lt;/mvc:message-converters&gt;
  &lt;/mvc:annotation-driven&gt;
  
  &lt;bean id="documentationController" class="org.jsondoc.springmvc.controller.JSONDocController"&gt;
      &lt;constructor-arg name="version" value="1.0"/&gt;
      &lt;constructor-arg name="basePath" value="http://localhost:4848/spring2"/&gt;
      &lt;constructor-arg name="packages"&gt;
      &lt;list&gt;
      &lt;value&gt;com.ve&lt;/value&gt;
      &lt;/list&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>My application-context.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:context="http://www.springframework.org/schema/context"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
                      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
                      http://www.springframework.org/schema/context
                      http://www.springframework.org/schema/context/spring-context-3.0.xsd"&gt;
  
  &lt;context:component-scan base-package="com.ve" use-default-filters="false"&gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Repository" /&gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Service" /&gt;
  &lt;/context:component-scan&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>My persistence-context.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans" 
      xmlns:tx="http://www.springframework.org/schema/tx" 
      xmlns:jpa="http://www.springframework.org/schema/data/jpa" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 
          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd 
          http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd"&gt;
  &lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
      &lt;property name="driverClassName" value="com.mysql.jdbc.Driver" /&gt;
      &lt;property name="url" value="jdbc:mysql://localhost:3306/my_database" /&gt;
      &lt;property name="username" value="my_actual_db_user" /&gt;
      &lt;property name="password" value="my_actual_db_password" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="persistenceUnitManager" class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager"&gt;
      &lt;property name="defaultDataSource" ref="dataSource" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
      &lt;property name="persistenceUnitManager" ref="persistenceUnitManager" /&gt;
      &lt;property name="persistenceUnitName" value="persistenceUnit" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt;
      &lt;property name="entityManagerFactory" ref="entityManagerFactory" /&gt;
  &lt;/bean&gt;
  
  &lt;tx:annotation-driven transaction-manager="transactionManager" /&gt;
  
  &lt;jpa:repositories base-package="com.ve" entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>And just for information i will also quote my classes code and my project structure</p>
  
  <p><strong>StockController</strong></p>
  
  <pre><code>package com.ve.common.controller;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  import org.springframework.web.bind.annotation.ResponseBody;
  import com.ve.common.service.StockService;
  
  @Controller
  @RequestMapping("/stock")
  public class StockController {
  
      @Autowired
      private StockService stockService;
  
      public StockController(){}
  
      @RequestMapping(value="/list", method = RequestMethod.GET, produces={"application/json","application/xml"})
      @ResponseBody
      public String findAllStocks(){
          return "stocks";
      }
  }
  </code></pre>
  
  <p><strong>StockService</strong></p>
  
  <pre><code>package com.ve.common.service;
  import java.util.List;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Service;
  import com.ve.common.model.Stock;
  import com.ve.common.repo.StockRepository;
  
  @Service
  public class StockService {
  
      @Autowired
      private StockRepository stockRepository;
  
      StockService(){}
  
      List&lt;Stock&gt; findStock(){
          return (List&lt;Stock&gt;) stockRepository.findAll();
      }
  }
  </code></pre>
  
  <p><strong>StockRepository</strong></p>
  
  <pre><code>package com.ve.common.repo;
  import java.util.List;
  import org.springframework.data.repository.CrudRepository;
  import org.springframework.stereotype.Repository;
  import com.ve.common.model.Stock;
  
  @Repository
  public interface StockRepository extends CrudRepository&lt;Stock, Integer&gt; {
  
      List&lt;Stock&gt; findByStockName(String stockName);
  
      Stock findByStockId(Integer stockId);
  }
  </code></pre>
  
  <p>My model is a basic Entity class that implements Serializable (created by JPA tools).
  Now this is my project structure, I'm sorry I couldn't make the image smaller (i'm in a ruch at the moment).
  <img src="https://i.stack.imgur.com/EfyIF.png" alt="Project Structure"></p>
  
  <p>And here is a quote of that huge error i get in my browser when i access "<a href="http://localhost:4848/spring2/api/welcome/hi" rel="noreferrer">http://localhost:4848/spring2/api/welcome/hi</a>" or "<a href="http://localhost:4848/spring2/api/stock/list" rel="noreferrer">http://localhost:4848/spring2/api/stock/list</a>"</p>
  
  <blockquote>
    <p>HTTP Status 500 - Servlet.init() for servlet mvc-dispatcher threw
    exception</p>
    
    <p>type Exception report</p>
    
    <p>message Servlet.init() for servlet mvc-dispatcher threw exception</p>
    
    <p>description The server encountered an internal error that prevented it
    from fulfilling this request.</p>
    
    <p>exception</p>
    
    <p>javax.servlet.ServletException: Servlet.init() for servlet
    mvc-dispatcher threw exception
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      java.lang.Thread.run(Thread.java:745)</p>
    
    <p>root cause</p>
    
    <p>org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'stockController': Injection of autowired
    dependencies failed; nested exception is
    org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.ve.common.service.StockService
    com.ve.common.controller.StockController.stockService; nested
    exception is
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No
    qualifying bean of type [com.ve.common.service.StockService] found for
    dependency: expected at least 1 bean which qualifies as autowire
    candidate for this dependency. Dependency annotations:
    {@org.springframework.beans.factory.annotation.Autowired(required=true)}
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
      org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
      org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
      org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
      org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
      org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
      org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
      javax.servlet.GenericServlet.init(GenericServlet.java:160)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      java.lang.Thread.run(Thread.java:745)</p>
    
    <p>root cause</p>
    
    <p>org.springframework.beans.factory.BeanCreationException: Could not
    autowire field: private com.ve.common.service.StockService
    com.ve.common.controller.StockController.stockService; nested
    exception is
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No
    qualifying bean of type [com.ve.common.service.StockService] found for
    dependency: expected at least 1 bean which qualifies as autowire
    candidate for this dependency. Dependency annotations:
    {@org.springframework.beans.factory.annotation.Autowired(required=true)}
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
      org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
      org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
      org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
      org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
      org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
      org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
      org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
      javax.servlet.GenericServlet.init(GenericServlet.java:160)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      java.lang.Thread.run(Thread.java:745)</p>
    
    <p>root cause</p>
    
    <p>org.springframework.beans.factory.NoSuchBeanDefinitionException: No
    qualifying bean of type [com.ve.common.service.StockService] found for
    dependency: expected at least 1 bean which qualifies as autowire
    candidate for this dependency. Dependency annotations:
    {@org.springframework.beans.factory.annotation.Autowired(required=true)}
      org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1301)
      org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1047)
      org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
      org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
      org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
      org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
      org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
      org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
      org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
      org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
      org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
      org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
      javax.servlet.GenericServlet.init(GenericServlet.java:160)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      java.lang.Thread.run(Thread.java:745)</p>
  </blockquote>
  
  <p>I apologize for the excessive code blocking and blockquoting, but I think the more information I provide, the better help I can get. And I thank in advance whoever can give me a hand.</p>