Re: Release?

2021-10-04 Thread Jean-Baptiste Onofré

+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

RESOLVED
[image: Major] [image: Task] OWB-1391
 AbstractMetaDataDiscovery
ignores classpath entries starting with a common path
 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  |
LinkedIn  | Book




OWB under JDK 17

2021-10-04 Thread Jean-Louis Monteiro
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 ErrorType 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


Re: OWB under JDK 17

2021-10-04 Thread Thomas Andraschko
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
>


Re: OWB under JDK 17

2021-10-04 Thread Romain Manni-Bucau
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  |
LinkedIn  | Book



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
> >
>