对比较老旧JAVA系统增加功能出现的问题

分类:工作记,问题集 | 作者:凹凸曼 | 发表于2020/05/28 对比较老旧JAVA系统增加功能出现的问题已关闭评论

当前对系统部署编译过程序到运营环境无法启动站点

查看启动日志  cat logs/catalina.out

异常错误如下:

严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
五月 27, 2020 6:08:25 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/wzsc] startup failed due to previous errors
五月 27, 2020 6:09:20 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

跟踪具体错误日志:cat logs/localhost.2020-05-27.log

异常错误如下:

信息: Initializing Spring root WebApplicationContext
五月 27, 2020 6:08:25 下午 org.apache.catalina.core.StandardContext listenerStart
严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoad
erListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘yuqin
gJob’ defined in ServletContext resource [/WEB-INF/applicationContext-quatz.xml]: Cannot reso
lve reference to bean ‘dataYuqingManager’ while setting bean property ‘targetObject’; nested
exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘
dataYuqingManager’ is defined
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefer
ence(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValue
IfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.apply
PropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.popul
ateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCre
ateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.creat
eBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstract
BeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleto
n(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBe
anFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBean
Factory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiat
eSingletons(DefaultListableBeanFactory.java:567)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryIn
itialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApp
licationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationCon
text(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoa
der.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLo
aderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5136)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5662)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1327)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:685)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter
Chain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja
va:208)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.jav
a:141)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter
Chain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja
va:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter
Chain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja
va:208)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter
Chain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.ja
va:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219
)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110
)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
604)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:165)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.j
ava:1201)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProto
col.java:654)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1782
)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1741)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘da
taYuqingManager’ is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefini
tion(DefaultListableBeanFactory.java:529)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDe
finition(AbstractBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBe
anFactory.java:277)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBean
Factory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefer
ence(BeanDefinitionValueResolver.java:322)
… 50 more


/WEB-INF/applicationContext-quatz.xml  有引用
定时任务dataYuqingManager 但是发现此类已经注释 无法引用到。

解决办法:
/WEB-INF/applicationContext-quatz.xml 移除定时任务
dataYuqingManager 引用即可

文出自 “凹凸曼” 博客,请务必保留此出处 http://www.apoyl.com/?p=2865

Tag:

日志信息 »

该日志于2020-05-28 10:07由 凹凸曼 发表在工作记, 问题集分类下, 评论已关闭。

目前盖楼

抱歉,评论被关闭

« »