Hello Thomas,

if you are using DM annotations, you can try to add the service property
mentioned by Raymond using the following:

@Component(properties = @Property(name = "osgi.http.whiteboard.listener",
value = "true"))
public class MyContextListener implements ServletContextListener {
...
}

And if your component also depends on other services, you might also need
to check proper activation of your component using the "dm" shell
command,like "dm b <bundle id>".

hope this helps;
/Pierre

On Tue, May 12, 2015 at 3:09 PM, Raymond Auge <[email protected]>
wrote:

> You are missing the required service property
> "osgi.http.whiteboard.listener=true" on your SCL.
>
> Sincerely,
> - Ray
>
> On Tue, May 12, 2015 at 6:51 AM, Thomas Driessen <
> [email protected]
> > wrote:
>
> > Hi Carsten,
> >
> > forget my last question, I still used felix 4.4.1 as my OSGI Framework. I
> > switched this to 5.1.0.SNAPSHOT and everything got resolved as expected.
> >
> > But still my ServletContextListener seems not to be invoked, as i get no
> > outputs on contextInitialized.
> >
> > This is my ServletContextListener:
> >
> > @Component(provides=ServletContextListener.class)
> > public class MyContextListener implements ServletContextListener {
> >
> > @Override
> > public void contextDestroyed(ServletContextEvent arg0) {
> > // TODO Auto-generated method stub
> > System.out.println("MyContextListener.contextDestroyed()");
> > }
> >
> > @Override
> > public void contextInitialized(ServletContextEvent arg0) {
> > // TODO Auto-generated method stub
> > System.out.println("MyContextListener.contextInitialized()");
> > }
> > }
> >
> > Might it be that the DM-Annotations are not working? Or do I have to add
> > some attributes?
> > Sorry for all those questions but right now I'm pretty confused :(
> >
> > Thanks for all your advice :)
> >
> > Thomas
> >
> > 2015-05-12 12:08 GMT+02:00 Thomas Driessen <[email protected]>:
> >
> > > Hi Carsten,
> > >
> > > I added http.jetty (3.0.3.SNAPSHOT) and http.api (3.0.0.SNAPSHOT) to my
> > > runrequirements but now it says it is missing the package org.osgi.dto
> ?
> > > I tried to add org.osgi.core (6.0.0) but that didn't help.
> > >
> > > Do I have to add some other bundles on which http.jetty and http.api
> are
> > > relying?
> > >
> > > Thomas
> > >
> > > 2015-05-11 19:20 GMT+02:00 Carsten Ziegeler <[email protected]>:
> > >
> > >> Am 11.05.15 um 18:51 schrieb Scott Lewis:
> > >> > On 5/11/2015 9:45 AM, Carsten Ziegeler wrote:
> > >> >> <stuff deleted>
> > >> >> Is there a release scheduled that will include all the http service
> > >> >> changes for R6 final?
> > >> >>
> > >> >> Yes, once there is an official final R6 version, we can do a
> release.
> > >> >
> > >> > Any schedule around such a release?   I know that the R6 spec is not
> > >> > done/approved/frozen, etc., but I'm just asking what plans exist.
> > >> >
> > >> I assume somewhere in Q3
> > >>
> > >> Carsten
> > >>
> > >>
> > >> --
> > >> Carsten Ziegeler
> > >> Adobe Research Switzerland
> > >> [email protected]
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [email protected]
> > >> For additional commands, e-mail: [email protected]
> > >>
> > >>
> > >
> > >
> > > --
> > > M.Sc. Thomas Driessen
> > > Software Methodologies for Distributed Systems
> > > Institute of Computer Science
> > > University of Augsburg
> > > Universitätsstr. 6a
> > > 86135 Augsburg, Germany
> > >
> > > Tel:    +49 821 598-2486
> > > email: [email protected]
> > >
> >
> >
> >
> > --
> > M.Sc. Thomas Driessen
> > Software Methodologies for Distributed Systems
> > Institute of Computer Science
> > University of Augsburg
> > Universitätsstr. 6a
> > 86135 Augsburg, Germany
> >
> > Tel:    +49 821 598-2486
> > email: [email protected]
> >
>
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>

Reply via email to