Announcement Announcement Module
Collapse
No announcement yet.
Please help. Tomcat deployment doesn't work. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Please help. Tomcat deployment doesn't work.

    I have deployed the MySchool-0.1.0.BUILD-SNAPSHOT.war file to my local tomcat server and I am getting the following exceptions. I don't get this when I run mvn tomcat:run. When I enter the URL: http://localhost:8080/MySchool-0.1.0.BUILD-SNAPSHOT/ I get these errors.

    My installed tomcat is version is 7.0.26. The mvn tomcat is version 6.0.29. Does anyone have any clues? Why is it finding two StudentImplementations?

    -Denis


    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'artifactController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: com.app.myschool.service.ArtifactService com.app.myschool.web.ArtifactController.artifactSe rvice; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'applicationConversionService' defined in ServletContext resource [/WEB-INF/spring/webmvc-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [com.app.myschool.web.ApplicationConversionServiceF actoryBean]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'com.app.myschool.web.ApplicationConversionService FactoryBean': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: com.app.myschool.service.StudentService com.app.myschool.web.ApplicationConversionServiceFa ctoryBean.studentService; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No unique bean of type [com.app.myschool.service.StudentService] is defined: expected single matching bean but found 2: [student, studentServiceImpl]
    org.springframework.beans.factory.annotation.Autow iredAnnotationBeanPostProcessor.postProcessPropert yValues(AutowiredAnnotationBeanPostProcessor.java: 287)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1106)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 94)
    org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
    org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:291 )
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
    org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:585)
    org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:913)
    org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:464)
    org.springframework.web.servlet.FrameworkServlet.c onfigureAndRefreshWebApplicationContext(FrameworkS ervlet.java:631)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:5 88)
    org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:6 45)
    org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:508 )
    org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:449)
    org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.j ava:160)
    org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:98)
    org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:927)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:987)
    org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:579)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:307)
    java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:722)
Working...
X