Parse Fatal Error at startup

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
mpenhor
Posts: 4
Joined: Wed Jul 16, 2014 3:04 pm

Parse Fatal Error at startup

Post by mpenhor » Wed Jul 16, 2014 3:22 pm

Hi, all.
We just downloaded and installed the Dovetail version of Tomcat. When we first tried to start it up, using the JZOS batch launcher, we got a parse error and Tomcat would not start. Here's the STDERR output from the execution. Help!

Jul 14, 2014 2:17:01 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 7 column 2: The markup declarations contained or pointed to by the document type declaration must
be well-formed.
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:601)
at org.apache.catalina.startup.Catalina.load(Catalina.java:649)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)
Jul 14, 2014 2:17:01 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: The markup declarations contained or pointed to by the document type declaration must
be well-formed.
Jul 14, 2014 2:17:01 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 7 column 2: The markup declarations contained or pointed to by the document type declaration must
be well-formed.
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
at org.apache.catalina.startup.Catalina.load(Catalina.java:601)
at org.apache.catalina.startup.Catalina.start(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Jul 14, 2014 2:17:01 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: The markup declarations contained or pointed to by the document type declaration must
be well-formed.
Jul 14, 2014 2:17:01 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.

We have downloaded Tomcat 7.0.54 from Apache and installed it and it works fine from a telnet session startup, but really need to use the JZOS batch launcher in our particular enviornment. That's why we really would prefer to use the Dovetail product.

Thanks.
Marty

dovetail
Site Admin
Posts: 1807
Joined: Thu Jul 29, 2004 12:12 pm

Re: Parse Fatal Error at startup

Post by dovetail » Thu Jul 17, 2014 4:18 pm

According to the exception, your conf/server.xml file contains malformed XML.

mpenhor
Posts: 4
Joined: Wed Jul 16, 2014 3:04 pm

Re: Parse Fatal Error at startup

Post by mpenhor » Thu Jul 17, 2014 4:46 pm

The server.xml file is the one that was delivered to us in the package from Dovetail. We didn't change it, just followed the installation instructions and got this at the point they said to 'submit the job!'.

dovetail
Site Admin
Posts: 1807
Joined: Thu Jul 29, 2004 12:12 pm

Re: Parse Fatal Error at startup

Post by dovetail » Thu Jul 17, 2014 5:07 pm

it seems to be complaining about mal-formed XML in one of the included entities, like //DD:TCCONFIG(SERVXML)

mpenhor
Posts: 4
Joined: Wed Jul 16, 2014 3:04 pm

Re: Parse Fatal Error at startup

Post by mpenhor » Wed Jul 23, 2014 9:48 am

That's what we thought, so we took the statements out of the SERVXML member of the TCCONFIG pds and inserted them directly into the server.xml file in the conf directory for Tomcat. Also, had to add <Server . . .> </Server> statements to the server.xml file and then it came up OK. Why doesn't the //DD:TCCONFIG(SERVXML statement work? It's like Tomcat is ignoring it on startup.

Post Reply