Re: TomEE does not launch on Java 24
Richard Zowalla <[email protected]> Sun, 13 Jul 2025 10:44:38 +0200
| Newsgroups | gmane.comp.java.openejb.user |
|---|---|
| Message-ID | <81851EB1-B835-4455-BE03-90CE237CA39D__28384.9193526962$1752396481$gmane$org@zowalla.com> |
------ANZHZVKZUCGMHAK1CN5LAME4TMXB8M Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yep, I think, I already see the issue=2E I will take a look :-) Am 13=2E Juli 2025 10:30:39 MESZ schrieb Wolfgang Knauf <wolfgang=2Eknauf@= gmx=2Ede=2EINVALID>: >I reopened https://issues=2Eapache=2Eorg/jira/browse/TOMEE-4474 and attac= hed a reproducer=2E > >I am not sure whether it is really related to Java 24, but my sample work= s with Java 17 and fails with 24=2E If my conclusion is not correct, I can = create a new one=2E > >Gr=C3=BC=C3=9Fe > >Wolfgang > >Am 12=2E07=2E25 um 20:31 schrieb Richard Zowalla: >> If that still doesn't work, maybe you could put up a simple reproducer = project, which mimics your case and we can have a look=2E >>=20 >> Gru=C3=9F >> Richard >>=20 >> On 2025/07/12 18:23:08 Richard Zowalla wrote: >>> I see=2E You can check out TomEE main, run a mvn clean install with sk= ipped test=2E It only needs a JDK 17=2E >>>=20 >>> That should install everything you need locally, so you can just use i= t as usual=2E >>>=20 >>> Regarding browser download: yeah, might be an ASF INFRA restriction :-= ) >>>=20 >>> Gru=C3=9F >>> Richard >>>=20 >>> Am 12=2E Juli 2025 19:15:27 MESZ schrieb Wolfgang Knauf <wolfgang=2Ekn= auf@gmx=2Ede=2EINVALID>: >>>> Well, this did not work for me (the project where I want to test the = new version uses ShrinkWrap resolver to download the container and I did no= t manage to make it use the snapshot repository), but I found out that I ca= n configure the direct URL to the tomee artifact in the project=2E >>>> But this resulted in the same error=2E >>>>=20 >>>> Or is it related to me not using the arquillian container artifact fr= om "https://repository=2Eapache=2Eorg/content/groups/snapshots/org/apache/t= omee/arquillian-tomee-remote/10=2E1=2E1-SNAPSHOT/"? >>>>=20 >>>> About not being able to download files by browser: firefox console re= ports this error: >>>>=20 >>>> Das Herunterladen von "https://repository=2Eapache=2Eorg/content/grou= ps/snapshots/org/apache/tomee/apache-tomee/10=2E1=2E1-SNAPSHOT/apache-tomee= -10=2E1=2E1-20250712=2E035301-33-webprofile=2Ezip" wurde blockiert, weil f= =C3=BCr den ausl=C3=B6senden iframe das sandbox-Attribut gesetzt ist=2E >>>>=20 >>>> So it seems it is intended to block manual downloads? >>>>=20 >>>> Best regards >>>>=20 >>>> Wolfgang >>>>=20 >>>>=20 >>>> Am 12=2E07=2E25 um 13:53 schrieb Richard Zowalla: >>>>> Hi Wolfgang, >>>>>=20 >>>>> You could try to configure the pluginRepository / repository into yo= ur local Maven POM for testing the snapshots: >>>>>=20 >>>>> <repositories> >>>>> <repository> >>>>> <id>apache</id> >>>>> <url>https://repository=2Eapache=2Eorg/snapshots/</url> >>>>> <releases> >>>>> <enabled>false</enabled> >>>>> </releases> >>>>> <snapshots> >>>>> <enabled>true</enabled> >>>>> </snapshots> >>>>> </repository> >>>>> </repositories> >>>>>=20 >>>>> You can reference the snapshot directly in your build afterwards=2E = Similar can be done for <pluginRepository>=2E >>>>>=20 >>>>> Gru=C3=9F >>>>> Richard >>>>>=20 >>>>>> Am 12=2E07=2E2025 um 11:14 schrieb Wolfgang Knauf <wolfgang=2Eknauf= @gmx=2Ede=2EINVALID>: >>>>>>=20 >>>>>> There might be a problem with snapshot "apache-tomee-10=2E1=2E1-202= 50712=2E035301-33-webprofile=2Ezip" >>>>>>=20 >>>>>> (by the way: I cannot click the download links in a browser, had to= use "wget" to download it=2E Tried two different browsers and two OS) >>>>>>=20 >>>>>>=20 >>>>>> I tested it with an arquillian project, where the tomee container i= s pulled from maven and managed by "org=2Eapache=2Etomee:arquillian-tomee-r= emote", so I had to replace the 10=2E1=2E0 version in my local maven reposi= tory with the snapshot (replaced "C:\Users\MYUSERNAME\=2Em2\repository\org\= apache\tomee\apache-tomee\10=2E1=2E0\apache-tomee-10=2E1=2E0-webprofile=2Ez= ip" with snapshot file and renamed directory "apache-tomee-webprofile-10=2E= 1=2E1-SNAPSHOT" to "apache-tomee-webprofile-10=2E1=2E0" in zip)=2E >>>>>>=20 >>>>>> Attached is the output of a maven run using Java 24=2E At some poin= t, it starts printing thousands of errors: >>>>>>=20 >>>>>> java=2Eutil=2Econcurrent=2EExecutionException: java=2Elang=2EIllega= lArgumentException: can't parse argument number: >>>>>> at java=2Ebase/java=2Eutil=2Econcurrent=2EFutureTask=2Ereport(Futu= reTask=2Ejava:124) >>>>>> at java=2Ebase/java=2Eutil=2Econcurrent=2EFutureTask=2Eget(FutureT= ask=2Ejava:193) >>>>>> at org=2Eapache=2Eopenejb=2Eutil=2EMemoizer=2Ecompute(Memoizer=2Ej= ava:63) >>>>>> at org=2Eapache=2Eopenejb=2Eutil=2ELogger=2EformatMessage(Logger= =2Ejava:398) >>>>>> at org=2Eapache=2Eopenejb=2Eutil=2ELogger=2Ewarning(Logger=2Ejava:= 643) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EAbstractSecurityServ= ice=2EisCallerAuthorized(AbstractSecurityService=2Ejava:398) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esingleton=2ESingletonContainer= =2Einvoke(SingletonContainer=2Ejava:192) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Eivm=2EEjbHomeProxyHandler=2Ecre= ate(EjbHomeProxyHandler=2Ejava:343) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Eivm=2EEjbHomeProxyHandler=2E_in= voke(EjbHomeProxyHandler=2Ejava:196) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Eivm=2EBaseEjbProxyHandler=2Einv= oke(BaseEjbProxyHandler=2Ejava:349) >>>>>> at jdk=2Eproxy3/jdk=2Eproxy3=2E$Proxy30=2Ecreate(Unknown Source) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Eivm=2Enaming=2EBusinessRemoteRe= ference=2EgetObject(BusinessRemoteReference=2Ejava:36) >>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Eivm=2Enaming=2EIvmContext=2Eloo= kup(IvmContext=2Ejava:186) >>>>>> at org=2Eapache=2Eopenejb=2Eserver=2Eejbd=2EJndiRequestHandler=2Ed= oLookup(JndiRequestHandler=2Ejava:261) >>>>>> at org=2Eapache=2Eopenejb=2Eserver=2Eejbd=2EJndiRequestHandler=2Ep= rocessResponse(JndiRequestHandler=2Ejava:174) >>>>>> at org=2Eapache=2Eopenejb=2Eserver=2Eejbd=2EEjbDaemon=2EprocessJnd= iResponse(EjbDaemon=2Ejava:380) >>>>>> at org=2Eapache=2Eopenejb=2Eserver=2Eejbd=2EEjbDaemon=2Eservice(Ej= bDaemon=2Ejava:282) >>>>>> at org=2Eapache=2Eopenejb=2Eserver=2Eejbd=2EEjbServer=2Eservice(Ej= bServer=2Ejava:104) >>>>>> at org=2Eapache=2Eopenejb=2Eserver=2Ehttpd=2EServerServlet=2Eservi= ce(ServerServlet=2Ejava:60) >>>>>> at jakarta=2Eservlet=2Ehttp=2EHttpServlet=2Eservice(HttpServlet=2E= java:658) >>>>>> at org=2Eapache=2Ecatalina=2Ecore=2EApplicationFilterChain=2Einter= nalDoFilter(ApplicationFilterChain=2Ejava:195) >>>>>> at org=2Eapache=2Ecatalina=2Ecore=2EApplicationFilterChain=2EdoFil= ter(ApplicationFilterChain=2Ejava:140) >>>>>> at org=2Eapache=2Ecatalina=2Ecore=2EStandardWrapperValve=2Einvoke(= StandardWrapperValve=2Ejava:167) >>>>>> at org=2Eapache=2Ecatalina=2Ecore=2EStandardContextValve=2Einvoke(= StandardContextValve=2Ejava:90) >>>>>> at org=2Eapache=2Etomee=2Ecatalina=2EOpenEJBValve=2Einvoke(OpenEJB= Valve=2Ejava:45) >>>>>> at org=2Eapache=2Ecatalina=2Ecore=2EStandardHostValve=2Einvoke(Sta= ndardHostValve=2Ejava:116) >>>>>> at org=2Eapache=2Ecatalina=2Evalves=2EErrorReportValve=2Einvoke(Er= rorReportValve=2Ejava:93) >>>>>> at org=2Eapache=2Etomee=2Ecatalina=2EOpenEJBSecurityListener$Reque= stCapturer=2Einvoke(OpenEJBSecurityListener=2Ejava:97) >>>>>> at org=2Eapache=2Ecatalina=2Evalves=2EAbstractAccessLogValve=2Einv= oke(AbstractAccessLogValve=2Ejava:666) >>>>>> at org=2Eapache=2Ecatalina=2Ecore=2EStandardEngineValve=2Einvoke(S= tandardEngineValve=2Ejava:74) >>>>>> at org=2Eapache=2Ecatalina=2Econnector=2ECoyoteAdapter=2Eservice(C= oyoteAdapter=2Ejava:344) >>>>>> at org=2Eapache=2Ecoyote=2Ehttp11=2EHttp11Processor=2Eservice(Http= 11Processor=2Ejava:398) >>>>>> at org=2Eapache=2Ecoyote=2EAbstractProcessorLight=2Eprocess(Abstra= ctProcessorLight=2Ejava:63) >>>>>> at org=2Eapache=2Ecoyote=2EAbstractProtocol$ConnectionHandler=2Epr= ocess(AbstractProtocol=2Ejava:903) >>>>>> at org=2Eapache=2Etomcat=2Eutil=2Enet=2ENioEndpoint$SocketProcesso= r=2EdoRun(NioEndpoint=2Ejava:1769) >>>>>> at org=2Eapache=2Etomcat=2Eutil=2Enet=2ESocketProcessorBase=2Erun(= SocketProcessorBase=2Ejava:52) >>>>>> at org=2Eapache=2Etomcat=2Eutil=2Ethreads=2EThreadPoolExecutor=2Er= unWorker(ThreadPoolExecutor=2Ejava:1189) >>>>>> at org=2Eapache=2Etomcat=2Eutil=2Ethreads=2EThreadPoolExecutor$Wor= ker=2Erun(ThreadPoolExecutor=2Ejava:658) >>>>>> at org=2Eapache=2Etomcat=2Eutil=2Ethreads=2ETaskThread$WrappingRun= nable=2Erun(TaskThread=2Ejava:63) >>>>>> at java=2Ebase/java=2Elang=2EThread=2Erun(Thread=2Ejava:1447) >>>>>> Caused by: java=2Elang=2EIllegalArgumentException: can't parse argu= ment number: >>>>>> at java=2Ebase/java=2Etext=2EMessageFormat=2EsetFormatFromPattern(= MessageFormat=2Ejava:1644) >>>>>> at java=2Ebase/java=2Etext=2EMessageFormat=2EapplyPatternImpl(Mess= ageFormat=2Ejava:660) >>>>>> at java=2Ebase/java=2Etext=2EMessageFormat=2E<init>(MessageFormat= =2Ejava:516) >>>>>> at org=2Eapache=2Eopenejb=2Eutil=2EMemoizer$1=2Ecall(Memoizer=2Eja= va:52) >>>>>> at java=2Ebase/java=2Eutil=2Econcurrent=2EFutureTask=2Erun(FutureT= ask=2Ejava:328) >>>>>> at org=2Eapache=2Eopenejb=2Eutil=2EMemoizer=2Ecompute(Memoizer=2Ej= ava:59) >>>>>> =2E=2E=2E 37 more >>>>>> Caused by: java=2Elang=2ENumberFormatException: For input string: "= " >>>>>> at java=2Ebase/java=2Elang=2ENumberFormatException=2EforInputStrin= g(NumberFormatException=2Ejava:67) >>>>>> at java=2Ebase/java=2Elang=2EInteger=2EparseInt(Integer=2Ejava:541= ) >>>>>> at java=2Ebase/java=2Elang=2EInteger=2EparseInt(Integer=2Ejava:661= ) >>>>>> at java=2Ebase/java=2Etext=2EMessageFormat=2EsetFormatFromPattern(= MessageFormat=2Ejava:1642) >>>>>> =2E=2E=2E 42 more >>>>>>=20 >>>>>> Seems the server is not stopped or it takes too long to print all t= hoses errors, I killed it after a few seconds an 1GB of log file ;-) >>>>>>=20 >>>>>> The project where the issue occured uses arquillian and "org=2Eapac= he=2Etomee:arquillian-tomee-remote"=2E In the failed run, I still used 10= =2E1=2E0 of this plugin, without trying to replace it with a snapshot versi= on=2E Is it maybe caused by this one? >>>>>>=20 >>>>>>=20 >>>>>> Best regards >>>>>>=20 >>>>>> Wolfgang >>>>>>=20 >>>>>> Am 11=2E07=2E25 um 22:14 schrieb Wolfgang Knauf: >>>>>>> Thanks, great work=2E >>>>>>> I will give it a try the next few days and report back if there ar= e further problems=2E >>>>>>> Best regards >>>>>>> Wolfgang >>>>>>> Am 11=2E07=2E25 um 14:15 schrieb Richard Zowalla: >>>>>>>> Hi Wolfgang, >>>>>>>>=20 >>>>>>>> we just pushed some changes, which should allow TomEE to run on J= ava 24 (with some limitations regarding EJB method security, etc=2E) >>>>>>>>=20 >>>>>>>> Nightlies should be available via https://repository=2Eapache=2Eo= rg/ content/groups/snapshots/org/apache/tomee/apache-tomee/10=2E1=2E1- SNAP= SHOT/ soon=2E >>>>>>>>=20 >>>>>>>> Gru=C3=9F >>>>>>>> Richard >>>>>>>>=20 >>>>>>>> On 2025/04/04 08:28:20 Wolfgang Knauf wrote: >>>>>>>>> Hi all, >>>>>>>>>=20 >>>>>>>>> (sorry if this is a duplicate one, I already sent it a few days = ago, but as it did not appear, I think it might be related to the fact that= I did not subscribe to the list) >>>>>>>>>=20 >>>>>>>>> TomEE 10=2E0=2E1 fails to launch with Java 24: >>>>>>>>>=20 >>>>>>>>> 01-Apr-2025 13:10:36=2E888 SCHWERWIEGEND [main] org=2Eapache=2Eo= penejb=2Eutil=2EOpenEJBErrorHandler=2EhandleUnknownError FATAL ERROR: Unkno= wn error in Assembler=2E Please send the following stack trace and this mes= sage to users@tomee=2Eapache=2Eorg : >>>>>>>>> org=2Eapache=2Exbean=2Erecipe=2EConstructionException: Error inv= oking constructor: public org=2Eapache=2Etomee=2Ecatalina=2ETomcatSecurityS= ervice() >>>>>>>>> at org=2Eapache=2Exbean=2Erecipe=2EReflectionUtil$Construct= orFactory=2Ecreate(ReflectionUtil=2Ejava:981) >>>>>>>>> at org=2Eapache=2Exbean=2Erecipe=2EObjectRecipe=2EinternalC= reate(ObjectRecipe=2Ejava:279) >>>>>>>>> at org=2Eapache=2Exbean=2Erecipe=2EAbstractRecipe=2Ecreate(= AbstractRecipe=2Ejava:96) >>>>>>>>> at org=2Eapache=2Exbean=2Erecipe=2EAbstractRecipe=2Ecreate(= AbstractRecipe=2Ejava:61) >>>>>>>>> at org=2Eapache=2Exbean=2Erecipe=2EAbstractRecipe=2Ecreate(= AbstractRecipe=2Ejava:49) >>>>>>>>> at org=2Eapache=2Eopenejb=2Eassembler=2Eclassic=2EAssembler= =2EcreateSecurityService(Assembler=2Ejava:3553) >>>>>>>>> at org=2Eapache=2Eopenejb=2Eassembler=2Eclassic=2EAssembler= =2EbuildContainerSystem(Assembler=2Ejava:579) >>>>>>>>> at org=2Eapache=2Eopenejb=2Eassembler=2Eclassic=2EAssembler= =2Ebuild(Assembler=2Ejava:497) >>>>>>>>> at org=2Eapache=2Eopenejb=2EOpenEJB$Instance=2E<init>(OpenE= JB=2Ejava:150) >>>>>>>>> at org=2Eapache=2Eopenejb=2EOpenEJB=2Einit(OpenEJB=2Ejava:3= 07) >>>>>>>>> at org=2Eapache=2Etomee=2Ecatalina=2ETomcatLoader=2Einitial= ize(TomcatLoader=2Ejava:244) >>>>>>>>> at org=2Eapache=2Etomee=2Ecatalina=2EServerListener=2Elifec= ycleEvent(ServerListener=2Ejava:161) >>>>>>>>> at org=2Eapache=2Ecatalina=2Eutil=2ELifecycleBase=2EfireLif= ecycleEvent(LifecycleBase=2Ejava:109) >>>>>>>>> at org=2Eapache=2Ecatalina=2Eutil=2ELifecycleBase=2EsetStat= eInternal(LifecycleBase=2Ejava:389) >>>>>>>>> at org=2Eapache=2Ecatalina=2Eutil=2ELifecycleBase=2Einit(Li= fecycleBase=2Ejava:123) >>>>>>>>> at org=2Eapache=2Ecatalina=2Estartup=2ECatalina=2Eload(Cata= lina=2Ejava:712) >>>>>>>>> at org=2Eapache=2Ecatalina=2Estartup=2ECatalina=2Eload(Cata= lina=2Ejava:735) >>>>>>>>> at java=2Ebase/ jdk=2Einternal=2Ereflect=2EDirectMethodHand= leAccessor=2Einvoke(DirectMethodHandleAccessor=2Ejava:104) >>>>>>>>> at java=2Ebase/java=2Elang=2Ereflect=2EMethod=2Einvoke(Meth= od=2Ejava:565) >>>>>>>>> at org=2Eapache=2Ecatalina=2Estartup=2EBootstrap=2Eload(Boo= tstrap=2Ejava:302) >>>>>>>>> at org=2Eapache=2Ecatalina=2Estartup=2EBootstrap=2Emain(Boo= tstrap=2Ejava:472) >>>>>>>>> Caused by: java=2Elang=2EIllegalStateException: Could not instal= l JACC Policy Provider: org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EJaccProv= ider$Policy >>>>>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EAbstractSecur= ityService=2EinstallPolicy(AbstractSecurityService=2Ejava:443) >>>>>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EAbstractSecur= ityService=2EinstallJacc(AbstractSecurityService=2Ejava:431) >>>>>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EAbstractSecur= ityService=2E<init>(AbstractSecurityService=2Ejava:94) >>>>>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EAbstractSecur= ityService=2E<init>(AbstractSecurityService=2Ejava:88) >>>>>>>>> at org=2Eapache=2Etomee=2Ecatalina=2ETomcatSecurityService= =2E<init>(TomcatSecurityService=2Ejava:55) >>>>>>>>> at java=2Ebase/ jdk=2Einternal=2Ereflect=2EDirectConstructo= rHandleAccessor=2EnewInstance(DirectConstructorHandleAccessor=2Ejava:62) >>>>>>>>> at java=2Ebase/ java=2Elang=2Ereflect=2EConstructor=2EnewIn= stanceWithCaller(Constructor=2Ejava:499) >>>>>>>>> at java=2Ebase/ java=2Elang=2Ereflect=2EConstructor=2EnewIn= stance(Constructor=2Ejava:483) >>>>>>>>> at org=2Eapache=2Exbean=2Erecipe=2EReflectionUtil$Construct= orFactory=2Ecreate(ReflectionUtil=2Ejava:971) >>>>>>>>> =2E=2E=2E 20 more >>>>>>>>> Caused by: java=2Elang=2EUnsupportedOperationException: Setting = a system- wide Policy object is not supported >>>>>>>>> at java=2Ebase/java=2Esecurity=2EPolicy=2EsetPolicy(Policy= =2Ejava:114) >>>>>>>>> at org=2Eapache=2Eopenejb=2Ecore=2Esecurity=2EAbstractSecur= ityService=2EinstallPolicy(AbstractSecurityService=2Ejava:441) >>>>>>>>> =2E=2E=2E 28 more >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>> Is there something I should do about this (file a JIRA issue), o= r is the Java 24 support already on your roadmap? >>>>>>>>>=20 >>>>>>>>> Best regards >>>>>>>>>=20 >>>>>>>>> Wolfgang >>>>>>>>>=20 >>>>>> <log=2Etxt> >>>>>=20 >>>>=20 >>>=20 > ------ANZHZVKZUCGMHAK1CN5LAME4TMXB8M--