Server.xml
Asked by Martn Andersson:

EDIT: I opened my eyes, this is fixed now..

Hello!

Im getting errors in the log file named Catalina\*\*\*.txt located in ..\\Confluence\\logs

20-May-2019 11:32:51.653 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match \[Server\] failed to set property \[debug\] to \[0\]  
20-May-2019 11:32:51.669 SEVERE \[main\] org.apache.tomcat.util.digester.Digester.fatalError Parse fatal error at line \[9\] column \[11\]  
org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files/Atlassian/Confluence/conf/server.xml; lineNumber: 9; columnNumber: 11; The string "--" is not permitted within comments.  
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)  
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)  
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)  
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)  
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)  
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:819)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:1034)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2982)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)  
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)  
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)  
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)  
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)  
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)  
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1431)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:566)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:607)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:306)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:491)

20-May-2019 11:32:51.669 WARNING \[main\] org.apache.catalina.startup.Catalina.load Unable to load server configuration from \[C:\\Program Files\\Atlassian\\Confluence\\conf\\server.xml\]  
org.xml.sax.SAXParseException; systemId: file:/C:/Program%20Files/Atlassian/Confluence/conf/server.xml; lineNumber: 9; columnNumber: 11; The string "--" is not permitted within comments.  
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)  
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)  
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1431)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:566)  
at org.apache.catalina.startup.Catalina.load(Catalina.java:607)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:306)  
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:491)

20-May-2019 11:32:51.669 SEVERE \[main\] org.apache.catalina.startup.Catalina.start Cannot start server, server instance is not configured


Answers:
author: Chandrakanth Bhat
body: Looks like your server.xml has corrupt entry. Check the comments in the server.xml \& remove if you have -- string inside a comment section.

Regards,

Chandru

comments: author: Martn Andersson
body: Yes, i read the log files again and saw that.

It got fixed when i removed the " -- "