Closed rmpestano closed 5 years ago
Looks like a quarkus issue but yes, please try TomEE before
On Tomee I get a similar issue on startup:
09-Jun-2019 07:54:48.408 SEVERE [http-nio-8080-exec-4] org.apache.openejb.cdi.OpenEJBLifecycle.startApplication CDI Beans module deployment failed
org.apache.webbeans.exception.WebBeansDeploymentException: javax.enterprise.inject.UnproxyableResolutionException: WebBeans with api type with normal scope must be proxyable.
java.lang.String is a final class! CDI doesn't allow to proxy that.
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:365)
at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:196)
at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:252)
at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:43)
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:965)
....
java.lang.String is a final class! CDI doesn't allow to proxy that.
at org.apache.webbeans.util.InjectionExceptionUtil.createUnproxyableResolutionException(InjectionExceptionUtil.java:44)
at org.apache.webbeans.config.DeploymentValidationService.validateProxyable(DeploymentValidationService.java:143)
at org.apache.webbeans.component.creation.ProducerMethodBeansBuilder.defineProducerMethods(ProducerMethodBeansBuilder.java:103)
at org.apache.webbeans.config.BeansDeployer.defineManagedBean(BeansDeployer.java:1990)
will close the issue here because it is a CDI/OWB thing.
I've created the following producer method in LazyView bean:
And on the page I tried to output the value:
And get the following exception when accessing the page:
I don't know if it is a Quarkus or MyFaces issue because it works on Wildfly and Payara, need to test on Tomee to see if it a MyFaces issue.