가다파하
30
2020-05-04 18:21:39
0
108

TomCat 실행 오류 문의


SpringBoot, Java 1.8로 개발중인데 이클립스에서 실행시에는 문제가 없습니다.

근데 war로 묶어서 Tomcat에 올리니 아래와같은 오류가 발생하면서 스타트가 안되네요...

갑자기 발생해서 원인을 찾기가 힘든데 예상가는게 있으시다면 조언 부탁드립니다.



xxxController에는 @RestController

xxxService에는 @Service 가 잘 붙어있습니다.

xxxController, xxxService, loginService에서 xxxManager를 Autowired해서 사용하는데 

xxxManager 내에서는 @PostConstruct로 init함수가 있네요.



[2020-05-04 18:03:17.902] [ERROR]  [localhost-startStop-1] [SpringApplication][reportFailure:771] - Application startup failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'xxxService'; 

nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxService': Unsatisfied dependency expressed through field 'loginService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'loginService': Unsatisfied dependency expressed through field 'xxxManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxxManager': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/NullArgumentException

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1272) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:156) [spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:136) [spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) [spring-boot-1.5.16.BUILD-SNAPSHOT.jar:1.5.16.BUILD-SNAPSHOT]

at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169) [spring-web-4.3.18.RELEASE.jar:4.3.18.RELEASE]

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156) [catalina.jar:8.5.54]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:8.5.54]

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) [catalina.jar:8.5.54]

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) [catalina.jar:8.5.54]

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) [catalina.jar:8.5.54]

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970) [catalina.jar:8.5.54]

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1841) [catalina.jar:8.5.54]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_161]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_161]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_161]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_161]

at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]

0
0
  • 답변 0

  • 로그인을 하시면 답변을 등록할 수 있습니다.