0

我正在尝试将基于 spring+cxf+maven 的 Web 服务部署到 Wildfly。部署时,遇到此异常

2017-06-13 03:20:18,874 INFO  [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] (ServerService Thread Pool -- 60) Loading properties file from VFS resource ["/C:/xxxx/wildfly-9.0.2.Final/bin/content/ServiceWrapper-0.0.1-SNAPSHOT.ear/lib/ehcache-2.10.4.jar/ehcache-failsafe.xml"]
2017-06-13 03:20:18,883 WARN  [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 60) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 118; Document root element "ehcache", must match DOCTYPE root "null".
2017-06-13 03:20:18,886 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 60) Context initialization failed: org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 118; Document root element "ehcache", must match DOCTYPE root "null".

有人可以帮忙吗。

4

1 回答 1

0

我会在这里猜测一下,但您似乎加载了 ehcache 配置文件,就好像它是一个 Spring 配置文件一样。这显然行不通。

如果您向我们展示实际代码,我可以确认。

于 2017-06-15T14:22:01.530 回答