THis won't work.
You need to deploy only the wsdl, or fill the needed
informations (jndi connection factory, destination ...)
in the xbean.xml file.

On 12/6/06, Terry Cox <[EMAIL PROTECTED]> wrote:
Ok, getting somewhere with the provider:

If I set up a lw component like this:

<jms:endpoint service="ott:lOut"
               endpoint="soap"
               role="provider"
               soap="true"
                                      soapVersion="1.1"
              connectionFactory="#connectionFactory"
              destinationStyle="queue"
              jmsProviderDestinationName="pAPI"
              wsdlResource="classpath:pAPI.wsdl" />

and send it a message:

<echo xmlns="blah"><in0 xmlns="blah">hello</in0></echo>

it calls the echo operation on my Xfire web service.

If, however, I add the jms and jbi extensions to my WSDL and try to
deploy like:

<jms:endpoint service="ott:lOut"
              endpoint="soap"
              wsdlResource="classpath:pAPI.wsdl" />

I get:

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jbi' defined in class path resource
[com/specsavers/ott/logos/testconfig.xml]: Invocation of init method
failed; nested exception is javax.jbi.JBIException: Error calling start
Caused by: javax.jbi.JBIException: Error calling start
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.start(AsyncBaseLifeCycle.java:243)
        at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.java:290)
        at
org.apache.servicemix.jbi.framework.ComponentRegistry.setInitialRunningStateFromStart(ComponentRegistry.java:157)
        at
org.apache.servicemix.jbi.framework.ComponentRegistry.start(ComponentRegistry.java:74)
        at org.apache.servicemix.jbi.framework.Registry.start(Registry.java:126)
        at
org.apache.servicemix.jbi.container.JBIContainer.start(JBIContainer.java:590)
        at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:80)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:161)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:51)
        at
com.specsavers.ott.logos.LogosBindingOutTest.createBeanFactory(LogosBindingOutTest.java:149)
        at
com.specsavers.ott.logos.LogosBindingOutTest.setUp(LogosBindingOutTest.java:122)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
        at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.NullPointerException
        at
org.apache.servicemix.jms.AbstractJmsProcessor.start(AbstractJmsProcessor.java:74)
        at 
org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:348)
        at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
        at
org.apache.servicemix.common.DefaultComponent.doStart(DefaultComponent.java:332)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.start(AsyncBaseLifeCycle.java:235)
        ... 32 more




--
Cheers,
Guillaume Nodet

Reply via email to