You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by cmoulliard <cm...@gmail.com> on 2009/04/01 13:23:11 UTC

Re: How the bundle contgext is loaded in SMX4 ??

This is what I will check now and more precisely how to retrieve from Wicket
Servlet the BundleContext using in Wicket the class :
org.apache.wicket.spring.SpringWebApplicationFactory (which should be
modified).

Regards,

Charles



gnodet wrote:
> 
> I've never tried to use the spring osgi web stuff with out web
> deployer (pax-web).
> Maybe there is a tie between the OsgiBundleXmlWebApplicationContext
> and the spring web deployer somehow ...
> 
> On Tue, Mar 31, 2009 at 17:34, cmoulliard <cm...@gmail.com> wrote:
>>
>> Hi,
>>
>> I would like to know How the bundle context is loaded in SMX 4 ?
>>
>> Why : because I have the following error when I deploy an Apache Wicket
>> projet (modified to call an osgi:reference service)
>>
>> java.lang.IllegalArgumentException: bundle context should be set before
>> refreshing the application context
>>        at org.springframework.util.Assert.notNull(Assert.java:112)
>>        at
>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:179)
>>
>> Here is my web.xml file :
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>>        version="2.4">
>>
>>        <display-name>reportincident.web</display-name>
>>
>>
>>        <context-param>
>>                <param-name>contextClass</param-name>
>>
>> <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
>>        </context-param>
>>
>>        <listener>
>>
>> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>>        </listener>
>>
>>        <filter>
>>                <filter-name>wicket.reportincident.web</filter-name>
>>              
>>  <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
>>                <init-param>
>>                        <param-name>applicationClassName</param-name>
>>                      
>>  <param-value>org.apache.camel.example.WicketApplication</param-value>
>>                </init-param>
>>        </filter>
>>
>>        <filter-mapping>
>>                <filter-name>wicket.reportincident.web</filter-name>
>>                <url-pattern>/*</url-pattern>
>>        </filter-mapping>
>> </web-app>
>>
>> Regards,
>>
>> Charles
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog :  http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> --
>> View this message in context:
>> http://www.nabble.com/How-the-bundle-contgext-is-loaded-in-SMX4----tp22804998p22804998.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/How-the-bundle-contgext-is-loaded-in-SMX4----tp22808028p22824401.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.