Re: Switching from Unsafe to ClassLoaderProxyService

2021-10-05 Thread Romain Manni-Bucau
It is the only identified/expected one at least, did you spot another one?

Romain Manni-Bucau
@rmannibucau  |  Blog
 | Old Blog
 | Github  |
LinkedIn  | Book



Le mar. 5 oct. 2021 à 22:07, Jean-Louis MONTEIRO  a
écrit :

> I'm not sure it's only package scope methods ...
>
> Le mar. 5 oct. 2021 à 21:59, Romain Manni-Bucau  a
> écrit :
>
> > Well it is a config in owb.properties but as mentionned it will not
> support
> > package scope methods proxying by design (but it is in the spec).
> >
> > For this, add-opens are required (or a fake module-info workaround).
> >
> > Le mar. 5 oct. 2021 à 21:48, Jean-Louis MONTEIRO  a
> > écrit :
> >
> > > Here is what I have done 
> > >
> > > Switch from Unsafe to ClassLoaderProxyService in the
> > AbstractProxyFactory.
> > > Then, command line and run `mvn clean install`
> > >
> > > It fails under JDK 8 and under JDK17
> > >
> > > Le mar. 5 oct. 2021 à 20:40, Romain Manni-Bucau  >
> > a
> > > écrit :
> > >
> > > > Hi,
> > > >
> > > > Not sure what you mean but we should build on jdk 8 and run on 8-18.
> > > >
> > > > Le mar. 5 oct. 2021 à 20:29, Jean-Louis Monteiro <
> > > jlmonte...@tomitribe.com
> > > > >
> > > > a écrit :
> > > >
> > > > > Hi,
> > > > >
> > > > > While investigating some OWB issues, I tried moving default Unsafe
> to
> > > > > ClassLoaderProxyService, but it looks like I can't build OWB
> anymore,
> > > on
> > > > > JDK8 or even JDK17.
> > > > >
> > > > > Isn't it supposed to be working out of the box?
> > > > >
> > > > >
> > > > > --
> > > > > Jean-Louis Monteiro
> > > > > http://twitter.com/jlouismonteiro
> > > > > http://www.tomitribe.com
> > > > >
> > > >
> > >
> > >
> > > --
> > > Jean-Louis
> > >
> >
>
>
> --
> Jean-Louis
>


Re: Release?

2021-10-05 Thread Thomas Andraschko
AFAIK we didnt start the process yet, so we can wait for your fix

Am Di., 5. Okt. 2021 um 22:27 Uhr schrieb Jean-Louis MONTEIRO <
jeano...@gmail.com>:

> I have an issue with OWB in TomEE under JDK 17
> I think I can workaround it, but I'd need a small change in OWB.
>
> Can we reroll it after my fix?
>
> Le lun. 4 oct. 2021 à 09:29, Jean-Baptiste Onofré  a
> écrit :
>
> > +1
> >
> > Regards
> > JB
> >
> > On 03/10/2021 20:56, Romain Manni-Bucau wrote:
> > > Hi all,
> > >
> > > We fixed a few issues:
> > >
> > > PTKeySummaryAssigneeStatus
> > > [image: Major] [image: Bug] OWB-1298
> > >  WebsocketUserManager
> > > ambigious resolution Jakarta Faces
> > >  Unassigned RESOLVED
> > > [image: Major] [image: Bug] OWB-1387
> > > 
> > > @Destroyed(ApplicationScoped.class)
> > > not thrown when @Destroyed(RequestScoped.class) exists
> > >  Arne Limburg
> > > 
> > CLOSED
> > > [image: Major] [image: Improvement] OWB-1389
> > >  Remove destroyed
> > instance
> > > from memory  Mark
> > Struberg
> > > 
> > > RESOLVED
> > > [image: Major] [image: Task] OWB-1390
> > >  support
> > > javax.enterprise.inject.scan.implicit property
> > >  Romain Manni-Bucau
> > > <
> >
> https://issues.apache.org/jira/secure/ViewProfile.jspa?name=romain.manni-bucau
> > >
> > > RESOLVED
> > > [image: Major] [image: Task] OWB-1391
> > > 
> > AbstractMetaDataDiscovery
> > > ignores classpath entries starting with a common path
> > >  Romain Manni-Bucau
> > > <
> >
> https://issues.apache.org/jira/secure/ViewProfile.jspa?name=romain.manni-bucau
> > >
> > > RESOLVED
> > >
> > > I know Thomas can await a few of them so wonder if we should trigger a
> > > release next week (starting on the 4th) or in the following days.
> > >
> > > I'd just like to highlight the 1391 changes the way we ignore
> duplicated
> > > jars/folders in in the classpath so can be worth some testing.
> > >
> > > No issue to delay from some days the release if it helps.
> > >
> > > Side note for our beloved tomee siblings: this shouldn't impact you
> since
> > > you don't reuse that scanning/lifecycle logic so should be a "noop
> > release"
> > > for you.
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau  |  Blog
> > >  | Old Blog
> > >  | Github <
> > https://github.com/rmannibucau> |
> > > LinkedIn  | Book
> > > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> > >
> >
>
>
> --
> Jean-Louis
>


Re: Release?

2021-10-05 Thread Jean-Louis MONTEIRO
I have an issue with OWB in TomEE under JDK 17
I think I can workaround it, but I'd need a small change in OWB.

Can we reroll it after my fix?

Le lun. 4 oct. 2021 à 09:29, Jean-Baptiste Onofré  a
écrit :

> +1
>
> Regards
> JB
>
> On 03/10/2021 20:56, Romain Manni-Bucau wrote:
> > Hi all,
> >
> > We fixed a few issues:
> >
> > PTKeySummaryAssigneeStatus
> > [image: Major] [image: Bug] OWB-1298
> >  WebsocketUserManager
> > ambigious resolution Jakarta Faces
> >  Unassigned RESOLVED
> > [image: Major] [image: Bug] OWB-1387
> > 
> > @Destroyed(ApplicationScoped.class)
> > not thrown when @Destroyed(RequestScoped.class) exists
> >  Arne Limburg
> > 
> CLOSED
> > [image: Major] [image: Improvement] OWB-1389
> >  Remove destroyed
> instance
> > from memory  Mark
> Struberg
> > 
> > RESOLVED
> > [image: Major] [image: Task] OWB-1390
> >  support
> > javax.enterprise.inject.scan.implicit property
> >  Romain Manni-Bucau
> > <
> https://issues.apache.org/jira/secure/ViewProfile.jspa?name=romain.manni-bucau
> >
> > RESOLVED
> > [image: Major] [image: Task] OWB-1391
> > 
> AbstractMetaDataDiscovery
> > ignores classpath entries starting with a common path
> >  Romain Manni-Bucau
> > <
> https://issues.apache.org/jira/secure/ViewProfile.jspa?name=romain.manni-bucau
> >
> > RESOLVED
> >
> > I know Thomas can await a few of them so wonder if we should trigger a
> > release next week (starting on the 4th) or in the following days.
> >
> > I'd just like to highlight the 1391 changes the way we ignore duplicated
> > jars/folders in in the classpath so can be worth some testing.
> >
> > No issue to delay from some days the release if it helps.
> >
> > Side note for our beloved tomee siblings: this shouldn't impact you since
> > you don't reuse that scanning/lifecycle logic so should be a "noop
> release"
> > for you.
> >
> > Romain Manni-Bucau
> > @rmannibucau  |  Blog
> >  | Old Blog
> >  | Github <
> https://github.com/rmannibucau> |
> > LinkedIn  | Book
> > <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
> >
>


-- 
Jean-Louis


Re: Switching from Unsafe to ClassLoaderProxyService

2021-10-05 Thread Jean-Louis MONTEIRO
I'm not sure it's only package scope methods ...

Le mar. 5 oct. 2021 à 21:59, Romain Manni-Bucau  a
écrit :

> Well it is a config in owb.properties but as mentionned it will not support
> package scope methods proxying by design (but it is in the spec).
>
> For this, add-opens are required (or a fake module-info workaround).
>
> Le mar. 5 oct. 2021 à 21:48, Jean-Louis MONTEIRO  a
> écrit :
>
> > Here is what I have done 
> >
> > Switch from Unsafe to ClassLoaderProxyService in the
> AbstractProxyFactory.
> > Then, command line and run `mvn clean install`
> >
> > It fails under JDK 8 and under JDK17
> >
> > Le mar. 5 oct. 2021 à 20:40, Romain Manni-Bucau 
> a
> > écrit :
> >
> > > Hi,
> > >
> > > Not sure what you mean but we should build on jdk 8 and run on 8-18.
> > >
> > > Le mar. 5 oct. 2021 à 20:29, Jean-Louis Monteiro <
> > jlmonte...@tomitribe.com
> > > >
> > > a écrit :
> > >
> > > > Hi,
> > > >
> > > > While investigating some OWB issues, I tried moving default Unsafe to
> > > > ClassLoaderProxyService, but it looks like I can't build OWB anymore,
> > on
> > > > JDK8 or even JDK17.
> > > >
> > > > Isn't it supposed to be working out of the box?
> > > >
> > > >
> > > > --
> > > > Jean-Louis Monteiro
> > > > http://twitter.com/jlouismonteiro
> > > > http://www.tomitribe.com
> > > >
> > >
> >
> >
> > --
> > Jean-Louis
> >
>


-- 
Jean-Louis


Re: Switching from Unsafe to ClassLoaderProxyService

2021-10-05 Thread Romain Manni-Bucau
Well it is a config in owb.properties but as mentionned it will not support
package scope methods proxying by design (but it is in the spec).

For this, add-opens are required (or a fake module-info workaround).

Le mar. 5 oct. 2021 à 21:48, Jean-Louis MONTEIRO  a
écrit :

> Here is what I have done 
>
> Switch from Unsafe to ClassLoaderProxyService in the AbstractProxyFactory.
> Then, command line and run `mvn clean install`
>
> It fails under JDK 8 and under JDK17
>
> Le mar. 5 oct. 2021 à 20:40, Romain Manni-Bucau  a
> écrit :
>
> > Hi,
> >
> > Not sure what you mean but we should build on jdk 8 and run on 8-18.
> >
> > Le mar. 5 oct. 2021 à 20:29, Jean-Louis Monteiro <
> jlmonte...@tomitribe.com
> > >
> > a écrit :
> >
> > > Hi,
> > >
> > > While investigating some OWB issues, I tried moving default Unsafe to
> > > ClassLoaderProxyService, but it looks like I can't build OWB anymore,
> on
> > > JDK8 or even JDK17.
> > >
> > > Isn't it supposed to be working out of the box?
> > >
> > >
> > > --
> > > Jean-Louis Monteiro
> > > http://twitter.com/jlouismonteiro
> > > http://www.tomitribe.com
> > >
> >
>
>
> --
> Jean-Louis
>


Re: Switching from Unsafe to ClassLoaderProxyService

2021-10-05 Thread Jean-Louis MONTEIRO
Here is what I have done 

Switch from Unsafe to ClassLoaderProxyService in the AbstractProxyFactory.
Then, command line and run `mvn clean install`

It fails under JDK 8 and under JDK17

Le mar. 5 oct. 2021 à 20:40, Romain Manni-Bucau  a
écrit :

> Hi,
>
> Not sure what you mean but we should build on jdk 8 and run on 8-18.
>
> Le mar. 5 oct. 2021 à 20:29, Jean-Louis Monteiro  >
> a écrit :
>
> > Hi,
> >
> > While investigating some OWB issues, I tried moving default Unsafe to
> > ClassLoaderProxyService, but it looks like I can't build OWB anymore, on
> > JDK8 or even JDK17.
> >
> > Isn't it supposed to be working out of the box?
> >
> >
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
>


-- 
Jean-Louis


Re: Switching from Unsafe to ClassLoaderProxyService

2021-10-05 Thread Romain Manni-Bucau
Hi,

Not sure what you mean but we should build on jdk 8 and run on 8-18.

Le mar. 5 oct. 2021 à 20:29, Jean-Louis Monteiro 
a écrit :

> Hi,
>
> While investigating some OWB issues, I tried moving default Unsafe to
> ClassLoaderProxyService, but it looks like I can't build OWB anymore, on
> JDK8 or even JDK17.
>
> Isn't it supposed to be working out of the box?
>
>
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>


Switching from Unsafe to ClassLoaderProxyService

2021-10-05 Thread Jean-Louis Monteiro
Hi,

While investigating some OWB issues, I tried moving default Unsafe to
ClassLoaderProxyService, but it looks like I can't build OWB anymore, on
JDK8 or even JDK17.

Isn't it supposed to be working out of the box?


--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


Re: OWB under JDK 17

2021-10-05 Thread Jean-Louis MONTEIRO
TomEE environment if we upgrade OWB from 2.0.22 to 2.0.23

Le lun. 4 oct. 2021 à 16:37, Thomas Andraschko 
a écrit :

> What environment?
> FacesDataModelExtension.afterDeploymentValidation is called in
> AfterDeploymentValidation, which is AFTER AfterBeanDiscovery
>
> maybe romain can help
> no idea about java17 :D
>
> Am Mo., 4. Okt. 2021 um 16:24 Uhr schrieb Jean-Louis Monteiro <
> jlmonte...@tomitribe.com>:
>
> > Hi all,
> >
> > Does anyone already tried running OWB under JDK 17?
> >
> > 2.0.22 seems to produce the following
> >
> > !doctype html>HTTP Status 500 ? Internal
> > Server Errorbody
> > {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b
> > {color:white;background-color:#525D76;} h1 {font-size:22px;} h2
> > {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a
> > {color:black;} .line
> >
> >
> {height:1px;background-color:#525D76;border:none;}HTTP
> > Status 500 ? Internal Server Error > />Type Exception ReportMessage Can't
> > define proxy
> >
> com.sun.ts.tests.securityapi.idstore.idstorepermission.CustomIdentityStoreHandler$$OwbNormalScopeProxy0Description
> > The server encountered an unexpected condition that prevented it from
> > fulfilling the
> >
> request.Exceptionorg.apache.webbeans.exception.ProxyGenerationException:
> > Can't define proxy
> >
> >
> com.sun.ts.tests.securityapi.idstore.idstorepermission.CustomIdentityStoreHandler$$OwbNormalScopeProxy0
> > On Java 16 you can set --add-exports
> > java.base/jdk.internal.misc=ALL-UNNAMED on the JVM
> >
> > org.apache.webbeans.proxy.Unsafe.onProxyGenerationError(Unsafe.java:295)
> >
> > org.apache.webbeans.proxy.Unsafe.defineAndLoadClass(Unsafe.java:281)
> >
> >
> org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:336)
> >
> >
> org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:306)
> >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyClass(NormalScopeProxyFactory.java:264)
> >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyClass(NormalScopeProxyFactory.java:192)
> >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createNormalScopeProxy(NormalScopeProxyFactory.java:149)
> >
> >
> org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:791)
> >
> >
> org.apache.webbeans.inject.instance.InstanceImpl.create(InstanceImpl.java:297)
> >
> >
> org.apache.webbeans.inject.instance.InstanceImpl.get(InstanceImpl.java:129)
> >
> >
> > Wanted to try 2.0.23 but it fails with MyFaces
> >
> > Caused by: java.lang.IllegalStateException: It's not allowed to call
> > getBeans(Type, Annotation...) before AfterBeanDiscovery
> > at
> >
> org.apache.webbeans.container.InjectableBeanManager.checkAfterBeanDiscoveryProcessed(InjectableBeanManager.java:423)
> > at
> >
> org.apache.webbeans.container.InjectableBeanManager.getBeans(InjectableBeanManager.java:129)
> > at org.apache.myfaces.cdi.util.CDIUtils.lookup(CDIUtils.java:51)
> > at
> >
> org.apache.myfaces.cdi.model.FacesDataModelExtension.afterDeploymentValidation(FacesDataModelExtension.java:82)
> >
> >
> > Any ideas?
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
>


-- 
Jean-Louis


[jira] [Resolved] (MEECROWAVE-302) Upgrade to cxf 3.4.5

2021-10-05 Thread Romain Manni-Bucau (Jira)


 [ 
https://issues.apache.org/jira/browse/MEECROWAVE-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Manni-Bucau resolved MEECROWAVE-302.
---
Resolution: Fixed

> Upgrade to cxf 3.4.5
> 
>
> Key: MEECROWAVE-302
> URL: https://issues.apache.org/jira/browse/MEECROWAVE-302
> Project: Meecrowave
>  Issue Type: Task
>Reporter: Romain Manni-Bucau
>Assignee: Romain Manni-Bucau
>Priority: Major
> Fix For: 1.2.13
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (MEECROWAVE-302) Upgrade to cxf 3.4.5

2021-10-05 Thread Romain Manni-Bucau (Jira)
Romain Manni-Bucau created MEECROWAVE-302:
-

 Summary: Upgrade to cxf 3.4.5
 Key: MEECROWAVE-302
 URL: https://issues.apache.org/jira/browse/MEECROWAVE-302
 Project: Meecrowave
  Issue Type: Task
Reporter: Romain Manni-Bucau
Assignee: Romain Manni-Bucau
 Fix For: 1.2.13






--
This message was sent by Atlassian Jira
(v8.3.4#803005)


Re: OWB under JDK 17

2021-10-05 Thread Romain Manni-Bucau
Default proxy service of OWB uses unsafe but it is not that compatible with
last versions of java (by design I mean) so switching to
ClassLoaderProxyService makes it compatible but drops the package scope
proxying capabilities.

Romain Manni-Bucau
@rmannibucau  |  Blog
 | Old Blog
 | Github  |
LinkedIn  | Book



Le mar. 5 oct. 2021 à 09:54, Jean-Louis MONTEIRO  a
écrit :

> I'm not too sure what you want to say or what you mean.
> Can you elaborate or rephrase please?
>
> I haven't done anything but use OWB so not sure what you mean by not using
> Unsafe.
>
> Le lun. 4 oct. 2021 à 17:11, Romain Manni-Bucau  a
> écrit :
>
> > Hi,
> >
> > Yes, I run 40 containers under java 17 since some weeks but since java
> 11 i
> > always disable unsafe usage to use classloader proxy service.
> > It has limitations but is the proper java compliant way to run with jpms
> > on.
> > Alternative is to tune the JVM.
> >
> > Romain Manni-Bucau
> > @rmannibucau  |  Blog
> >  | Old Blog
> >  | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn  | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le lun. 4 oct. 2021 à 16:37, Thomas Andraschko <
> > andraschko.tho...@gmail.com>
> > a écrit :
> >
> > > What environment?
> > > FacesDataModelExtension.afterDeploymentValidation is called in
> > > AfterDeploymentValidation, which is AFTER AfterBeanDiscovery
> > >
> > > maybe romain can help
> > > no idea about java17 :D
> > >
> > > Am Mo., 4. Okt. 2021 um 16:24 Uhr schrieb Jean-Louis Monteiro <
> > > jlmonte...@tomitribe.com>:
> > >
> > > > Hi all,
> > > >
> > > > Does anyone already tried running OWB under JDK 17?
> > > >
> > > > 2.0.22 seems to produce the following
> > > >
> > > > !doctype html>HTTP Status 500 ? Internal
> > > > Server Errorbody
> > > > {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b
> > > > {color:white;background-color:#525D76;} h1 {font-size:22px;} h2
> > > > {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a
> > > > {color:black;} .line
> > > >
> > > >
> > >
> >
> {height:1px;background-color:#525D76;border:none;}HTTP
> > > > Status 500 ? Internal Server Error > > > />Type Exception ReportMessage Can't
> > > > define proxy
> > > >
> > >
> >
> com.sun.ts.tests.securityapi.idstore.idstorepermission.CustomIdentityStoreHandler$$OwbNormalScopeProxy0Description
> > > > The server encountered an unexpected condition that prevented it from
> > > > fulfilling the
> > > >
> > >
> >
> request.Exceptionorg.apache.webbeans.exception.ProxyGenerationException:
> > > > Can't define proxy
> > > >
> > > >
> > >
> >
> com.sun.ts.tests.securityapi.idstore.idstorepermission.CustomIdentityStoreHandler$$OwbNormalScopeProxy0
> > > > On Java 16 you can set --add-exports
> > > > java.base/jdk.internal.misc=ALL-UNNAMED on the JVM
> > > >
> > > >
> > org.apache.webbeans.proxy.Unsafe.onProxyGenerationError(Unsafe.java:295)
> > > >
> > > > org.apache.webbeans.proxy.Unsafe.defineAndLoadClass(Unsafe.java:281)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:336)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:306)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyClass(NormalScopeProxyFactory.java:264)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyClass(NormalScopeProxyFactory.java:192)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createNormalScopeProxy(NormalScopeProxyFactory.java:149)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:791)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.inject.instance.InstanceImpl.create(InstanceImpl.java:297)
> > > >
> > > >
> > >
> >
> org.apache.webbeans.inject.instance.InstanceImpl.get(InstanceImpl.java:129)
> > > >
> > > >
> > > > Wanted to try 2.0.23 but it fails with MyFaces
> > > >
> > > > Caused by: java.lang.IllegalStateException: It's not allowed to call
> > > > getBeans(Type, Annotation...) before AfterBeanDiscovery
> > > > at
> > > >
> > >
> >
> org.apache.webbeans.container.InjectableBeanManager.checkAfterBeanDiscoveryProcessed(InjectableBeanManager.java:423)
> > > > at
> > > >
> > >
> >
> org.apache.webbeans.container.InjectableBeanManager.getBeans(InjectableBeanManager.java:129)
> > > > at
> > org.apache.myfaces.cdi.util.CDIUtils.lookup(CDIUtils.java:51)
> > > > at
> > > >
> > >
> >

Re: OWB under JDK 17

2021-10-05 Thread Jean-Louis MONTEIRO
I'm not too sure what you want to say or what you mean.
Can you elaborate or rephrase please?

I haven't done anything but use OWB so not sure what you mean by not using
Unsafe.

Le lun. 4 oct. 2021 à 17:11, Romain Manni-Bucau  a
écrit :

> Hi,
>
> Yes, I run 40 containers under java 17 since some weeks but since java 11 i
> always disable unsafe usage to use classloader proxy service.
> It has limitations but is the proper java compliant way to run with jpms
> on.
> Alternative is to tune the JVM.
>
> Romain Manni-Bucau
> @rmannibucau  |  Blog
>  | Old Blog
>  | Github <
> https://github.com/rmannibucau> |
> LinkedIn  | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le lun. 4 oct. 2021 à 16:37, Thomas Andraschko <
> andraschko.tho...@gmail.com>
> a écrit :
>
> > What environment?
> > FacesDataModelExtension.afterDeploymentValidation is called in
> > AfterDeploymentValidation, which is AFTER AfterBeanDiscovery
> >
> > maybe romain can help
> > no idea about java17 :D
> >
> > Am Mo., 4. Okt. 2021 um 16:24 Uhr schrieb Jean-Louis Monteiro <
> > jlmonte...@tomitribe.com>:
> >
> > > Hi all,
> > >
> > > Does anyone already tried running OWB under JDK 17?
> > >
> > > 2.0.22 seems to produce the following
> > >
> > > !doctype html>HTTP Status 500 ? Internal
> > > Server Errorbody
> > > {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b
> > > {color:white;background-color:#525D76;} h1 {font-size:22px;} h2
> > > {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a
> > > {color:black;} .line
> > >
> > >
> >
> {height:1px;background-color:#525D76;border:none;}HTTP
> > > Status 500 ? Internal Server Error > > />Type Exception ReportMessage Can't
> > > define proxy
> > >
> >
> com.sun.ts.tests.securityapi.idstore.idstorepermission.CustomIdentityStoreHandler$$OwbNormalScopeProxy0Description
> > > The server encountered an unexpected condition that prevented it from
> > > fulfilling the
> > >
> >
> request.Exceptionorg.apache.webbeans.exception.ProxyGenerationException:
> > > Can't define proxy
> > >
> > >
> >
> com.sun.ts.tests.securityapi.idstore.idstorepermission.CustomIdentityStoreHandler$$OwbNormalScopeProxy0
> > > On Java 16 you can set --add-exports
> > > java.base/jdk.internal.misc=ALL-UNNAMED on the JVM
> > >
> > >
> org.apache.webbeans.proxy.Unsafe.onProxyGenerationError(Unsafe.java:295)
> > >
> > > org.apache.webbeans.proxy.Unsafe.defineAndLoadClass(Unsafe.java:281)
> > >
> > >
> >
> org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:336)
> > >
> > >
> >
> org.apache.webbeans.proxy.AbstractProxyFactory.createProxyClass(AbstractProxyFactory.java:306)
> > >
> > >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyClass(NormalScopeProxyFactory.java:264)
> > >
> > >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createProxyClass(NormalScopeProxyFactory.java:192)
> > >
> > >
> >
> org.apache.webbeans.proxy.NormalScopeProxyFactory.createNormalScopeProxy(NormalScopeProxyFactory.java:149)
> > >
> > >
> >
> org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:791)
> > >
> > >
> >
> org.apache.webbeans.inject.instance.InstanceImpl.create(InstanceImpl.java:297)
> > >
> > >
> >
> org.apache.webbeans.inject.instance.InstanceImpl.get(InstanceImpl.java:129)
> > >
> > >
> > > Wanted to try 2.0.23 but it fails with MyFaces
> > >
> > > Caused by: java.lang.IllegalStateException: It's not allowed to call
> > > getBeans(Type, Annotation...) before AfterBeanDiscovery
> > > at
> > >
> >
> org.apache.webbeans.container.InjectableBeanManager.checkAfterBeanDiscoveryProcessed(InjectableBeanManager.java:423)
> > > at
> > >
> >
> org.apache.webbeans.container.InjectableBeanManager.getBeans(InjectableBeanManager.java:129)
> > > at
> org.apache.myfaces.cdi.util.CDIUtils.lookup(CDIUtils.java:51)
> > > at
> > >
> >
> org.apache.myfaces.cdi.model.FacesDataModelExtension.afterDeploymentValidation(FacesDataModelExtension.java:82)
> > >
> > >
> > > Any ideas?
> > > --
> > > Jean-Louis Monteiro
> > > http://twitter.com/jlouismonteiro
> > > http://www.tomitribe.com
> > >
> >
>


-- 
Jean-Louis