Tiles + Spring + wildfly 11 + java 8:java.lang.UnsupportedOperationException:此解析器不支持规范“null”版本“null”

时间:2018-04-04 22:50:04

标签: spring wildfly tiles

我使用spring4,tiles 3.0.7,java 8和wildfly 11部署了一个耳朵但是我收到以下错误:

  

:45:18,865 INFO [org.jboss.as](控制器启动线程)   WFLYSRV0060:Http管理界面监听   http://127.0.0.1:9990/management       00:45:18,865 INFO [org.jboss.as](控制器启动线程)WFLYSRV0051:管理控制台监听http://127.0.0.1:9990       00:45:18,865 INFO [org.jboss.as](控制器启动线程)WFLYSRV0025:WildFly Full 11.0.0.Final(WildFly Core 3.0.8.Final)   开始于15761ms - 开始了1144项服务中的915项(356项服务是   懒惰,被动或按需)       00:45:19,773 ERROR Digester:789 - Digester.getParser:       java.lang.UnsupportedOperationException:此解析器不支持规范“null”版本“null”         在javax.xml.parsers.SAXParserFactory.setSchema(SAXParserFactory.java:394)         在__redirected .__ SAXParserFactory.setSchema(__ SAXParserFactory.java:158)         在org.apache.commons.digester.Digester.getFactory(Digester.java:536)         在org.apache.commons.digester.Digester.getParser(Digester.java:786)         在org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)         在org.apache.commons.digester.Digester.parse(Digester.java:1887)         在org.apache.tiles.definition.digester.DigesterDefinitionsReader.read(DigesterDefinitionsReader.java:325)         at org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO.loadDefinitionsFromResource(BaseLocaleUrlDefinitionDAO.java:150)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadRawDefinitionsFromResources(CachingLocaleUrlDefinitionDAO.java:234)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadRawDefinitionsFromResources(CachingLocaleUrlDefinitionDAO.java:225)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadRawDefinitionsFromResources(CachingLocaleUrlDefinitionDAO.java:225)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadDefinitionsFromResources(CachingLocaleUrlDefinitionDAO.java:203)         在org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.loadDefinitions(CachingLocaleUrlDefinitionDAO.java:192)         at org.apache.tiles.definition.dao.ResolvingLocaleUrlDefinitionDAO.loadDefinitions(ResolvingLocaleUrlDefinitionDAO.java:68)         在org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.checkAndloadDefinitions(CachingLocaleUrlDefinitionDAO.java:174)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.getDefinitions(CachingLocaleUrlDefinitionDAO.java:131)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.getDefinition(CachingLocaleUrlDefinitionDAO.java:105)         at org.apache.tiles.definition.dao.CachingLocaleUrlDefinitionDAO.getDefinition(CachingLocaleUrlDefinitionDAO.java:49)         at org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory.getDefinition(UnresolvingLocaleDefinitionsFactory.java:89)         在org.apache.tiles.impl.BasicTilesContainer.getDefinition(BasicTilesContainer.java:286)         在org.apache.tiles.impl.BasicTilesContainer.isValidDefinition(BasicTilesContainer.java:273)         at org.apache.tiles.renderer.DefinitionRenderer.isRenderable(DefinitionRenderer.java:64)         在org.springframework.web.servlet.view.tiles3.TilesView.checkResource(TilesView.java:116)         在org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:483)         在org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:244)         在

我尝试了很多解决方案,但它们不起作用。 我使用tile版本3.0.7

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

我尝试从第1层到第3层升级时遇到了同样的问题。 无论如何,我的修复是将xercesimpl版本升级到2.11.0

<dependency>
      <groupId>xerces</groupId>
      <artifactId>xercesImpl</artifactId>
      <version>2.11.0</version>
</dependency>