-
Notifications
You must be signed in to change notification settings - Fork 56
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
Exception when two CDI UIs are deployed in separate WARs inside of an EAR #97
Comments
Originally by @vaadin-kim Attachment added: |
Originally by @zch The example project needs to add an empty This is due to the way |
There was hope that two Vaadin 8 CDI UIs may work in WildFly versions 14 and 15 that use Weld 3.0.5.Final or greater where https://issues.jboss.org/browse/WELD-2143 and https://issues.jboss.org/browse/WELD-2250 are fixed, but when I tested with an EAR that contained two CDI UI WARs, the deployment failed with error
There is a minimal project to reproduce the error here: |
Great news - multiple WARs now work in a single EAR with Vaadin 12 CDI, at least in WildFly 14. Here's a sample project to try this out: https://gitlab.com/mrts/vaadin12-javaee-multiple-wars-in-one-ear |
@peholmst Thank you, I will when time allows! |
@peholmst Thank you, I confirm that this fixes the problem in the test application that I created. Let's see if we run into problems in a larger real life application. |
Originally by @vaadin-kim
Bundling two WAR's both containing a @CDIUI into an EAR and deploying it on Glassfish/JBoss will result in an exception:
2014-04-02T14:29:55.600+0300|SEVERE: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type com.vaadin.cdi.UIScoped
Test case attached.
Imported from https://dev.vaadin.com/ issue #13526
The text was updated successfully, but these errors were encountered: