2 Replies Latest reply on Dec 6, 2009 4:14 PM by lekkie_lomotayo

    Is this a bug in SMX for cxfbc:provider?

    lekkie_lomotayo

      I was trying to isntall the sample cxf-wsdl-first-osgi-package which installed fine. However, the readme suggests it can be modified to suite personal use, I decided to create a copy of the project but this time I needed only the cxf-bc module (So i removed the rest).

       

      I modified only the bean.xml file changing the consumer to a provider and supply the appropriate attributes

       

      See bean.xml

      <cxfbc:provider wsdl="classpath:Service.wsdl"

                       locationURI="http://webserviceurl.com/Service.asmx"

                              Service="nau:Service"

                              endpoint="ServiceSoap"/>

       

       

      but after installation, it displayed the err below:

       

      karaf@root> osgi:install -s mvn:org.apache.servicemix.examples.cxf-wsdl-first-os

      gi-package/wsdl-first-cxfbc-bundle

       

      karaf@root> Exception in thread "SpringOsgiExtenderThread-71" java.lang.IllegalS

      tateException: BeanFactory not initialized or already closed - call 'refresh' be

      fore accessing beans via the ApplicationContext

              at org.springframework.context.support.AbstractRefreshableApplicationCon

      text.getBeanFactory(AbstractRefreshableApplicationContext.java:153)

              at org.springframework.osgi.extender.internal.dependencies.startup.Depen

      dencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextEx

      ecutor.java:345)

              at org.springframework.osgi.extender.internal.dependencies.startup.Depen

      dencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExe

      cutor.java:401)

              at org.springframework.osgi.extender.internal.dependencies.startup.Depen

      dencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContex

      tExecutor.java:287)

              at org.springframework.osgi.extender.internal.dependencies.startup.Depen

      dencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContext

      Executor.java:175)

              at org.springframework.osgi.context.support.AbstractDelegatedExecutionAp

      plicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderLis

      tener$2.run(ContextLoaderListener.java:718)

              at java.lang.Thread.run(Thread.java:595)

       

       

      Kindly help out.

       

      Edited by: lekkie on Dec 6, 2009 1:39 PM