• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

OSGi - Embedded Jetty Server - Servlet unable to get reference to Service Tracker

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have an OSGi application that has a GWT web interface.

One of the bundles is a GWT bundle that needs to be compiled before the application is launched.

Another bundle is an embedded Jetty application server. It starts the server and points to the compiled WAR of the GWT bundle



This works perfect and my GWT is available and it is able to call servlets.

The problem is these Servlets are unable to get a reference to the OSGi container. From what I have read in the init method you can get a reference to a ServiceTracker



I have no idea where this osgi-bundlecontext is meant to be set in Jetty.

Any ideas?

Thanks





 
Krem Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and as soon as I finally post an question I work out the answer

I don't know if this is the best way to do it but it works




Wish I had of posted a question 3 days ago

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic