404- Not Found

abel campos5 years ago

HI!!! i`m using Netbeans to lift the traccar, when digit the address localhost:8082 in the browser i get this error, which can be???

Thanks

Anton Tananaev5 years ago

It probably means that you don't have the web app.

abel campos5 years ago

Hi Anton, this is my program structure:

https://imgur.com/GVHhTZy

Anton Tananaev5 years ago

And what config are you using?

abel campos5 years ago

Exactly in what part?

Macan5 years ago

Config in traccar.xml file or config file

abel campos5 years ago

traccar.xml :

<?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'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password'></entry>

</properties>
Anton Tananaev5 years ago

If you run it from NetBeans, you should probably be using debug.xml config.

abel campos5 years ago

ok!

debug.xml

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key='config.default'>./setup/default.xml</entry>

    <entry key='web.path'>./traccar-web/web</entry>
    <entry key='web.debug'>true</entry>
    <entry key='web.console'>true</entry>

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>ban</entry>

    <entry key='logger.console'>true</entry>

    
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry> 
    <entry key='database.url'>jdbc:mysql://localhost:3306/traccar?useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>root</entry> 
    <entry key='database.password'></entry>
    
    <entry key='intellitrac.port'>6037</entry>   


</properties>
abel campos5 years ago

Any tips????