Announcement Announcement Module

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Apache Felix, Spring DM, JAX-WS Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Apache Felix, Spring DM, JAX-WS

    im trying to expose an osgi service also as a web service. The osgi service is accessible but the web service is not started.

    My Bean Configuration:
    <bean id="ReverseStringABC" class="" />
    <osgi:service ref="ReverseStringABC" interface="">
    <entry key="Key1" value="aStringValue" />
    <entry key="Key2" value="anOtherStringValue" />

    <bean class="org.springframework.remoting.jaxws.SimpleJa xWsServiceExporter">
    <property name="baseAddress" value="http://localhost:8080/" />
    <bean id="ReverseStringWS" class=" t">

    The Log:
    27.08.2009 11:46:47 ationContext prepareRefresh
    INFO: Refreshing [email protected]: display name [OsgiBundleXmlApplicationContext( i.spring.ReverseString, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Thu Aug 27 11:46:47 CEST 2009]; root of context hierarchy
    27.08.2009 11:46:47 sgiBundleApplicationContext unpublishContextAsOsgiService
    INFO: Unpublishing application context OSGi service for bundle ReverseString (
    27.08.2009 11:46:47 org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from URL [bundle://14.3:0/META-INF/spring/reversestring-osgi.xml]
    27.08.2009 11:46:47 org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from URL [bundle://14.3:0/META-INF/spring/reversestring.xml]
    27.08.2009 11:46:47 ationContext obtainFreshBeanFactory
    INFO: Bean factory for application context [ [email protected]]: [email protected]
    27.08.2009 11:46:47 org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor stageOne
    INFO: No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext( i.spring.ReverseString, config=osgibundle:/META-INF/spring/*.xml)
    27.08.2009 11:46:47 istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in [email protected]: defining beans [ReverseStringABC,org.springframework.osgi.service.,org.spri ngframework.remoting.jaxws.SimpleJaxWsServiceExpor ter#0,ReverseStringWS,reverseBean]; root of factory hierarchy
    27.08.2009 11:46:47 OsgiServiceFactoryBean registerService
    INFO: Publishing service under classes [{}]
    27.08.2009 11:46:47 getRequestWrapperClass
    INFO: Dynamically creating request wrapper Class
    27.08.2009 11:46:47 getResponseWrapperClass
    INFO: Dynamically creating response wrapper bean Class
    27.08.2009 11:46:47 sgiBundleApplicationContext publishContextAsOsgiServiceIfNecessary
    INFO: Publishing application context as OSGi service with properties { osgi.spring.ReverseString,, Bundle-Version=1.0.0}
    27.08.2009 11:46:47 .DefaultOsgiBundleApplicationContextListener onOsgiApplicationEvent
    INFO: Application context successfully refreshed (OsgiBundleXmlApplicationContext( gi.spring.ReverseString, config=osgibundle:/META-INF/spring/*.xml))

    There are some objects for the web service created but the web service is not reachable (started) I think.

    Any hint is welcome.


  • #2
    Felix, from the logs it looks like the bundle and its context have started just fine. Why your service is not available, I can't tell.
    Try the web services piece first outside OSGi and once it works there, try to slowly migrate it to OSGi.
    From your post, the OSGi side of things looks good.