从tomcat 6切换到tomcat 7时,启动spring应用程序的错误日志。

时间:2021-03-16 13:36:47

While switching the same spring application from tomcat 6-0-35 to tomcat 7-0-32 I am receiving the following warning/error messages in the console:

在将同一个spring应用程序从tomcat 6-0-35切换到tomcat 7-0-32时,我在控制台上收到以下警告/错误消息:

WARNING: Failed to process TLD with path [/spring] and URI [/WEB-INF/tld/spring-form.tld]
 java.net.MalformedURLException
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:772)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:542)
at org.apache.catalina.startup.TldConfig.tldScanWebXml(TldConfig.java:355)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:270)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:567)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

1 个解决方案

#1


1  

For some reason Tomcat 7.0 needs adding spring-form.tld to /WEB-INF/tld directory in contrast to Tomcat 6.0 that gets this file from jar

由于某些原因,Tomcat 7.0需要添加spring表单。tld to /WEB-INF/tld目录与从jar中获取该文件的Tomcat 6.0不同。

#1


1  

For some reason Tomcat 7.0 needs adding spring-form.tld to /WEB-INF/tld directory in contrast to Tomcat 6.0 that gets this file from jar

由于某些原因,Tomcat 7.0需要添加spring表单。tld to /WEB-INF/tld目录与从jar中获取该文件的Tomcat 6.0不同。