Build from Source 5.6

anpalama2 years ago

I try to build traccar-server.jar from source with IteliiJ Idea but since 5.6 the created file doesn't start on my raspi
Until 5.5 all did fine. What could be the reason and how can I solve it?

Here is log protocol from raspi

Feb 11 10:31:05 raspberrypi systemd[1]: Started traccar.
Feb 11 10:31:07 raspberrypi traccar[16708]: Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/Module
Feb 11 10:31:07 raspberrypi traccar[16708]: #011at org.traccar.Main.run(Main.java:120)
Feb 11 10:31:07 raspberrypi traccar[16708]: #011at org.traccar.Main.main(Main.java:114)
Feb 11 10:31:07 raspberrypi traccar[16708]: Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.Module
Feb 11 10:31:07 raspberrypi traccar[16708]: #011at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
Feb 11 10:31:07 raspberrypi traccar[16708]: #011at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
Feb 11 10:31:07 raspberrypi traccar[16708]: #011at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
Feb 11 10:31:07 raspberrypi traccar[16708]: #011... 2 more
Feb 11 10:31:07 raspberrypi systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Feb 11 10:31:07 raspberrypi systemd[1]: traccar.service: Failed with result 'exit-code'.
Feb 11 10:31:17 raspberrypi systemd[1]: traccar.service: Service RestartSec=10s expired, scheduling restart.
Feb 11 10:31:17 raspberrypi systemd[1]: traccar.service: Scheduled restart job, restart counter is at 35.
Feb 11 10:31:17 raspberrypi systemd[1]: Stopped traccar.
Anton Tananaev2 years ago

Looks like missing dependencies. Are you sure you updated everything and not just the JAR file?

anpalama2 years ago

First I installed your completed official release 5.6 on my raspi. Traccar 5.6 runs fine.
Than I create a new JAR file with Intellij and replace only the new created Jar file on my raspi. So I always did it until 5.5
But the Jar file created by myself with Inteliij doesnt start, only your released Jar file starts properly .

Anton Tananaev2 years ago

Try to redownload the official version and do everything again. We had some issues with dependencies in the beginning.

anpalama2 years ago

yes, after redownload and reinstall the official release I can make and run the JAR file made by myself