ServletContainerInitializer in EAR

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

ServletContainerInitializer in EAR

kumm0307
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
Reply | Threaded
Open this post in threaded view
|

Re: ServletContainerInitializer in EAR

jgallimore
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

On Tue, May 1, 2018 at 2:49 PM, Tamás Kimmel <[hidden email]> wrote:

> 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
>
Reply | Threaded
Open this post in threaded view
|

Re: ServletContainerInitializer in EAR

kumm0307
Thanks, yes I am on 7.0.4.

2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <[hidden email]>
:

> 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
>
> On Tue, May 1, 2018 at 2:49 PM, Tamás Kimmel <[hidden email]> wrote:
>
> > 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
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: ServletContainerInitializer in EAR

kumm0307
Creating a trimmed down testcase would help?
Should I file an issue?


2018-05-01 16:44 GMT+02:00 Tamás Kimmel <[hidden email]>:

> Thanks, yes I am on 7.0.4.
>
> 2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <
> [hidden email]>:
>
>> 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
>>
>> On Tue, May 1, 2018 at 2:49 PM, Tamás Kimmel <[hidden email]> wrote:
>>
>> > 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/RouteRegistryIn
>> itializer.java
>> >
>> > If it is worth creating a more trimmed down testcase, I shall do it.
>> >
>> > Kimmel Tamás
>> >
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: ServletContainerInitializer in EAR

jgallimore
Yes please to both 😀

On Sat, 5 May 2018, 16:46 Tamás Kimmel, <[hidden email]> wrote:

> Creating a trimmed down testcase would help?
> Should I file an issue?
>
>
> 2018-05-01 16:44 GMT+02:00 Tamás Kimmel <[hidden email]>:
>
> > Thanks, yes I am on 7.0.4.
> >
> > 2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <
> > [hidden email]>:
> >
> >> 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
> >>
> >> On Tue, May 1, 2018 at 2:49 PM, Tamás Kimmel <[hidden email]>
> wrote:
> >>
> >> > 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/RouteRegistryIn
> >> itializer.java
> >> >
> >> > If it is worth creating a more trimmed down testcase, I shall do it.
> >> >
> >> > Kimmel Tamás
> >> >
> >>
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: ServletContainerInitializer in EAR

kumm0307
It's TOMEE-2192.
A simplified testcase attached.

2018-05-05 17:50 GMT+02:00 Jonathan Gallimore <[hidden email]>
:

> Yes please to both 😀
>
> On Sat, 5 May 2018, 16:46 Tamás Kimmel, <[hidden email]> wrote:
>
> > Creating a trimmed down testcase would help?
> > Should I file an issue?
> >
> >
> > 2018-05-01 16:44 GMT+02:00 Tamás Kimmel <[hidden email]>:
> >
> > > Thanks, yes I am on 7.0.4.
> > >
> > > 2018-05-01 15:56 GMT+02:00 Jonathan Gallimore <
> > > [hidden email]>:
> > >
> > >> 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
> > >>
> > >> On Tue, May 1, 2018 at 2:49 PM, Tamás Kimmel <[hidden email]>
> > wrote:
> > >>
> > >> > 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/RouteRegistryIn
> > >> itializer.java
> > >> >
> > >> > If it is worth creating a more trimmed down testcase, I shall do it.
> > >> >
> > >> > Kimmel Tamás
> > >> >
> > >>
> > >
> > >
> >
>