欢迎使用普元产品知识库,本知识库包含普元应用开发平台EOSPlatform,流程平台BPS,企业服务总线ESB,微服务平台Microservice,运维管理平台Devops,数据集成平台DI
欢迎使用普元文档库
场景一:
【问题描述】
[Primeton AppServer 6.5] [SEVERE] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=73 _ThreadName=admin-listener(3)] [timeMillis: 1658904402203] [levelValue: 1000] [[
在本地仓库中找不到请求的模式, 请确保XML命名空间声明中没有拼写错误。
org.xml.sax.SAXException: 在本地仓库中找不到请求的模式, 请确保XML命名空间声明中没有拼写错误。
at com.sun.enterprise.deployment.node.SaxParserHandler.resolveEntity(SaxParserHandler.java:229)
at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:110)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1081)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:657)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2430)
【问题定位】
根据异常信息,抛出org.xml.sax.SAXException
异常,应该是xml文件解析错误,具体哪个文件出错,可以通过增加log进行判断。log配置方式如下:
使用管理员登录PAS V6.5管理控制台,根据部署目标进行配置,例如应用部署到独立实例ins1
上,点击[ins1-config/日志记录程序设置],进入“日志级别”tab页。
javax.enterprise.system.tools.deployment.dol
级别为fine
的日志配置,点击<保存>按钮保存设置。
再次部署应用
日志信息中显示相关日志信息如下:[Primeton AppServer 6.5] [FINE] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=73 _ThreadName=admin-listener(3)] [timeMillis: 1658904402203] [levelValue: 500] [CLASSNAME: com.sun.enterprise.deployment.node.SaxParserHandler] [METHODNAME: resolveEntity] [[
Asked to resolve null system id = http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd]]
[Primeton AppServer 6.5] [FINE] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=73 _ThreadName=admin-listener(3)] [timeMillis: 1658904402203] [levelValue: 500] [CLASSNAME: com.sun.enterprise.deployment.node.SaxParserHandler] [METHODNAME: getSchemaFileFor] [[
Getting Schema webapp_3_0.xsd]]
[Primeton AppServer 6.5] [FINE] [] [javax.enterprise.system.tools.deployment.dol] [tid: _ThreadID=73 _ThreadName=admin-listener(3)] [timeMillis: 1658904402203] [levelValue: 500] [CLASSNAME: com.sun.enterprise.deployment.node.SaxParserHandler] [METHODNAME: getSchemaFileFor] [[
Cannot find schema webapp_3_0.xsd]]
http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd
的system id找不到对应的schema。应该是这个配置错误【解决方案】
find . -name "*.*" -type f |xargs grep http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd
WEB-INF/web.xml
中有该配置,检查后发现,正确配置应该为:http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
,配置中webapp_3_0.xsd
少写了减号“-”,导致错误。场景二:
【问题描述】
PAS中部署springboot应用报错:在本地仓库中找不到请求的模式, 请确保XML命名空间声明中没有拼写错误。
报错信息如下:com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value
【问题原因】
web.xml里面xsi:schemaLocation的链接里面多了个空格导致的。
【解决方案】
删除web.xml里面xsi:schemaLocation链接里的空格即可