You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Felipe Jaekel <fk...@gmail.com> on 2014/09/26 16:33:53 UTC

Listeners annotated outside webapp are ignored

Hi,

I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses some
listeners annotated with @WebListener that are packed in a JAR inside
WEB-INF/lib.

It works fine in a regular Tomcat, but in TomEE they are ignored, so I have
to register them in web.xml.

Is there anything I can set in system.properties to solve this? I
tried openejb.deployments.classpath = true, but no success.

Thanks

Re: Listeners annotated outside webapp are ignored

Posted by Felipe Jaekel <fk...@gmail.com>.
Nice, thanks.

2014-10-01 13:59 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Hi
>
> should be fixed https://issues.apache.org/jira/browse/TOMEE-1370
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-10-01 14:31 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> > Hi,
> >
> > I've installed TomEE in */home/ec2-user*. This is the *ls -Al* output:
> >
> > lrwxrwxrwx  1 ec2-user ec2-user   24 Set 17 17:34 apache-tomee-plus ->
> > apache-tomee-plus-1.7.1/
> > drwxrwxr-x 10 ec2-user ec2-user 4096 Set 17 17:16 apache-tomee-plus-1.7.1
> >
> > I was able to simulate the issue with the sample I attached and using the
> > default *server.xml* file.
> >
> >
> > 2014-09-30 18:04 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> >> I have an idea of the issue, if you could take few minutes to share
> >> your paths (symlink install, real tomee folder, webapp folder,
> >> server.xml config - Host + Context if any - and context.xml if used)
> >> it will help us to check faster.
> >>
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >> 2014-09-30 21:42 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> >> > Okay I finally figured out the problem.
> >> >
> >> > In my production server I reference the TomEE installation from 3
> places:
> >> > Jenkins, logrotate and the init.d script.
> >> >
> >> > When I upgraded from 1.7.0 to 1.7.1, I decided to make a symbolic
> link to
> >> > don't need to update the server location everywhere.
> >> >
> >> > ln -s apache-tomee-plus-1.7.1/ apache-tomee-plus
> >> >
> >> > If I run startup.sh from apache-tomee-plus/ instead of
> >> > apache-tomee-plus-1.7.1/, the annotations are not scanned in JARs
> inside
> >> > WEB-INF/lib
> >> >
> >> > I have no idea why... (my production server is Amazon Linux latest
> >> version,
> >> > and my desktop is Linux Mint Debian Edition latest version)
> >> >
> >> >
> >> >
> >> > 2014-09-30 11:12 GMT-03:00 Felipe Jaekel <fk...@gmail.com>:
> >> >
> >> >> Hi,
> >> >>
> >> >> I also tried to add metadata-complete="false" to web.xml, same thing.
> >> >>
> >> >> Here is the sample:
> >> >>
> >> >> WAR: https://dl.dropboxusercontent.com/u/66737052/mavenproject.war
> >> >>
> >> >> Source: https://dl.dropboxusercontent.com/u/66737052/source.zip
> >> >>
> >> >> Thanks
> >> >>
> >> >> 2014-09-29 13:45 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >> >>
> >> >> Can you share a sample showing this issue?
> >> >>>
> >> >>> Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a
> >> écrit :
> >> >>> > Hi,
> >> >>> >
> >> >>> > I renamed the JAR and reloaded the webapp, but no success.
> >> >>> >
> >> >>> > Anything else I can try?
> >> >>> >
> >> >>> > 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <
> rmannibucau@gmail.com
> >> >:
> >> >>> >
> >> >>> >> Hi
> >> >>> >>
> >> >>> >> quick check to do: rename the jar: "foo.jar"
> >> >>> >>
> >> >>> >>
> >> >>> >> Romain Manni-Bucau
> >> >>> >> Twitter: @rmannibucau
> >> >>> >> Blog: http://rmannibucau.wordpress.com/
> >> >>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> >>> >> Github: https://github.com/rmannibucau
> >> >>> >>
> >> >>> >>
> >> >>> >> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> >> >>> >> > Hi,
> >> >>> >> >
> >> >>> >> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It
> uses
> >> >>> some
> >> >>> >> > listeners annotated with @WebListener that are packed in a JAR
> >> inside
> >> >>> >> > WEB-INF/lib.
> >> >>> >> >
> >> >>> >> > It works fine in a regular Tomcat, but in TomEE they are
> ignored,
> >> so
> >> >>> I
> >> >>> >> have
> >> >>> >> > to register them in web.xml.
> >> >>> >> >
> >> >>> >> > Is there anything I can set in system.properties to solve
> this? I
> >> >>> >> > tried openejb.deployments.classpath = true, but no success.
> >> >>> >> >
> >> >>> >> > Thanks
> >> >>> >>
> >> >>> >
> >> >>>
> >> >>> --
> >> >>>
> >> >>>
> >> >>> Romain Manni-Bucau
> >> >>> Twitter: @rmannibucau
> >> >>> Blog: http://rmannibucau.wordpress.com/
> >> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> >>> Github: https://github.com/rmannibucau
> >> >>>
> >> >>
> >> >>
> >>
>

Re: Listeners annotated outside webapp are ignored

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

should be fixed https://issues.apache.org/jira/browse/TOMEE-1370


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-10-01 14:31 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> Hi,
>
> I've installed TomEE in */home/ec2-user*. This is the *ls -Al* output:
>
> lrwxrwxrwx  1 ec2-user ec2-user   24 Set 17 17:34 apache-tomee-plus ->
> apache-tomee-plus-1.7.1/
> drwxrwxr-x 10 ec2-user ec2-user 4096 Set 17 17:16 apache-tomee-plus-1.7.1
>
> I was able to simulate the issue with the sample I attached and using the
> default *server.xml* file.
>
>
> 2014-09-30 18:04 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
>> I have an idea of the issue, if you could take few minutes to share
>> your paths (symlink install, real tomee folder, webapp folder,
>> server.xml config - Host + Context if any - and context.xml if used)
>> it will help us to check faster.
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-30 21:42 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
>> > Okay I finally figured out the problem.
>> >
>> > In my production server I reference the TomEE installation from 3 places:
>> > Jenkins, logrotate and the init.d script.
>> >
>> > When I upgraded from 1.7.0 to 1.7.1, I decided to make a symbolic link to
>> > don't need to update the server location everywhere.
>> >
>> > ln -s apache-tomee-plus-1.7.1/ apache-tomee-plus
>> >
>> > If I run startup.sh from apache-tomee-plus/ instead of
>> > apache-tomee-plus-1.7.1/, the annotations are not scanned in JARs inside
>> > WEB-INF/lib
>> >
>> > I have no idea why... (my production server is Amazon Linux latest
>> version,
>> > and my desktop is Linux Mint Debian Edition latest version)
>> >
>> >
>> >
>> > 2014-09-30 11:12 GMT-03:00 Felipe Jaekel <fk...@gmail.com>:
>> >
>> >> Hi,
>> >>
>> >> I also tried to add metadata-complete="false" to web.xml, same thing.
>> >>
>> >> Here is the sample:
>> >>
>> >> WAR: https://dl.dropboxusercontent.com/u/66737052/mavenproject.war
>> >>
>> >> Source: https://dl.dropboxusercontent.com/u/66737052/source.zip
>> >>
>> >> Thanks
>> >>
>> >> 2014-09-29 13:45 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>> >>
>> >> Can you share a sample showing this issue?
>> >>>
>> >>> Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a
>> écrit :
>> >>> > Hi,
>> >>> >
>> >>> > I renamed the JAR and reloaded the webapp, but no success.
>> >>> >
>> >>> > Anything else I can try?
>> >>> >
>> >>> > 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
>> >:
>> >>> >
>> >>> >> Hi
>> >>> >>
>> >>> >> quick check to do: rename the jar: "foo.jar"
>> >>> >>
>> >>> >>
>> >>> >> Romain Manni-Bucau
>> >>> >> Twitter: @rmannibucau
>> >>> >> Blog: http://rmannibucau.wordpress.com/
>> >>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >>> >> Github: https://github.com/rmannibucau
>> >>> >>
>> >>> >>
>> >>> >> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
>> >>> >> > Hi,
>> >>> >> >
>> >>> >> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses
>> >>> some
>> >>> >> > listeners annotated with @WebListener that are packed in a JAR
>> inside
>> >>> >> > WEB-INF/lib.
>> >>> >> >
>> >>> >> > It works fine in a regular Tomcat, but in TomEE they are ignored,
>> so
>> >>> I
>> >>> >> have
>> >>> >> > to register them in web.xml.
>> >>> >> >
>> >>> >> > Is there anything I can set in system.properties to solve this? I
>> >>> >> > tried openejb.deployments.classpath = true, but no success.
>> >>> >> >
>> >>> >> > Thanks
>> >>> >>
>> >>> >
>> >>>
>> >>> --
>> >>>
>> >>>
>> >>> Romain Manni-Bucau
>> >>> Twitter: @rmannibucau
>> >>> Blog: http://rmannibucau.wordpress.com/
>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >>> Github: https://github.com/rmannibucau
>> >>>
>> >>
>> >>
>>

Re: Listeners annotated outside webapp are ignored

Posted by Felipe Jaekel <fk...@gmail.com>.
Hi,

I've installed TomEE in */home/ec2-user*. This is the *ls -Al* output:

lrwxrwxrwx  1 ec2-user ec2-user   24 Set 17 17:34 apache-tomee-plus ->
apache-tomee-plus-1.7.1/
drwxrwxr-x 10 ec2-user ec2-user 4096 Set 17 17:16 apache-tomee-plus-1.7.1

I was able to simulate the issue with the sample I attached and using the
default *server.xml* file.


2014-09-30 18:04 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> I have an idea of the issue, if you could take few minutes to share
> your paths (symlink install, real tomee folder, webapp folder,
> server.xml config - Host + Context if any - and context.xml if used)
> it will help us to check faster.
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-30 21:42 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> > Okay I finally figured out the problem.
> >
> > In my production server I reference the TomEE installation from 3 places:
> > Jenkins, logrotate and the init.d script.
> >
> > When I upgraded from 1.7.0 to 1.7.1, I decided to make a symbolic link to
> > don't need to update the server location everywhere.
> >
> > ln -s apache-tomee-plus-1.7.1/ apache-tomee-plus
> >
> > If I run startup.sh from apache-tomee-plus/ instead of
> > apache-tomee-plus-1.7.1/, the annotations are not scanned in JARs inside
> > WEB-INF/lib
> >
> > I have no idea why... (my production server is Amazon Linux latest
> version,
> > and my desktop is Linux Mint Debian Edition latest version)
> >
> >
> >
> > 2014-09-30 11:12 GMT-03:00 Felipe Jaekel <fk...@gmail.com>:
> >
> >> Hi,
> >>
> >> I also tried to add metadata-complete="false" to web.xml, same thing.
> >>
> >> Here is the sample:
> >>
> >> WAR: https://dl.dropboxusercontent.com/u/66737052/mavenproject.war
> >>
> >> Source: https://dl.dropboxusercontent.com/u/66737052/source.zip
> >>
> >> Thanks
> >>
> >> 2014-09-29 13:45 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >>
> >> Can you share a sample showing this issue?
> >>>
> >>> Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a
> écrit :
> >>> > Hi,
> >>> >
> >>> > I renamed the JAR and reloaded the webapp, but no success.
> >>> >
> >>> > Anything else I can try?
> >>> >
> >>> > 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >>> >
> >>> >> Hi
> >>> >>
> >>> >> quick check to do: rename the jar: "foo.jar"
> >>> >>
> >>> >>
> >>> >> Romain Manni-Bucau
> >>> >> Twitter: @rmannibucau
> >>> >> Blog: http://rmannibucau.wordpress.com/
> >>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >>> >> Github: https://github.com/rmannibucau
> >>> >>
> >>> >>
> >>> >> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> >>> >> > Hi,
> >>> >> >
> >>> >> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses
> >>> some
> >>> >> > listeners annotated with @WebListener that are packed in a JAR
> inside
> >>> >> > WEB-INF/lib.
> >>> >> >
> >>> >> > It works fine in a regular Tomcat, but in TomEE they are ignored,
> so
> >>> I
> >>> >> have
> >>> >> > to register them in web.xml.
> >>> >> >
> >>> >> > Is there anything I can set in system.properties to solve this? I
> >>> >> > tried openejb.deployments.classpath = true, but no success.
> >>> >> >
> >>> >> > Thanks
> >>> >>
> >>> >
> >>>
> >>> --
> >>>
> >>>
> >>> Romain Manni-Bucau
> >>> Twitter: @rmannibucau
> >>> Blog: http://rmannibucau.wordpress.com/
> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >>> Github: https://github.com/rmannibucau
> >>>
> >>
> >>
>

Re: Listeners annotated outside webapp are ignored

Posted by Romain Manni-Bucau <rm...@gmail.com>.
I have an idea of the issue, if you could take few minutes to share
your paths (symlink install, real tomee folder, webapp folder,
server.xml config - Host + Context if any - and context.xml if used)
it will help us to check faster.


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-30 21:42 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> Okay I finally figured out the problem.
>
> In my production server I reference the TomEE installation from 3 places:
> Jenkins, logrotate and the init.d script.
>
> When I upgraded from 1.7.0 to 1.7.1, I decided to make a symbolic link to
> don't need to update the server location everywhere.
>
> ln -s apache-tomee-plus-1.7.1/ apache-tomee-plus
>
> If I run startup.sh from apache-tomee-plus/ instead of
> apache-tomee-plus-1.7.1/, the annotations are not scanned in JARs inside
> WEB-INF/lib
>
> I have no idea why... (my production server is Amazon Linux latest version,
> and my desktop is Linux Mint Debian Edition latest version)
>
>
>
> 2014-09-30 11:12 GMT-03:00 Felipe Jaekel <fk...@gmail.com>:
>
>> Hi,
>>
>> I also tried to add metadata-complete="false" to web.xml, same thing.
>>
>> Here is the sample:
>>
>> WAR: https://dl.dropboxusercontent.com/u/66737052/mavenproject.war
>>
>> Source: https://dl.dropboxusercontent.com/u/66737052/source.zip
>>
>> Thanks
>>
>> 2014-09-29 13:45 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>>
>> Can you share a sample showing this issue?
>>>
>>> Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a écrit :
>>> > Hi,
>>> >
>>> > I renamed the JAR and reloaded the webapp, but no success.
>>> >
>>> > Anything else I can try?
>>> >
>>> > 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>>> >
>>> >> Hi
>>> >>
>>> >> quick check to do: rename the jar: "foo.jar"
>>> >>
>>> >>
>>> >> Romain Manni-Bucau
>>> >> Twitter: @rmannibucau
>>> >> Blog: http://rmannibucau.wordpress.com/
>>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> >> Github: https://github.com/rmannibucau
>>> >>
>>> >>
>>> >> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
>>> >> > Hi,
>>> >> >
>>> >> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses
>>> some
>>> >> > listeners annotated with @WebListener that are packed in a JAR inside
>>> >> > WEB-INF/lib.
>>> >> >
>>> >> > It works fine in a regular Tomcat, but in TomEE they are ignored, so
>>> I
>>> >> have
>>> >> > to register them in web.xml.
>>> >> >
>>> >> > Is there anything I can set in system.properties to solve this? I
>>> >> > tried openejb.deployments.classpath = true, but no success.
>>> >> >
>>> >> > Thanks
>>> >>
>>> >
>>>
>>> --
>>>
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>
>>

Re: Listeners annotated outside webapp are ignored

Posted by Felipe Jaekel <fk...@gmail.com>.
Okay I finally figured out the problem.

In my production server I reference the TomEE installation from 3 places:
Jenkins, logrotate and the init.d script.

When I upgraded from 1.7.0 to 1.7.1, I decided to make a symbolic link to
don't need to update the server location everywhere.

ln -s apache-tomee-plus-1.7.1/ apache-tomee-plus

If I run startup.sh from apache-tomee-plus/ instead of
apache-tomee-plus-1.7.1/, the annotations are not scanned in JARs inside
WEB-INF/lib

I have no idea why... (my production server is Amazon Linux latest version,
and my desktop is Linux Mint Debian Edition latest version)



2014-09-30 11:12 GMT-03:00 Felipe Jaekel <fk...@gmail.com>:

> Hi,
>
> I also tried to add metadata-complete="false" to web.xml, same thing.
>
> Here is the sample:
>
> WAR: https://dl.dropboxusercontent.com/u/66737052/mavenproject.war
>
> Source: https://dl.dropboxusercontent.com/u/66737052/source.zip
>
> Thanks
>
> 2014-09-29 13:45 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
> Can you share a sample showing this issue?
>>
>> Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a écrit :
>> > Hi,
>> >
>> > I renamed the JAR and reloaded the webapp, but no success.
>> >
>> > Anything else I can try?
>> >
>> > 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>> >
>> >> Hi
>> >>
>> >> quick check to do: rename the jar: "foo.jar"
>> >>
>> >>
>> >> Romain Manni-Bucau
>> >> Twitter: @rmannibucau
>> >> Blog: http://rmannibucau.wordpress.com/
>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> Github: https://github.com/rmannibucau
>> >>
>> >>
>> >> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
>> >> > Hi,
>> >> >
>> >> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses
>> some
>> >> > listeners annotated with @WebListener that are packed in a JAR inside
>> >> > WEB-INF/lib.
>> >> >
>> >> > It works fine in a regular Tomcat, but in TomEE they are ignored, so
>> I
>> >> have
>> >> > to register them in web.xml.
>> >> >
>> >> > Is there anything I can set in system.properties to solve this? I
>> >> > tried openejb.deployments.classpath = true, but no success.
>> >> >
>> >> > Thanks
>> >>
>> >
>>
>> --
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>
>

Re: Listeners annotated outside webapp are ignored

Posted by Felipe Jaekel <fk...@gmail.com>.
Hi,

I also tried to add metadata-complete="false" to web.xml, same thing.

Here is the sample:

WAR: https://dl.dropboxusercontent.com/u/66737052/mavenproject.war

Source: https://dl.dropboxusercontent.com/u/66737052/source.zip

Thanks

2014-09-29 13:45 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Can you share a sample showing this issue?
>
> Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a écrit :
> > Hi,
> >
> > I renamed the JAR and reloaded the webapp, but no success.
> >
> > Anything else I can try?
> >
> > 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
> >
> >> Hi
> >>
> >> quick check to do: rename the jar: "foo.jar"
> >>
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> >> > Hi,
> >> >
> >> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses some
> >> > listeners annotated with @WebListener that are packed in a JAR inside
> >> > WEB-INF/lib.
> >> >
> >> > It works fine in a regular Tomcat, but in TomEE they are ignored, so I
> >> have
> >> > to register them in web.xml.
> >> >
> >> > Is there anything I can set in system.properties to solve this? I
> >> > tried openejb.deployments.classpath = true, but no success.
> >> >
> >> > Thanks
> >>
> >
>
> --
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>

Re: Listeners annotated outside webapp are ignored

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Can you share a sample showing this issue?

Le lundi 29 septembre 2014, Felipe Jaekel <fk...@gmail.com> a écrit :
> Hi,
>
> I renamed the JAR and reloaded the webapp, but no success.
>
> Anything else I can try?
>
> 2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:
>
>> Hi
>>
>> quick check to do: rename the jar: "foo.jar"
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
>> > Hi,
>> >
>> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses some
>> > listeners annotated with @WebListener that are packed in a JAR inside
>> > WEB-INF/lib.
>> >
>> > It works fine in a regular Tomcat, but in TomEE they are ignored, so I
>> have
>> > to register them in web.xml.
>> >
>> > Is there anything I can set in system.properties to solve this? I
>> > tried openejb.deployments.classpath = true, but no success.
>> >
>> > Thanks
>>
>

-- 


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau

Re: Listeners annotated outside webapp are ignored

Posted by Felipe Jaekel <fk...@gmail.com>.
Hi,

I renamed the JAR and reloaded the webapp, but no success.

Anything else I can try?

2014-09-28 13:28 GMT-03:00 Romain Manni-Bucau <rm...@gmail.com>:

> Hi
>
> quick check to do: rename the jar: "foo.jar"
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> > Hi,
> >
> > I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses some
> > listeners annotated with @WebListener that are packed in a JAR inside
> > WEB-INF/lib.
> >
> > It works fine in a regular Tomcat, but in TomEE they are ignored, so I
> have
> > to register them in web.xml.
> >
> > Is there anything I can set in system.properties to solve this? I
> > tried openejb.deployments.classpath = true, but no success.
> >
> > Thanks
>

Re: Listeners annotated outside webapp are ignored

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

quick check to do: rename the jar: "foo.jar"


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-26 16:33 GMT+02:00 Felipe Jaekel <fk...@gmail.com>:
> Hi,
>
> I'm trying to run an existing webapp in TomEE plus 1.7.1. It uses some
> listeners annotated with @WebListener that are packed in a JAR inside
> WEB-INF/lib.
>
> It works fine in a regular Tomcat, but in TomEE they are ignored, so I have
> to register them in web.xml.
>
> Is there anything I can set in system.properties to solve this? I
> tried openejb.deployments.classpath = true, but no success.
>
> Thanks