Discussion:
ServletContainerInitializer in EAR
Tamás Kimmel
2018-05-01 13:49:33 UTC
Permalink
Hi!

I am experiencing ServletContainerInitializer with @HandlesTypes always get
null classSet inside a WAR module of an EAR.
When I deploy as a single WAR, it works as expected.

My test can be found here:
https://github.com/kumm/flow-cdi-addon/blob/ear-test/flow-cdi-itest/src/test/java/com/wcs/vaadin/flow/cdi/itest/EarPlainTest.java

SerletContextListener is in a library of the WAR, it's code can be found
here:
https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/server/startup/RouteRegistryInitializer.java

If it is worth creating a more trimmed down testcase, I shall do it.

Kimmel Tamás
Jonathan Gallimore
2018-05-01 13:56:27 UTC
Permalink
Thanks for reporting that. I'm working in that area at the moment. I'll
take a look. Are you using TomEE 7.0.4?

Jon
Post by Tamás Kimmel
Hi!
null classSet inside a WAR module of an EAR.
When I deploy as a single WAR, it works as expected.
https://github.com/kumm/flow-cdi-addon/blob/ear-test/flow-
cdi-itest/src/test/java/com/wcs/vaadin/flow/cdi/itest/EarPlainTest.java
SerletContextListener is in a library of the WAR, it's code can be found
https://github.com/vaadin/flow/blob/master/flow-server/
src/main/java/com/vaadin/flow/server/startup/RouteRegistryInitializer.java
If it is worth creating a more trimmed down testcase, I shall do it.
Kimmel Tamás
Tamás Kimmel
2018-05-01 14:44:21 UTC
Permalink
Thanks, yes I am on 7.0.4.
Post by Jonathan Gallimore
Thanks for reporting that. I'm working in that area at the moment. I'll
take a look. Are you using TomEE 7.0.4?
Jon
Post by Tamás Kimmel
Hi!
get
Post by Tamás Kimmel
null classSet inside a WAR module of an EAR.
When I deploy as a single WAR, it works as expected.
https://github.com/kumm/flow-cdi-addon/blob/ear-test/flow-
cdi-itest/src/test/java/com/wcs/vaadin/flow/cdi/itest/EarPlainTest.java
SerletContextListener is in a library of the WAR, it's code can be found
https://github.com/vaadin/flow/blob/master/flow-server/
src/main/java/com/vaadin/flow/server/startup/
RouteRegistryInitializer.java
Post by Tamás Kimmel
If it is worth creating a more trimmed down testcase, I shall do it.
Kimmel Tamás
Tamás Kimmel
2018-05-05 15:46:27 UTC
Permalink
Creating a trimmed down testcase would help?
Should I file an issue?
Post by Tamás Kimmel
Thanks, yes I am on 7.0.4.
2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <
Post by Jonathan Gallimore
Thanks for reporting that. I'm working in that area at the moment. I'll
take a look. Are you using TomEE 7.0.4?
Jon
Post by Tamás Kimmel
Hi!
get
Post by Tamás Kimmel
null classSet inside a WAR module of an EAR.
When I deploy as a single WAR, it works as expected.
https://github.com/kumm/flow-cdi-addon/blob/ear-test/flow-
cdi-itest/src/test/java/com/wcs/vaadin/flow/cdi/itest/EarPlainTest.java
SerletContextListener is in a library of the WAR, it's code can be found
https://github.com/vaadin/flow/blob/master/flow-server/
src/main/java/com/vaadin/flow/server/startup/RouteRegistryIn
itializer.java
Post by Tamás Kimmel
If it is worth creating a more trimmed down testcase, I shall do it.
Kimmel Tamás
Jonathan Gallimore
2018-05-05 15:50:09 UTC
Permalink
Yes please to both 😀
Post by Tamás Kimmel
Creating a trimmed down testcase would help?
Should I file an issue?
Post by Tamás Kimmel
Thanks, yes I am on 7.0.4.
2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <
Post by Jonathan Gallimore
Thanks for reporting that. I'm working in that area at the moment. I'll
take a look. Are you using TomEE 7.0.4?
Jon
Post by Tamás Kimmel
Hi!
always
Post by Tamás Kimmel
Post by Jonathan Gallimore
get
Post by Tamás Kimmel
null classSet inside a WAR module of an EAR.
When I deploy as a single WAR, it works as expected.
https://github.com/kumm/flow-cdi-addon/blob/ear-test/flow-
cdi-itest/src/test/java/com/wcs/vaadin/flow/cdi/itest/EarPlainTest.java
Post by Tamás Kimmel
Post by Jonathan Gallimore
Post by Tamás Kimmel
SerletContextListener is in a library of the WAR, it's code can be
found
Post by Tamás Kimmel
Post by Jonathan Gallimore
Post by Tamás Kimmel
https://github.com/vaadin/flow/blob/master/flow-server/
src/main/java/com/vaadin/flow/server/startup/RouteRegistryIn
itializer.java
Post by Tamás Kimmel
If it is worth creating a more trimmed down testcase, I shall do it.
Kimmel Tamás
Tamás Kimmel
2018-05-05 17:59:03 UTC
Permalink
It's TOMEE-2192.
A simplified testcase attached.
Post by Jonathan Gallimore
Yes please to both 😀
Post by Tamás Kimmel
Creating a trimmed down testcase would help?
Should I file an issue?
Post by Tamás Kimmel
Thanks, yes I am on 7.0.4.
2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <
Post by Jonathan Gallimore
Thanks for reporting that. I'm working in that area at the moment.
I'll
Post by Tamás Kimmel
Post by Tamás Kimmel
Post by Jonathan Gallimore
take a look. Are you using TomEE 7.0.4?
Jon
Post by Tamás Kimmel
Hi!
always
Post by Tamás Kimmel
Post by Jonathan Gallimore
get
Post by Tamás Kimmel
null classSet inside a WAR module of an EAR.
When I deploy as a single WAR, it works as expected.
https://github.com/kumm/flow-cdi-addon/blob/ear-test/flow-
cdi-itest/src/test/java/com/wcs/vaadin/flow/cdi/itest/EarPlainTest.java
Post by Tamás Kimmel
Post by Jonathan Gallimore
Post by Tamás Kimmel
SerletContextListener is in a library of the WAR, it's code can be
found
Post by Tamás Kimmel
Post by Jonathan Gallimore
Post by Tamás Kimmel
https://github.com/vaadin/flow/blob/master/flow-server/
src/main/java/com/vaadin/flow/server/startup/RouteRegistryIn
itializer.java
Post by Tamás Kimmel
If it is worth creating a more trimmed down testcase, I shall do it.
Kimmel Tamás
Loading...