-
Aug 21st, 2008, 09:06 AM
#1
OSGi web module failed in S2AP
I have a web module which will get reference to an OSGi service and expose it as a web service (CXF enabled). All the related modules work in Equinox with Spring DM 1.1.1 support (I have updated from version 1.0 to the current release). While deploying all the modules in S2AP, only the web module didn't work.
I will paste content of web.xml and applicationContext.xml to see if I can get any help to solve the problem.
web.xml:
<web-app>
<display-name>com.ng.device.video.webservice</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<context-param>
<param-name>contextClass</param-name>
<param-value>
com.springsource.platform.web.dm.PlatformOsgiBundl eXmlWebApplicationContext
</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListe ner
</listener-class>
</listener>
...
</web-app>
applicationContext.xml:
<osgi:list id="osgi.service.video.list" interface="com.xxx.device.video.ImageGrabber" cardinality="0..N"/>
...
Here is the stacktrace: (I have to removed part of the stacktrace because of this forum limit)
[2008-08-21 09:54:52.419] latform-tomcat-thread-20 video.war-0 I Trace configuration: {com.springsource.platform.*=WARN, *=INFO}
[2008-08-21 09:54:55.061] async-delivery-thread-1 amework.beans.factory.support.DefaultListableBeanF actory.unknown I Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@aa045f: defining beans [osgi.service.video.list,video.serviceProvider,cxf, org.apache.cxf.bus.spring.BusWiringBeanFactoryPost Processor,org.apache.cxf.bus.spring.Jsr250BeanPost Processor,org.apache.cxf.bus.spring.BusExtensionPo stProcessor,org.apache.cxf.resource.ResourceManage r,org.apache.cxf.configuration.Configurer,org.apac he.cxf.binding.BindingFactoryManager,org.apache.cx f.transport.DestinationFactoryManager,org.apache.c xf.transport.ConduitInitiatorManager,org.apache.cx f.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManag er,org.apache.cxf.workqueue.WorkQueueManager,org.a pache.cxf.buslifecycle.BusLifeCycleManager,org.apa che.cxf.endpoint.ServerRegistry,org.apache.cxf.end point.ServerLifeCycleManager,org.apache.cxf.endpoi nt.ClientLifeCycleManager,org.apache.cxf.transport s.http.QueryHandlerRegistry,org.apache.cxf.endpoin t.EndpointResolverRegistry,org.apache.cxf.headers. HeaderManager,org.apache.cxf.catalog.OASISCatalogM anager,org.apache.cxf.endpoint.ServiceContractReso lverRegistry,org.apache.cxf.binding.soap.SoapBindi ngFactory,org.apache.cxf.binding.soap.SoapTranspor tFactory,org.apache.cxf.binding.soap.customEditorC onfigurer,org.apache.cxf.transport.servlet.Servlet TransportFactory,videoService,videoService2]; root of factory hierarchy
[2008-08-21 09:54:55.092] async-delivery-thread-1 amework.beans.factory.support.DefaultListableBeanF actory.unknown I Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@aa045f: defining beans [osgi.service.video.list,video.serviceProvider,cxf, org.apache.cxf.bus.spring.BusWiringBeanFactoryPost Processor,org.apache.cxf.bus.spring.Jsr250BeanPost Processor,org.apache.cxf.bus.spring.BusExtensionPo stProcessor,org.apache.cxf.resource.ResourceManage r,org.apache.cxf.configuration.Configurer,org.apac he.cxf.binding.BindingFactoryManager,org.apache.cx f.transport.DestinationFactoryManager,org.apache.c xf.transport.ConduitInitiatorManager,org.apache.cx f.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManag er,org.apache.cxf.workqueue.WorkQueueManager,org.a pache.cxf.buslifecycle.BusLifeCycleManager,org.apa che.cxf.endpoint.ServerRegistry,org.apache.cxf.end point.ServerLifeCycleManager,org.apache.cxf.endpoi nt.ClientLifeCycleManager,org.apache.cxf.transport s.http.QueryHandlerRegistry,org.apache.cxf.endpoin t.EndpointResolverRegistry,org.apache.cxf.headers. HeaderManager,org.apache.cxf.catalog.OASISCatalogM anager,org.apache.cxf.endpoint.ServiceContractReso lverRegistry,org.apache.cxf.binding.soap.SoapBindi ngFactory,org.apache.cxf.binding.soap.SoapTranspor tFactory,org.apache.cxf.binding.soap.customEditorC onfigurer,org.apache.cxf.transport.servlet.Servlet TransportFactory,videoService,videoService2]; root of factory hierarchy
[2008-08-21 09:54:55.092] async-delivery-thread-1 atform.web.dm.PlatformOsgiBundleXmlWebApplicationC ontext.unknown E Refresh error
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'osgi.service.video.list': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Required 'bundleContext' property was not set.
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1337)
at
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules