You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Michele Velotti <mi...@gmail.com> on 2015/04/03 17:41:44 UTC
Re: Problem stopping webapp
Hi Achim, i tried with Karaf 4.0.0 M2 and the problem still persist.
The test is really simple, just a war with an HttpContextListener defined
inside web.xml.
When start bundle "onContextinitialized" is called, but when stop (or
uninstall) bundle "onContextDestroyed" is NOT called. I think that this is
an high issue, do you have some news related?
Thank you in advance
--
View this message in context: http://karaf.922171.n3.nabble.com/Problem-stopping-webapp-tp4038345p4039451.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Problem stopping webapp
Posted by Achim Nierbeck <bc...@googlemail.com>.
I'll plan on cutting a release shortly, though I'm missing still one more
feature that I want to get in.
But we still have some time till the K4 release.
regards, Achim
Am 10.04.2015 5:10 nachm. schrieb "Michele Velotti" <
michele.velotti@gmail.com>:
> Hi,
> i've seen that you have fixed the issue.
> We are thinking to switch to karaf 4.0.0 because we have to use
> web-fragment, this fix will be inside this release?
>
> Thank you for the fix,
>
> regards, Michele
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Problem-stopping-webapp-tp4038345p4039553.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>
Re: Problem stopping webapp
Posted by Michele Velotti <mi...@gmail.com>.
Hi,
i've seen that you have fixed the issue.
We are thinking to switch to karaf 4.0.0 because we have to use
web-fragment, this fix will be inside this release?
Thank you for the fix,
regards, Michele
--
View this message in context: http://karaf.922171.n3.nabble.com/Problem-stopping-webapp-tp4038345p4039553.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
Re: Problem stopping webapp
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
I had some time to look at it.
I narrowed it down to the following. Right now if an application is stopped
the eventlisteners are firsts deregistered without calling the destroy
methods first. This seems to be the issue.
I'll fix this asap. [1]
regards, Achim
[1] - https://ops4j1.jira.com/browse/PAXWEB-808
2015-04-03 18:49 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
> Hi,
>
> sorry no news :-)
> But a HttpContextListener doesn't exist.
> Only the following types of listeners are supported by Pax Web:
> - ServletContextListener.class,
> - ServletContextAttributeListener.class,
> - ServletRequestListener.class,
> - ServletRequestAttributeListener.class,
> - HttpSessionListener.class,
> - HttpSessionBindingListener.class,
> - HttpSessionAttributeListener.class,
> - HttpSessionActivationListener.class,
> - AsyncListener.class,
> - ReadListener.class,
> - WriteListener.class,
> - HttpSessionIdListener.class
>
> Since the issue is still there for you please open a bug at the Pax Web
> project [1].
> I'll look to it asap.
>
> regards, Achim
> [1] - https://ops4j1.jira.com/projects/PAXWEB/summary
>
> 2015-04-03 17:41 GMT+02:00 Michele Velotti <mi...@gmail.com>:
>
>> Hi Achim, i tried with Karaf 4.0.0 M2 and the problem still persist.
>>
>> The test is really simple, just a war with an HttpContextListener defined
>> inside web.xml.
>>
>> When start bundle "onContextinitialized" is called, but when stop (or
>> uninstall) bundle "onContextDestroyed" is NOT called. I think that this is
>> an high issue, do you have some news related?
>>
>> Thank you in advance
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Problem-stopping-webapp-tp4038345p4039451.html
>> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
Re: Problem stopping webapp
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
sorry no news :-)
But a HttpContextListener doesn't exist.
Only the following types of listeners are supported by Pax Web:
- ServletContextListener.class,
- ServletContextAttributeListener.class,
- ServletRequestListener.class,
- ServletRequestAttributeListener.class,
- HttpSessionListener.class,
- HttpSessionBindingListener.class,
- HttpSessionAttributeListener.class,
- HttpSessionActivationListener.class,
- AsyncListener.class,
- ReadListener.class,
- WriteListener.class,
- HttpSessionIdListener.class
Since the issue is still there for you please open a bug at the Pax Web
project [1].
I'll look to it asap.
regards, Achim
[1] - https://ops4j1.jira.com/projects/PAXWEB/summary
2015-04-03 17:41 GMT+02:00 Michele Velotti <mi...@gmail.com>:
> Hi Achim, i tried with Karaf 4.0.0 M2 and the problem still persist.
>
> The test is really simple, just a war with an HttpContextListener defined
> inside web.xml.
>
> When start bundle "onContextinitialized" is called, but when stop (or
> uninstall) bundle "onContextDestroyed" is NOT called. I think that this is
> an high issue, do you have some news related?
>
> Thank you in advance
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Problem-stopping-webapp-tp4038345p4039451.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master