Your XML file has a problem. Error message tells you exactly where.
Hi Anton,
Thank you for the feedback,This is my config file Anton, Can you show me the path to a fresh config file so we can start over?
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key='config.default'>./conf/default.xml</entry>
<!--
This is the main configuration file. All your configuration parameters should be placed in this file.
Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
remove "config.default" parameter from this file unless you know what you are doing.
For list of available parameters see following page: https://www.traccar.org/configuration-file/
-->
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key="database.datasource">com.mysql.jdbc.jdbc2.optional.MysqlDataSource</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/ex_traccar1?useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>ex_traccar1</entry>
<entry key='database.password'>1234567</entry>
</properties>
Upload both config files somewhere and post links here.
Hi Anton,
Thank you for your support, You can find both config files here: http://vardhmandigibank.com/traccar/
Configs look fine to me. It means that error is either old, or you are actually using different files.
i checked the log ,but found error in logs/wrapper.log.20181017 file.
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1465)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:747)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:1013)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:715)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:849)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:778)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:338)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at java.util.XMLUtils.getLoadingDoc(XMLUtils.java:102)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at java.util.XMLUtils.load(XMLUtils.java:74)
INFO|1960/0|Service traccar|18-10-17 00:15:31| ... 10 more
INFO|wrapper|Service traccar|18-10-17 00:15:31|waitpid 1960 59136
INFO|wrapper|Service traccar|18-10-17 00:15:31|exit code posix process: 59136 application(status/signal): 231/0
WARNING|wrapper|Service traccar|18-10-17 00:24:15|YAJSW: yajsw-stable-12.12
WARNING|wrapper|Service traccar|18-10-17 00:24:15|OS : Linux/3.10.0-042stab130.1/amd64
WARNING|wrapper|Service traccar|18-10-17 00:24:15|JVM : Oracle Corporation/1.7.0_191//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el7_5.x86_64/jre/64
INFO|wrapper|Service traccar|18-10-17 00:24:15|exec:/bin/java -classpath /opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/trac$
INFO|wrapper|Service traccar|18-10-17 00:24:15|posix_spawn pid 2460
INFO|wrapper|Service traccar|18-10-17 00:24:15|started process 2460
INFO|wrapper|Service traccar|18-10-17 00:24:15|started process with pid 2460
INFO|2460/0|Service traccar|18-10-17 00:24:17|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|2460/0|Service traccar|18-10-17 00:24:17|java.lang.reflect.InvocationTargetException
WARNING|wrapper|Service traccar|18-10-17 00:15:27|YAJSW: yajsw-stable-12.12
WARNING|wrapper|Service traccar|18-10-17 00:15:27|OS : Linux/3.10.0-042stab130.1/amd64
WARNING|wrapper|Service traccar|18-10-17 00:15:27|JVM : Oracle Corporation/1.7.0_191//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el7_5.x86_64/jre/64
INFO|wrapper|Service traccar|18-10-17 00:15:28|exec:/bin/java -classpath /opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/trac$
INFO|wrapper|Service traccar|18-10-17 00:15:28|posix_spawn pid 1960
INFO|wrapper|Service traccar|18-10-17 00:15:28|started process 1960
INFO|wrapper|Service traccar|18-10-17 00:15:28|started process with pid 1960
INFO|1960/0|Service traccar|18-10-17 00:15:30|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|1960/0|Service traccar|18-10-17 00:15:31|java.lang.reflect.InvocationTargetException
INFO|1960/0|Service traccar|18-10-17 00:15:31| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at java.lang.reflect.Method.invoke(Method.java:606)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|1960/0|Service traccar|18-10-17 00:15:31|Caused by: java.lang.RuntimeException: Configuration file is not a valid XML document
INFO|1960/0|Service traccar|18-10-17 00:15:31| at org.traccar.Config.load(Config.java:49)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at org.traccar.Context.init(Context.java:318)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at org.traccar.Main.main(Main.java:35)
INFO|1960/0|Service traccar|18-10-17 00:15:31| ... 6 more
INFO|1960/0|Service traccar|18-10-17 00:15:31|Caused by: java.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; The processi$
INFO|1960/0|Service traccar|18-10-17 00:15:31| at java.util.XMLUtils.load(XMLUtils.java:76)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at java.util.Properties.loadFromXML(Properties.java:863)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at org.traccar.Config.load(Config.java:34)
INFO|1960/0|Service traccar|18-10-17 00:15:31| ... 8 more
INFO|1960/0|Service traccar|18-10-17 00:15:31|Caused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]$
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
INFO|1960/0|Service traccar|18-10-17 00:15:31| at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
i tried many time but still got same log file ....
I appreciate your help on this.
I don't think I can help. You are clearly missing something, but I have no idea what.
any solution?
Maybe you messed up file encoding. I don't know.
I have no idea what i do as I am completely new to this.
Thanks for your help.
I'm referring to the config file. Somehow you messed it up with your change.
we need to use mysql database so we just change in traccar.xml
add in default.xml we change port to 8082
Can you tell or provide what we need to give in these files
Thank you for your support
Provide SSH access and I'll check.
Hi,
Running traccar start wont start the traccar and I am getting following error in log file: