Didn't get very far in trying to install and run the jpa-guice version
of the Apache James server! I downloaded the software from
https://www.apache.org/dyn/closer.lua/james/server/3.8.2/james-server-jpa-guice.zip
I am following the instructions at
https://james.apache.org/server/install/guice-jpa.html except for the
Maven compilation steps.
When I tried to execute and run james, following the instructions
exactly, it fails -
quasar:/mail/apache-james-3.8/james-server-jpa-guice #java
-javaagent:james-server-jpa-guice.lib/openjpa-4.1.1.jar \
> -Dlogback.configurationFile=conf/logback.xml \
> -Djdk.tls.ephemeralDHKeySize=2048 \
> -Dworking.directory=. \
> -jar james-server-jpa-app.jar
Error opening zip file or JAR manifest missing :
james-server-jpa-guice.lib/openjpa-4.1.1.jar
Error occurred during initialization of VM
agent library failed to init: instrument
I then noted that the version of openjpa, supplied in the dowloaded zip
file, was openjpa-3.2.jar
quasar:/mail/apache-james-3.8/james-server-jpa-guice #ll
james-server-jpa-app.lib/openjpa*
-rw------- 1 james mail 4790420 May 10 2021
james-server-jpa-app.lib/openjpa-3.2.0.jar
so on a hunch I tried running james with that version -
quasar:/mail/apache-james-3.8/james-server-jpa-guice #java
-javaagent:james-server-jpa-guice.lib/openjpa-3.2.0.jar \
> -Dlogback.configurationFile=conf/logback.xml \
> -Djdk.tls.ephemeralDHKeySize=2048 \
> -Dworking.directory=. \
> -jar james-server-jpa-app.jar
Error opening zip file or JAR manifest missing :
james-server-jpa-guice.lib/openjpa-3.2.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument
I dunno what to try next, can some kind guru show me the way to
nirvana? Marc...