技术文章 - CS361318
“严重:解析致命错误,位于第 [<Line> ] 柱子 [<Line Position>启动 Apache Tomcat for ThingWorx Platform 时,thingworx-foundation-stderr/tomcat9-stderr 中记录了 org.xml.sax.SAXParseException
已修改: 10-Jun-2025
适用于
- ThingWorx Platform 8.5 to 9.5
说明
- ThingWorx 平台无法启动
- 更新了 Apache Tomcat 配置文件(例如web.xml或server.xml) ,现在 ThingWorx Platform 将无法启动
- Apache Tomcat 启动后立即停止
- Apache Tomcat 配置文件中可能存在语法错误,如何确定哪个文件导致了此问题?
- 更新 SSL 证书后,Tomcat 未在 Windows 服务中启动
- ThingWorx 平台未启动,并且<ThingworxStorage>\logs中未生成任何日志
- 以下 Apache Tomcat 配置文件之一存在语法错误:
- <Apache Tomcat>\conf\server.xml
- <Apache Tomcat>\conf\tomcat-users.xml
- <Apache Tomcat>\conf\web.xml
- <Apache Tomcat>\webapps\Thingworx\WEB-INF\web.xml
- 以下错误记录在位于<Apache Tomcat>\logs中的thingworx-foundation-stderr或tomcat9-stderr中:
[DATE TIME] Apache Commons Daemon procrun stderr initialized. [DATE TIME] org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse fatal error at line [<Line>] column [<Line Position>] org.xml.sax.SAXParseException; systemId: file:<Path to Configuration File>; lineNumber: <Line>; columnNumber: <Line Position>; Element type "<Tag>" must be followed by either attribute specifications, ">" or "/>". at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) ... [DATE TIME] org.apache.catalina.startup.Catalina parseServerXml WARNING: Unable to load server configuration from [<Path to Configuration File>] org.xml.sax.SAXParseException; systemId: file:<Path to Configuration File>; lineNumber: <Line>; columnNumber: <Line Position>; Element type "<Tag>" must be followed by either attribute specifications, ">" or "/>". at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1243) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1535) ... [DATE TIME] org.apache.catalina.startup.Catalina start SEVERE: Cannot start server, server instance is not configured org.xml.sax.SAXParseException; systemId: file:<Path to Configuration File>; lineNumber: <Line>; columnNumber: <Line Position>; The value of attribute
这是文章 361318 的 PDF 版本,可能已过期。最新版本 CS361318