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

Benoit TELLIER <[email protected]> Wed, 20 Aug 2025 11:57:56 +0000
Newsgroups gmane.comp.jakarta.james.user
Message-ID <[email protected]>
---=Part.5b5.c48beba2c6097c41.198c757cc59.e33cc53939c8b732=-
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

(contribution welcomed!)

--=C2=A0

Best regards,

Benoit TELLIER

General =
manager of Linagora VIETNAM=2E
Product owner for Team-Mail product=2E
Chair=
man of the Apache James project=2E

Mail: btellier@linagora=2Ecom
Tel: (003=
3) 6 77 26 04 58 (WhatsApp, Signal)


On Aug 20, 2025 10:30 AM, from A=2E R=
othman <amichai2@amichais=2Enet>If you're running it from a shell script, y=
ou can use a glob pattern or 
find command to first get the jar name into a=
 variable and then use that 
in the command arguments, that way it will wor=
k with whatever version is 
provided, so a bit less brittle=2E

On 8/19/25 =
17:17, Benoit TELLIER wrote:
> Hello Marc
>
> Sorry, I am jus back from vac=
ation where I enjoyed the luxury of a bit of deconnection
>
> Regarding you=
r issue, it is due to a mis-allignement of the JPA agent=2E
>
> It needs to=
 be 3=2E2=2E0 for 3=2E8=2Ex
>
> CF=C2=A0github=2Ecom/apache/james-project/b=
lob/8d0e75ff1de1e378c853f9d5075d6ffe1ce9446a/server/apps/demo/startup=2Esh#=
L11
> CF=C2=A0github=2Ecom/apache/james-project/tree/james-project-3=2E8=2E=
2/server/apps/jpa-app=C2=A0--
>
> Best regards,
>
> Benoit TELLIER
>
> Gene=
ral manager of Linagora VIETNAM=2E
> Product owner for Team-Mail product=2E=

> Chairman of the Apache James project=2E
>
> Mail: btellier@linagora=2Eco=
m
> Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)
>
>
> On Aug 16, 2025 10:3=
7 PM, from Cryptearth <cryptearth@cryptearth=2Ede=2EINVALID>Hello Marc,
>
>=
 sorry for being late=2E Usually I try to 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 issues comming to my head:
> - exec=
uting from the wrong directory
> - permission issue
> - mistype error
> - w=
rong 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 bet=
ween Java13 and Java17
> - this should work fine=2E
>
> I noticed the direc=
tory "/mail" - this sounds like a system directory=2E
> Does the user you r=
un have the require permisisons? Note: As James uses
> ports below 1024 you=
 either have to start as root or you have to change
> the config to ports o=
ver 1024 and use your firewall to redirect the
> ports (in any case the per=
missions have to be properly set)=2E
>
>
> Also: Next time please be patien=
t: 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 a=
ll of those who have read your
> message yet just can't help you (there's n=
o 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 he=
lps=2E
> Otherwise please reply with:
> - version of java
> - outut of "ls =
-alFhR /mail/apache-james-3=2E8/"
>
> Greetings
>
> Matt
>
> Am 15=2E08=2E2=
5 um 00:17 schrieb 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 ge=
t James installed 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 ge=
t very far in trying to install and run the jpa-guice
>>> version of the Ap=
ache James server! I downloaded the software from
>>>
>>> apache=2Eorg/dyn/=
closer=2Elua/james/server/3=2E8=2E2/james-server-jpa-guice=2Ezip
>>>
>>>
>>=
> I am following the instructions at
>>> james=2Eapache=2Eorg/server/instal=
l/guice-jpa=2Ehtml except for the
>>> Maven compilation steps=2E
>>>
>>> Wh=
en I tried to execute and run james, following the instructions
>>> exactly=
, it fails -
>>>
>>>> quasar:/mail/apache-james-3=2E8/james-server-jpa-guic=
e #java
>>>> -javaagent:james-server-jpa-guice=2Elib/openjpa-4=2E1=2E1=2Eja=
r \
>>>>>  =C2=A0=C2=A0=C2=A0=C2=A0-Dlogback=2EconfigurationFile=3Dconf/log=
back=2Exml \
>>>>>  =C2=A0=C2=A0=C2=A0=C2=A0-Djdk=2Etls=2EephemeralDHKeySiz=
e=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
>>>> Error open=
ing zip file or JAR manifest missing :
>>>> james-server-jpa-guice=2Elib/op=
enjpa-4=2E1=2E1=2Ejar
>>>> Error occurred during initialization of VM
>>>> =
agent library failed to init: instrument
>>>>
>>> I then noted that the ver=
sion of openjpa, supplied in the dowloaded
>>> zip file, was openjpa-3=2E2=
=2Ejar
>>>
>>>> quasar:/mail/apache-james-3=2E8/james-server-jpa-guice #ll
=
>>>> james-server-jpa-app=2Elib/openjpa*
>>>> -rw------- 1 james mail 47904=
20 May 10 =C2=A02021
>>>> james-server-jpa-app=2Elib/openjpa-3=2E2=2E0=2Eja=
r
>>>>
>>> so on a hunch I tried running james with that version -
>>>
>>>>=
 quasar:/mail/apache-james-3=2E8/james-server-jpa-guice #java
>>>> -javaage=
nt:james-server-jpa-guice=2Elib/openjpa-3=2E2=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=2EephemeralDHKeySize=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
>>>> Error 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 f=
ailed 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 unsu=
bscribe, e-mail: server-user-unsubscribe@james=2Eapache=2Eorg
> For additio=
nal commands, e-mail: server-user-help@james=2Eapache=2Eorg
>
>
>

--------=
-------------------------------------------------------------
To unsubscrib=
e, e-mail: server-user-unsubscribe@james=2Eapache=2Eorg
For additional comm=
ands, e-mail: server-user-help@james=2Eapache=2Eorg



---=Part.5b5.c48beba2c6097c41.198c757cc59.e33cc53939c8b732=---