Re: Help needed installing james-server-jpa-guice

Benoit TELLIER <[email protected]> Tue, 19 Aug 2025 14:17:52 +0000
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
---=Part.55c.e1a29de7e45f1a76.198c2b18c0e.57e336d5b14bfe64=-
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT, de-DE
Content-Language: en-US

Hello Marc

Sorry, I am jus back from vacation where I enjoyed the luxury o=
f a bit of deconnection

Regarding your issue, it is due to a mis-alligneme=
nt of the JPA agent=2E

It needs to be 3=2E2=2E0 for 3=2E8=2Ex=C2=A0

CF=C2=
=A0https://github=2Ecom/apache/james-project/blob/8d0e75ff1de1e378c853f9d50=
75d6ffe1ce9446a/server/apps/demo/startup=2Esh#L11
CF=C2=A0https://github=2E=
com/apache/james-project/tree/james-project-3=2E8=2E2/server/apps/jpa-app=
=C2=A0--=C2=A0

Best regards,

Benoit TELLIER

General manager of Linagora =
VIETNAM=2E
Product owner for Team-Mail product=2E
Chairman of the Apache Ja=
mes project=2E

Mail: btellier@linagora=2Ecom
Tel: (0033) 6 77 26 04 58 (Wh=
atsApp, Signal)


On Aug 16, 2025 10:37 PM, from Cryptearth <cryptearth@cry=
ptearth=2Ede=2EINVALID>Hello Marc,

sorry for being late=2E Usually I try t=
o give the least a look at least 
once a day=2E But I had other priorities =
over the past couple of months=2E

Well, given the error the first few issu=
es comming to my head:
- executing from the wrong directory
- permission is=
sue
- mistype error
- wrong java version

The doc says required Java13=2E I=
 run Java17=2E Maybe the Java version you 
use is just too old or too new=
=2E Try a version between Java13 and Java17 
- this should work fine=2E

I =
noticed the directory "/mail" - this sounds like a system directory=2E 
Doe=
s the user you run have the require permisisons? Note: As James uses 
ports=
 below 1024 you either have to start as root or you have to change 
the con=
fig to ports over 1024 and use your firewall to redirect the 
ports (in any=
 case the permissions have to be properly set)=2E


Also: Next time please =
be patient: This is community project with 
everyone giving thier own free =
time=2E If you don't receive a reply in a 
timely manner this usually means=
 that all of those who have read your 
message yet just can't help you (the=
re's no point in spamming the list 
with "yea, read it, but can't help") or=
 that those you can help you just 
hadn't the time to reply=2E

Hope this h=
elps=2E
Otherwise please reply with:
- version of java
- outut of "ls -alFh=
R /mail/apache-james-3=2E8/"

Greetings

Matt

Am 15=2E08=2E25 um 00:17 sch=
rieb Marc Chamberlin:
> Ping!? Does anyone have an answer or a solution to =
this issue? I am 
> kinda stuck and can't move on until I get James install=
ed for a client 
> of mine=2E=2E=2E
>
> Thanks,=C2=A0 Marc=2E=2E=2E
>
>
>
>=
 On 8/9/25 17:33, Marc Chamberlin wrote:
>> Didn't get very far in trying t=
o install and run the jpa-guice 
>> version of the Apache James server! I d=
ownloaded the software from
>>
>> apache=2Eorg/dyn/closer=2Elua/james/serve=
r/3=2E8=2E2/james-server-jpa-guice=2Ezip 
>>
>>
>> I am following the instr=
uctions at 
>> james=2Eapache=2Eorg/server/install/guice-jpa=2Ehtml except =
for the 
>> Maven compilation steps=2E
>>
>> When I tried to execute and ru=
n james, following the instructions 
>> exactly, it fails -
>>
>>> quasar:/=
mail/apache-james-3=2E8/james-server-jpa-guice #java 
>>> -javaagent:james-=
server-jpa-guice=2Elib/openjpa-4=2E1=2E1=2Ejar \
>>> > =C2=A0=C2=A0=C2=A0=
=C2=A0-Dlogback=2EconfigurationFile=3Dconf/logback=2Exml \
>>> > =C2=A0=C2=
=A0=C2=A0=C2=A0-Djdk=2Etls=2EephemeralDHKeySize=3D2048 \
>>> > =C2=A0=C2=A0=
=C2=A0=C2=A0-Dworking=2Edirectory=3D=2E \
>>> > =C2=A0=C2=A0=C2=A0=C2=A0-ja=
r james-server-jpa-app=2Ejar
>>> Error opening zip file or JAR manifest mis=
sing : 
>>> james-server-jpa-guice=2Elib/openjpa-4=2E1=2E1=2Ejar
>>> Error =
occurred during initialization of VM
>>> agent library failed to init: inst=
rument
>>>
>> I then noted that the version of openjpa, supplied in the dow=
loaded 
>> zip file, was openjpa-3=2E2=2Ejar
>>
>>> quasar:/mail/apache-jam=
es-3=2E8/james-server-jpa-guice #ll 
>>> james-server-jpa-app=2Elib/openjpa=
*
>>> -rw------- 1 james mail 4790420 May 10 =C2=A02021 
>>> james-server-j=
pa-app=2Elib/openjpa-3=2E2=2E0=2Ejar
>>>
>> so on a hunch I tried running j=
ames with that version -
>>
>>> quasar:/mail/apache-james-3=2E8/james-serve=
r-jpa-guice #java 
>>> -javaagent:james-server-jpa-guice=2Elib/openjpa-3=2E=
2=2E0=2Ejar \
>>> > =C2=A0=C2=A0=C2=A0=C2=A0-Dlogback=2EconfigurationFile=
=3Dconf/logback=2Exml \
>>> > =C2=A0=C2=A0=C2=A0=C2=A0-Djdk=2Etls=2Eephemer=
alDHKeySize=3D2048 \
>>> > =C2=A0=C2=A0=C2=A0=C2=A0-Dworking=2Edirectory=3D=
=2E \
>>> > =C2=A0=C2=A0=C2=A0=C2=A0-jar james-server-jpa-app=2Ejar
>>> Err=
or opening zip file or JAR manifest missing : 
>>> james-server-jpa-guice=
=2Elib/openjpa-3=2E2=2E0=2Ejar
>>> 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?=C2=A0 =C2=A0Marc=
=2E=2E=2E
>>
>


----------------------------------------------------------=
-----------
To unsubscribe, e-mail: server-user-unsubscribe@james=2Eapache=
=2Eorg
For additional commands, e-mail: server-user-help@james=2Eapache=2Eo=
rg



---=Part.55c.e1a29de7e45f1a76.198c2b18c0e.57e336d5b14bfe64=---