I think this is simply a permission problem thehl@syrfedout4:/opt/james$ ls -l > james-server-jpa-app.lib/openjpa-4.1.1.jar
-rw------- 1 root root 4902846 May 15 16:11 > james-server-jpa-app.lib/openjpa-4.1.1.jar the openjpa jar is only readable by root but you run the service as james [Service] User=james Group=james so it can't read the jar ... jean On Thu, Oct 16, 2025 at 4:38 PM Thom Hehl <[email protected]> wrote: > I am a first time james user and am attempting to install on Ubuntu 24, I > think. > > I have done my best with web searches and using the install guide and now > have arrived at a place I need help. I have installed james in /opt/james > and java has a symlink at /opt/java. Here is my james directory: > > thehl@syrfedout4:/opt/james$ ls -l > total 124 > drwxr-xr-x 2 root root 4096 Oct 16 13:13 conf > drwxr-xr-x 2 root root 4096 Sep 25 22:32 extensions-jars > -rwxr-xr-x 1 root root 17262 Sep 25 22:31 james-server-jpa-app.jar > drwxr-xr-x 2 root root 20480 Sep 25 22:32 james-server-jpa-app.lib > -rw-r--r-- 1 root root 65533 Apr 14 2025 LICENSE > -rw-r--r-- 1 root root 4409 Jul 24 11:52 README.adoc > drwxr-xr-x 4 james james 4096 Oct 16 13:05 var > Thehl@syrfedout4:/opt/james$ > > Here is my service definition: > > thehl@syrfedout4:/opt/james$ sudo cat /etc/systemd/system/james.service > [Unit] > Description=James service > After=network.target > > [Service] > User=james > Group=james > WorkingDirectory=/opt/james > ExecStart=/opt/java/bin/java > -javaagent:/opt/james/james-server-jpa-app.lib/openjpa-4.1.1.jar \ > -Dworking.directory=/opt/james \ > -Djdk.tls.ephemeralDHKeySize=2048 \ > -Dlogback.configurationFile=/opt/james/onf/logback.xml \ > -jar /opt/james/james-server-jpa-app.jar > > > [Install] > WantedBy=multi-user.target > > So I used sysemctl to start the service and then checked the status: > > thehl@syrfedout4:/opt/james$ sudo systemctl status james.service > × james.service - James service > Loaded: loaded (/etc/systemd/system/james.service; disabled; preset: > enabled) > Active: failed (Result: exit-code) since Thu 2025-10-16 14:04:42 UTC; > 24min ago > Duration: 5ms > Process: 2982 ExecStart=/opt/java/bin/java > -javaagent:/opt/james/james-server-jpa-app.lib/openjpa-4.1.1.jar > -Dworking.directory=/opt/james -Djdk.tls.ephemeralDHKeySi> > Main PID: 2982 (code=exited, status=1/FAILURE) > CPU: 4ms > > Oct 16 14:04:42 syrfedout4 systemd[1]: Started james.service - James > service. > Oct 16 14:04:42 syrfedout4 java[2982]: Error opening zip file or JAR > manifest missing : /opt/james/james-server-jpa-app.lib/openjpa-4.1.1.jar > Oct 16 14:04:42 syrfedout4 java[2982]: Error occurred during > initialization of VM > Oct 16 14:04:42 syrfedout4 java[2982]: agent library failed Agent_OnLoad: > instrument > Oct 16 14:04:42 syrfedout4 systemd[1]: james.service: Main process exited, > code=exited, status=1/FAILURE > Oct 16 14:04:42 syrfedout4 systemd[1]: james.service: Failed with result > 'exit-code'. > Thehl@syrfedout4:/opt/james$ > > So since the error pointed to openjpa-4.1.1.jar I had a look. > > thehl@syrfedout4:/opt/james$ ls -l > james-server-jpa-app.lib/openjpa-4.1.1.jar > -rw------- 1 root root 4902846 May 15 16:11 > james-server-jpa-app.lib/openjpa-4.1.1.jar > Thehl@syrfedout4:/opt/james$ > > I then ran unzip -l against that jar file and got a bunch of files but > don't see the manifest. > > 79 2025-03-15 11:45 > META-INF/org.apache.openjpa.revision.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-lib/ > 7074 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-lib/pom.xml > 64 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-lib/pom.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-kernel/ > 7259 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-kernel/pom.xml > 67 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-kernel/pom.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-jdbc/ > 3117 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-jdbc/pom.xml > 65 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-jdbc/pom.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-persistence/ > 2551 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-persistence/pom.xml > 72 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-persistence/pom.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-persistence-jdbc/ > 24048 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-persistence-jdbc/pom.xml > 77 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-persistence-jdbc/pom.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-xmlstore/ > 5979 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-xmlstore/pom.xml > 69 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-xmlstore/pom.properties > 0 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-slice/ > 6563 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-slice/pom.xml > 66 2025-03-15 11:45 > META-INF/maven/org.apache.openjpa/openjpa-slice/pom.properties > 883 2025-03-15 11:45 > META-INF/services/org.apache.openjpa.kernel.exps.ExpressionParser > 55 2025-03-15 11:45 > META-INF/services/jakarta.persistence.spi.PersistenceProvider > 57 2025-03-15 11:45 > META-INF/services/javax.annotation.processing.Processor > 1005 2025-03-15 11:45 > META-INF/services/org.apache.openjpa.lib.conf.ProductDerivation > > Would like counsel on how to proceed? > > > > > > [image: > Neumo-logo-in-purple-lettering-next-to-cartoon-illustration-of-black-dog] > [email protected] > neumo.com > > . . . . > > This email and any attachments are confidential. If you are not the > intended recipient, please notify the sender immediately, delete this > message, and do not disclose, copy, or distribute its contents. Only a > signed agreement may bind the company or its affiliates. This email and its > content do not constitute a company signature. > >
