Re: Problem passing args to tomee.maven.plugin
James Pedersen <[email protected]> Tue, 3 Jun 2025 02:22:17 -0700
| Newsgroups | gmane.comp.java.openejb.user |
|---|---|
| Message-ID | <CADHtKCcZ=KM9DeWjhK72kssHidFxE7U_y37wPOuZOPAKnqgEVQ__25406.3133661234$1748942560$gmane$org@mail.gmail.com> |
--00000000000059dfe80636a76b83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is a hideous abomination of configuration and I would love to try to fix it myself ........ On Tue, Jun 3, 2025 at 2:07=E2=80=AFAM James Pedersen <[email protected]= > wrote: > Roar, actually, can you send me a direct email please ???? My email > address is [email protected] > > > > On Tue, Jun 3, 2025 at 2:06=E2=80=AFAM James Pedersen <[email protected]= om> > wrote: > >> You could also try talking to the swine at Oracle about the warning: >> >> >> "WARNING: A restricted method in java.lang.foreign.Linker has been calle= d >> " >> >> On Tue, Jun 3, 2025 at 2:04=E2=80=AFAM James Pedersen <james00090@gmail.= com> >> wrote: >> >>> Actually, Roar, I would encourage you to talk to the folks at Apache >>> Lucene about this .... >>> >>> >>> On Tue, Jun 3, 2025 at 1:58=E2=80=AFAM James Pedersen <james00090@gmail= .com> >>> wrote: >>> >>>> It seems like the TomEE configuration subsystem isn't good enough....= .. >>>> >>>> On Tue, Jun 3, 2025 at 1:47=E2=80=AFAM James Pedersen <james00090@gmai= l.com> >>>> wrote: >>>> >>>>> Perhaps try to add a name to the module? >>>>> >>>>> On Tue, Jun 3, 2025 at 1:46=E2=80=AFAM James Pedersen <james00090@gma= il.com> >>>>> wrote: >>>>> >>>>>> Why are these warnings a issue for you? >>>>>> >>>>>> On Tue, Jun 3, 2025 at 1:45=E2=80=AFAM James Pedersen <james00090@gm= ail.com> >>>>>> wrote: >>>>>> >>>>>>> I'm curious about this. >>>>>>> >>>>>>> On Tue, Jun 3, 2025 at 1:45=E2=80=AFAM James Pedersen <james00090@g= mail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Did it make the problem go away, though? >>>>>>>> >>>>>>>> On Tue, Jun 3, 2025 at 12:49=E2=80=AFAM Roar Br=C3=A6nden < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I'm using Tomee 10.0.1 with JDK 21. One of my end-points is using >>>>>>>>> Lucene index for some search result. The Lucene jar is version 10= .2.1, >>>>>>>>> which is using the new Vector API. >>>>>>>>> When using this library I notice some warnings in the log: >>>>>>>>> >>>>>>>>> >>>>>>>>> WARNING: A restricted method in java.lang.foreign.Linker has been >>>>>>>>> called >>>>>>>>> WARNING: java.lang.foreign.Linker::downcallHandle has been called >>>>>>>>> by the unnamed module >>>>>>>>> WARNING: Use --enable-native-access=3DALL-UNNAMED to avoid a warn= ing >>>>>>>>> for this module >>>>>>>>> >>>>>>>>> 03-Jun-2025 09:40:17.597 WARNING [http-nio-8091-exec-2] >>>>>>>>> org.apache.lucene.internal.vectorization.VectorizationProvider.lo= okup Java >>>>>>>>> vector incubator module is not readable. For optimal vector perfo= rmance, >>>>>>>>> pass '--add-modules jdk.incubator.vector' to enable Vector API. >>>>>>>>> >>>>>>>>> To avoid these messages, I tried to add args to my >>>>>>>>> tomee-maven-plugin configuration: >>>>>>>>> >>>>>>>>> <args>enable-native-access=3DALL-UNNAMED</args> >>>>>>>>> <args>add-modules=3Djdk.incubator.vector</args> >>>>>>>>> >>>>>>>>> What I noticed is that only the last one will be taken into >>>>>>>>> consideration. Meaning that with these settings I will get the fi= rst >>>>>>>>> WARNING, and a message indicating that the Vector API is found. I= f I switch >>>>>>>>> the args, I will get the last WARNING. >>>>>>>>> Is this a know problem with the plugin configuration? >>>>>>>>> >>>>>>>>> Best regards, >>>>>>>>> Roar Br=C3=A6nden >>>>>>>>> >>>>>>>>> --00000000000059dfe80636a76b83--