Make sure you follow all the steps described in the link plus maybe look at the example: http://svn.apache.org/repos/asf/felix/trunk/http/samples/bridge/
it sounds like you didn't do the servletlistener that starts the framework and sets the context. (the process is not super automated atm and involves a couple of steps so don't give up to easily :-) regards, Karl On Wed, Jan 6, 2010 at 12:17 PM, Charles Moulliard <[email protected]> wrote: > Many thanks. > > I test it with my example but Tomcat generates this error during > initialisation of the proxy bridge servlet --> > > javax.servlet.ServletException: Bundle context attribute > [org.osgi.framework.BundleContext] not set in servlet context > at > org.apache.felix.http.proxy.ProxyServlet.getBundleContext(ProxyServlet.java:81) > at org.apache.felix.http.proxy.ProxyServlet.doInit(ProxyServlet.java:50) > at org.apache.felix.http.proxy.ProxyServlet.init(ProxyServlet.java:39) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161) > at > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > How the ProxyServlet retrieves such bundleContext ? > > Regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ***************************** > blog : http://cmoulliard.blogspot.com > twitter : http://twitter.com/cmoulliard > Linkedlin : http://www.linkedin.com/in/charlesmoulliard > > Apache Camel Group : > http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm > > > On Wed, Jan 6, 2010 at 12:09 PM, Karl Pauls <[email protected]> wrote: > >> Yup: >> >> >> http://felix.apache.org/site/apache-felix-http-service.html#ApacheFelixHTTPService-UsingtheServletBridge >> >> regards, >> >> Karl >> >> On Wed, Jan 6, 2010 at 11:15 AM, Charles Moulliard <[email protected]> >> wrote: >> > Hi, >> > >> > Is there a servlet bridge available for Apache Felix like we have with >> > equinox --> http://www.eclipse.org/equinox/server/http_in_container.php? >> > >> > Regards, >> > >> > Charles Moulliard >> > Senior Enterprise Architect >> > Apache Camel Committer >> > >> > ***************************** >> > blog : http://cmoulliard.blogspot.com >> > twitter : http://twitter.com/cmoulliard >> > Linkedlin : http://www.linkedin.com/in/charlesmoulliard >> > >> > Apache Camel Group : >> > http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm >> > >> >> >> >> -- >> Karl Pauls >> [email protected] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > -- Karl Pauls [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

