Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring-faces: JSF 2.3 / Servlet 4.0 compatibility [SWF-1741] #916

Open
spring-operator opened this issue Jan 27, 2020 · 0 comments
Open
Labels
in: integration status: waiting-for-triage We need additional information before we can continue

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Jan 27, 2020

Matt.Hias opened SWF-1741 and commented

JSF 2.3 / Servlet 4.0 requires CDI 2.0

eclipse-ee4j/mojarra#4659

Please remove this hard check on CDI BeanManager or add a switch for disabling this check like javax.faces.ENABLE_CDI_RESOLVER_CHAIN = false?

jakarta.faces 2.3.14
spring-faces 2.5.1

are not working with servlet-version 4.0 otherwise. When switching back to 3.1 or add a invalid version number like "4.0-fix" everything works fine.

With spring-faces i do not need CDI.

com.sun.faces.application.applicationimpl.Version

javax.faces.FacesException: Unable to find CDI BeanManager
 at com.sun.faces.application.applicationimpl.Version.isJsf23(Version.java:62) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at com.sun.faces.application.applicationimpl.InstanceFactory.createConverter(InstanceFactory.java:479) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at com.sun.faces.application.ApplicationImpl.createConverter(ApplicationImpl.java:510) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at javax.faces.application.ApplicationWrapper.createConverter(ApplicationWrapper.java:425) ~[javax.faces-api-2.3.jar:2.3]
 at org.primefaces.config.PrimeConfiguration.<init>(PrimeConfiguration.java:65) ~[primefaces-7.0.jar:7.0]
 at org.primefaces.context.PrimeApplicationContext.<init>(PrimeApplicationContext.java:75) ~[primefaces-7.0.jar:7.0]
 at org.primefaces.context.PrimeApplicationContext.getCurrentInstance(PrimeApplicationContext.java:167) ~[primefaces-7.0.jar:7.0]
 at org.primefaces.webapp.PreDestroyApplicationEventListener.processEvent(PreDestroyApplicationEventListener.java:41) ~[primefaces-7.0.jar:7.0]
 at javax.faces.event.SystemEvent.processListener(SystemEvent.java:147) ~[javax.faces-api-2.3.jar:2.3]
 at com.sun.faces.application.applicationimpl.Events.processListeners(Events.java:253) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at com.sun.faces.application.applicationimpl.Events.invokeListenersFor(Events.java:231) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at com.sun.faces.application.applicationimpl.Events.publishEvent(Events.java:112) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:127) ~[jakarta.faces-2.3.14.jar:2.3.14]
 at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:761) ~[javax.faces-api-2.3.jar:2.3]
 at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:346) [jakarta.faces-2.3.14.jar:2.3.14]
 at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4713) [catalina.jar:9.0.16]
 at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5374) [catalina.jar:9.0.16]
 at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257) [catalina.jar:9.0.16]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187) [catalina.jar:9.0.16]
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) [catalina.jar:9.0.16]
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) [catalina.jar:9.0.16]
 at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.16]
 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?]
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) [catalina.jar:9.0.16]
 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) [catalina.jar:9.0.16]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.16]
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) [catalina.jar:9.0.16]
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) [catalina.jar:9.0.16]
 at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.16]
 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?]
 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) [catalina.jar:9.0.16]
 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.16]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.16]
 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423) [catalina.jar:9.0.16]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.16]
 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928) [catalina.jar:9.0.16]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.16]
 at org.apache.catalina.startup.Catalina.start(Catalina.java:638) [catalina.jar:9.0.16]
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
 at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
 at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
 at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350) [bootstrap.jar:9.0.16]
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) [bootstrap.jar:9.0.16]
> ```

 

Are there plans to adopt the spring-webflow/spring-faces library to build on a CDI 2.0 bridge?

 

 


Affects: 2.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: integration status: waiting-for-triage We need additional information before we can continue
Projects
None yet
Development

No branches or pull requests

1 participant