Hi, I tried to connect the database server using uri..
However the program emits error saying that no such Provider..
The code is below:
var uri = "objectdb://10.11.12.3:6136/asli-webmapper/accesslog.odb;user=asli-webmapper;password=admin1"; var emf = Persistence.createEntityManagerFactory(uri);
Error log:
bmpccdeMac-mini:mapper eko$ cd /Users/eko/work/asli/asli-java/mapper ; /usr/bin/env /Library/Java/JavaVirtualMachines/jdk-11.0.8.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 @/var/folders/nd/0154lndn6tg_gd3c6857mt380000gp/T/cp_44eka4akdrg7edivffdip1wz0.argfile jp.asli.webmapper.WebMapperHttpServer Current Working directory /Users/eko/work/asli/asli-java/mapper Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb://10.11.12.3:6136/asli-webmapper/accesslog.odb;user=asli-webmapper;password=admin1 at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:85) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54) at jp.asli.webmapper.WebMapperHttpServer.loadConfig(WebMapperHttpServer.java:221) at jp.asli.webmapper.WebMapperHttpServer.main(WebMapperHttpServer.java:37)