Hi, Is it possible to modify the following class : org.apache.wicket.spring.SpringWebApplicationFactory in order to retrieve the class org.springframework.osgi.BundleContext where info about class loading are. This is required when Wicket is deployed on OSGI server
Regards, Charles Moulliard SOA Architect cmoulliard wrote: > > Hi, > > When I start my Apache Wicket bundle using Apache Service Mix (based on > Felix and Spring DM), I receive the following error : > Quote: > 16:35:58,415 | DEBUG | localShell | jetty | > .service.internal.util.JCLLogger 85 | started > org.ops4j.pax.web.service.internal.model.ServletMo del-66 > 16:35:58,415 | INFO | localShell | HttpServiceProxy | > ervice.internal.HttpServiceProxy 129 | Registering event listener > [org.springframework.web.context.ContextLoaderListe n...@196dc61] > 16:35:58,415 | DEBUG | localShell | HttpServiceStarted | > vice.internal.HttpServiceStarted 324 | Using context > [ContextModel{id=org.ops4j.pax.web.service.internal > .model.ContextModel-64,name=reportincident,httpContext=org.ops4j.pax.w > eb.extender.war.internal.webapphttpcont...@fe404a, > contextParams={webapp.context=reportincident, > contextClass=org.springframework.osgi.web.context. > support.OsgiBundleXmlWebApplicationContext}}] > 16:35:58,415 | INFO | localShell | /reportincident | > .service.internal.util.JCLLogger 102 | Initializing Spring root > WebApplicationContext > 16:35:58,415 | INFO | localShell | ContextLoader | > mework.web.context.ContextLoader 189 | Root WebApplicationContext: > initialization started > 16:35:58,415 | ERROR | localShell | ContextLoader | > mework.web.context.ContextLoader 215 | Context initialization failed > java.lang.IllegalArgumentException: bundle context should be set before > refreshing the application context > at org.springframework.util.Assert.notNull(Assert.jav a:112) > at org.springframework.osgi.context.support.AbstractD > elegatedExecutionApplicationContext.normalRefresh( > AbstractDelegatedExecutionApplicationContext.java: 179) > at org.springframework.osgi.context.support.AbstractD > elegatedExecutionApplicationContext$NoDependencies > WaitRefreshExecutor.refresh(AbstractDelegatedExecu > tionApplicationContext.java:89) > at org.springframework.osgi.context.support.AbstractD > elegatedExecutionApplicationContext.refresh(Abstra > ctDelegatedExecutionApplicationContext.java:175) > at org.springframework.web.context.ContextLoader.crea > teWebApplicationContext(ContextLoader.java:255) > at org.springframework.web.context.ContextLoader.init > WebApplicationContext(ContextLoader.java:199) > at org.springframework.web.context.ContextLoaderListe > ner.contextInitialized(ContextLoaderListener.java: 45) > Here is the config of my web.xml file : > > Quote: > <?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.ContextLoade > rListener</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> > Any idea to solve this problem is welcome ? > > Regards, > > Charles > __________________ > SOA Architect > > > ----- > Charles Moulliard > SOA Architect > > My Blog : http://cmoulliard.blogspot.com/ > ----- Charles Moulliard SOA Architect My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- View this message in context: http://www.nabble.com/java.lang.IllegalArgumentException%3A-bundle-context-should-be-set--before-refreshing-the-application-context-tp22807226p22825852.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org