Simplified Setup: .ear -> .war with CDIUI -> .ejb with CDIView lib
No web.xml No explicit specified servlet
using vaadin-cdi 1.0.2
I dont plan to provide any program code since the whole thing works fine if i deploy it as .war with the .ejb in its lib folder. So the classes are fine.
Here are some things i've tried:
- Add beans.xml to the .ejb in various locations like META-INF, WEB-INF (-> Absolutly no difference)
- Add vaadin-cdi to .war & .ejb (-> unable to find UI)
- Add vaadin-cdi as provided in .war & .ejb (->unable to find UI)
- deploy .ejb as additional .war (->unable to find UI)
- deploy .ejb as .jar so its in the lib folder of the .ear (->cant get an instance of CDIView with the CDIViewProvider
In a lot of answers people suggest to add a beans.xml, trust me i've tried that. Interesting result of that is the only noteworthy beans.xml is in the src/main/webapp/WEB-INF folder of the .war project. No other beans.xml made a difference.
Some naive assumptions since im rather clueless about class loading:
- You can not have the vaadin-cdi lib twice in your project because then the default servlet is unable to determine the UI even if there is only 1
- Only CDIViews within the "direct range" of the vaadin-cdi lib will be discovered. If there are CDIViews within another "layer"/project/libfolder they wont be discovered.
And finally the question:
Is it possible to deploy an .ear that contains a .war with the only CDIUI class in the project while having .ejb archives in the .ear that contain CDIViews so that the CDIViewProvider will be able to discover those from the .war project?
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire