Hello Community,
This is the issue I am facing in deployment. While I am running the traccar jar files in linux VM. In local it is working fine as I am adding the ojdbc dependancy in bulild.gradle file. For reverifying I am extract the jar then I am also find the ojdbc is also present there. As it is present then why the oracle driver is not finding in server side. Please help.
2024-06-10 10:53:56 INFO: Operating system name: Windows 11 version: 10.0 architecture: amd64
2024-06-10 10:53:56 INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 11.0.17+10-LTS-269
2024-06-10 10:53:56 INFO: Memory limit heap: 2008mb non-heap: 0mb
2024-06-10 10:53:56 INFO: Character encoding: windows-1252
2024-06-10 10:53:56 INFO: Version: 6.1
2024-06-10 10:53:56 INFO: Starting server...
2024-06-10 10:53:56 ERROR: Main method error -
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at org.traccar.storage.DatabaseModule.provideDataSource(DatabaseModule.java:64)
at org.traccar.storage.DatabaseModule$$FastClassByGuice$$17323c.GUICE$TRAMPOLINE(<generated>)
at org.traccar.storage.DatabaseModule$$FastClassByGuice$$17323c.apply(<generated>)
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:260)
at com.google.inject.internal.ProviderMethod.doProvision(ProviderMethod.java:171)
at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.provision(InternalProviderInstanceBindingImpl.java:185)
at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.get(InternalProviderInstanceBindingImpl.java:162)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:40)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186)
at org.traccar.MainModule.provideStorage(MainModule.java:129)
at org.traccar.MainModule$$FastClassByGuice$$9e1e2.GUICE$TRAMPOLINE(<generated>)
at org.traccar.MainModule$$FastClassByGuice$$9e1e2.apply(<generated>)
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:260)
at com.google.inject.internal.ProviderMethod.doProvision(ProviderMethod.java:171)
at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.provision(InternalProviderInstanceBindingImpl.java:185)
at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.get(InternalProviderInstanceBindingImpl.java:162)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:40)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:60)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:300)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1186)
at org.traccar.schedule.ScheduleManager.lambda$start$0(ScheduleManager.java:49)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.base/java.util.stream.ReferencePipeline$Head.forEachOrdered(ReferencePipeline.java:668)
at org.traccar.schedule.ScheduleManager.start(ScheduleManager.java:49)
at org.traccar.Main.run(Main.java:127)
at org.traccar.Main.main(Main.java:111)
The error indicates that you're still missing the driver.
Hello Community,
This is the issue I am facing in deployment. While I am running the traccar jar files in linux VM. In local it is working fine as I am adding the ojdbc dependancy in bulild.gradle file. For reverifying I am extract the jar then I am also find the ojdbc is also present there. As it is present then why the oracle driver is not finding in server side. Please help.