GeezerVison is showing github.com — Postgres plugin not activating on windows start file · Issue #97 · ArcadeData/arcadedb
Postgres plugin not activating on windows start file #97DescriptionArcadeDB Version: 21.10
JDK Version: Oracle 8
OS: Windows 10
Expected behavior
Postgres Protocol plugin started displayed.
Actual behavior
Starting ArcadeDB Server with plugins []... displayed
Steps to reproduce
server.bat -Darcadedb.server.plugins=Postgres Activitylvca commented on Oct 5, 2021 Fond the issue, the commands are passed after the class but they should be before the Java class.
java ... %CMD_LINE_ARGS% com.arcadedb.server.ArcadeDBServer
lvca commented on Oct 5, 2021 Ok, tested the unix/macosx/linux version and works. I don't have a Windows quickly to try.
Could you please get the latest distribution from git, build it (mvn clean install -DskipTests) and then:
server.bat -Darcadedb.server.plugins=Postgres:com.arcadedb.postgres.PostgresProtocolPlugin
Jurgen-Aquilina commented on Oct 5, 2021
Ok, tested the unix/macosx/linux version and works. I don't have a Windows quickly to try.
Could you please get the latest distribution from git, build it (mvn clean install -DskipTests) and then:
server.bat -Darcadedb.server.plugins=Postgres:com.arcadedb.postgres.PostgresProtocolPlugin
It gives the following error now:
Error: Could not find or load main class Postgres:com.arcadedb.postgres.PostgresProtocolPlugin
Caused by: java.lang.ClassNotFoundException: Postgres:com.arcadedb.postgres.PostgresProtocolPlugin
lvca commented on Oct 6, 2021 I guess : cause troubles under Windows. Could you please try this:
server.bat -Darcadedb.server.plugins="Postgres:com.arcadedb.postgres.PostgresProtocolPlugin"
Jurgen-Aquilina commented on Oct 6, 2021
I guess : cause troubles under Windows. Could you please try this:
server.bat -Darcadedb.server.plugins="Postgres:com.arcadedb.postgres.PostgresProtocolPlugin"
This displays "Starting ArcadeDB Server with plugins []... displayed" lvca commented on Oct 6, 2021 I pushed a fix for that, please let me know if you can retry it after pulling from the latest version.. Jurgen-Aquilina commented on Oct 7, 2021 @lvca apologies I accidentally ran it on the release distribution. On the latest commit in the main branch it results in the same error again as below:
Error: Could not find or load main class Postgres:com.arcadedb.postgres.PostgresProtocolPlugin
Caused by: java.lang.ClassNotFoundException: Postgres:com.arcadedb.postgres.PostgresProtocolPlugin
lvca commented on Oct 7, 2021 The weird thing is that is trying to load the class Postgres:com.arcadedb.postgres.PostgresProtocolPlugin but it should look for com.arcadedb.postgres.PostgresProtocolPlugin. it's seems the parsing of parameters doesn't work under windows. I'm looking for a windows machine where to run our tests. Jurgen-Aquilina commented on Oct 7, 2021 Could it be that the command says Postgres:com.arcadedb.postgres.PostgresProtocolPlugin rather than com.arcadedb.postgres.PostgresProtocolPlugin? I ran the latter now but got the following error:
Error: Main method not found in class com.arcadedb.postgres.PostgresProtocolPlugin, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application
If you need anymore testing for windows in the short-term let me know lvca commented on Oct 7, 2021 The syntax is <plugin-name>:<class>, so it's correct Postgres:com.arcadedb.postgres.PostgresProtocolPlugin. But for some reason, it's not splitting the string. lvca commented on Oct 13, 2021 @Jurgen-Aquilina could you please retry with the latest release? Thanks in advance. lvca commented on Jan 4, 2022 Does anybody have a Windows machine that can help with this? Waiting for the final solution, this works for now: setting the plugin in ARCADEDB_SETTING environment variable and then run the server:
set ARCADEDB_SETTINGS=-Darcadedb.server.plugins="Postgres:com.arcadedb.postgres.PostgresProtocolPlugin"
bin\server.bat
Reacted by Shasaur Reacted by Shasaur Reacted by Shasaur shasaur commented on Jan 29, 2023 For anyone trying this on Windows, note: the workaround does not work in the new Terminal, but does work in the old Command Prompt. LLuke commented on Nov 17, 2023 There are bugs with the server.bat, for example, if I want to use a non-default databases location, it would throw errors like
.\arcadedb-23.10.1\bin\server.bat -Dserver.databaseDirectory=Z:\arcadedb\databases
...
ARCADEDB server script path = ...
ARCADEDB home directory = ...
Error: Could not find or load main class Z:\arcadedb\databases
Caused by: java.lang.ClassNotFoundException: Z:\arcadedb\databases
Edit and add the options in the server.bat including postgres plugin settings will be fine, but such would fail with the command line. lvca commented on Nov 17, 2023 I'm using server.sh and it correctly instances the Postgres plugin. By the way, how can we fix the server.bat? Adding quotes for paths? LLuke commented on Nov 19, 2023 I just created a PR for you #1333 and this also fixed #173 under windows.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|