博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SSH整合(1)异常
阅读量:5036 次
发布时间:2019-06-12

本文共 11121 字,大约阅读时间需要 37 分钟。

信息: No Spring WebApplicationInitializer types detected on classpath十二月 01, 2016 10:06:12 下午 org.apache.catalina.core.ApplicationContext log信息: Initializing Spring root WebApplicationContextlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.十二月 01, 2016 10:06:12 下午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from file [E:\tomcat\apache-tomcat-7.0.69\webapps\SSH2\WEB-INF\classes\applicationContext-beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 74; cvc-datatype-valid.1.2.1: '' 不是 'NCName' 的有效值。    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:540)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)    at java.util.concurrent.FutureTask.run(FutureTask.java:262)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:745)Caused by: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 74; cvc-datatype-valid.1.2.1: '' 不是 'NCName' 的有效值。    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:458)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3237)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2832)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2769)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2056)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:746)    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:428)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)    ... 26 more十二月 01, 2016 10:06:12 下午 org.apache.catalina.core.StandardContext startInternal严重: One or more listeners failed to start. Full details will be found in the appropriate container log file十二月 01, 2016 10:06:12 下午 org.apache.catalina.core.StandardContext startInternal严重: Context [/SSH2] startup failed due to previous errors十二月 01, 2016 10:06:12 下午 org.apache.catalina.core.ApplicationContext log信息: Closing Spring root WebApplicationContext十二月 01, 2016 10:06:12 下午 org.apache.catalina.core.StandardContext listenerStop严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListenerjava.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext    at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)    at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:921)    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:895)    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:841)    at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:551)    at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5115)    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5779)    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)    at java.util.concurrent.FutureTask.run(FutureTask.java:262)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:745)十二月 01, 2016 10:06:12 下午 org.apache.catalina.startup.HostConfig deployDirectory信息: Deployment of web application directory E:\tomcat\apache-tomcat-7.0.69\webapps\SSH2 has finished in 1,973 ms十二月 01, 2016 10:06:12 下午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["http-apr-8080"]十二月 01, 2016 10:06:12 下午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["ajp-apr-8009"]十二月 01, 2016 10:06:12 下午 org.apache.catalina.startup.Catalina start信息: Server startup in 5552 ms

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
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-3.0.5.xsd">

去掉中间的版本就OK了。

另外再贴个异常

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerjava.lang.NoSuchMethodError: org.springframework.web.context.support.XmlWebApplicationContext.getEnvironment()Lorg/springframework/core/env/ConfigurableEnvironment;at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:87)

  

严重:Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListenerjava.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Wed Nov 30 22:58:32 CST 2016]; root of context hierarchyat org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:327)去掉lib的asm.jar包。加入。context-support.jar  不要引用了myeclipse spring ,struts hibernate包又导入jar。再检查Struts2 .Spring 包是有没有重复。引起的包重复。SSH整合中 关于asm.jar包冲突的博客非常多。可以百度一下。

 

posted on
2016-12-01 23:47 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/1-Admin/p/6124101.html

你可能感兴趣的文章
最小生成树(luogu 3366)
查看>>
Python os.path.join 双斜杠的解决方法
查看>>
高并发下线程安全的单例模式
查看>>
牛客网2018年全国多校算法寒假训练营练习比赛(第二场)
查看>>
TD的访问地址
查看>>
Centos下的IO监控与分析
查看>>
在python包管理中使用easy_install软件的步骤
查看>>
JS笔记一:动态修改css样式
查看>>
一道关于数组的前端面试题
查看>>
为何要有交叉编译
查看>>
Retrotranslator使用简介(JDK1.5->1.4)
查看>>
Qss All
查看>>
C# 以ThreadStart方式实现多线程
查看>>
查询近一个月的表空间使用情况
查看>>
PTM人员(产品技术经理)
查看>>
Delphi 的RTTI机制浅探<一>
查看>>
SqlServer中循环和条件语句示例!
查看>>
Sokect异步连接发送
查看>>
Making HTML5 work in IE6, IE7 & IE8
查看>>
在ASP.NET 5中如何方便的添加前端库
查看>>