You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by zackdjones <Jo...@Pragmatics.com> on 2006/12/04 18:45:37 UTC
Link to User's Guide is recursive
Link to User's Guide is recursive
--
View this message in context: http://www.nabble.com/Link-to-User%27s-Guide-is-recursive-tf2755259s12049.html#a7683152
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Link to User's Guide is recursive
Posted by Terry Cox <te...@meta-concepts.com>.
> You need to set the soap="true" attribute on the endpoint.
Yes, I have that already and I have tried explicitly stating the
soapVersion.
The documentation isn't clear how the jms component behaves when SOAP is
involved. I've had a quick look at the source and it seems that the
behaviour is sensitive to config.
If I send a message:
<some-tag>message</some-tag>
Should I get:
<bunch-of-SOAP-stuff><some-tag>message</some-tag></bunch-of-SOAP-stuff>
out of the other side?
Terry
Re: Link to User's Guide is recursive
Posted by Guillaume Nodet <gn...@gmail.com>.
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 <te...@meta-concepts.com> 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
Re: Link to User's Guide is recursive
Posted by Terry Cox <te...@meta-concepts.com>.
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
Re: Link to User's Guide is recursive
Posted by Guillaume Nodet <gn...@gmail.com>.
On 12/5/06, Terry Cox <te...@meta-concepts.com> wrote:
> > Does anyone have an example to hand for W/S over JMS?
>
> To be more specific, I have an external web service that I wish to call
> from ServiceMix over a JMS transport based upon the WSDL definition for
> the service.
>
> I have a servicemix-jms provider that can send messages to a queue and I
> have a web service that reads from the queue, but I can't seem to get
> servicemix-jms to wrap outbound messages in a SOAP envelope.
You need to set the soap="true" attribute on the endpoint.
>
> Terry
>
>
--
Cheers,
Guillaume Nodet
Re: Link to User's Guide is recursive
Posted by Terry Cox <te...@meta-concepts.com>.
> Does anyone have an example to hand for W/S over JMS?
To be more specific, I have an external web service that I wish to call
from ServiceMix over a JMS transport based upon the WSDL definition for
the service.
I have a servicemix-jms provider that can send messages to a queue and I
have a web service that reads from the queue, but I can't seem to get
servicemix-jms to wrap outbound messages in a SOAP envelope.
Terry
Re: Link to User's Guide is recursive
Posted by Terry Cox <te...@meta-concepts.com>.
Talking of broken pages, in the servicemix-jms docs
(http://www.servicemix.org/site/servicemix-jms.html) there is a statement:
"Here is an example of a WSDL:"
And then no WSDL.
Does anyone have an example to hand for W/S over JMS?
Thanks,
Terry
Re: Link to User's Guide is recursive
Posted by Terry Cox <te...@meta-concepts.com>.
> I have fixed it.
Thanks.
Can you also use WSDL deployment for providers?
Terry
Re: Link to User's Guide is recursive
Posted by Guillaume Nodet <gn...@gmail.com>.
I have fixed it.
On 12/4/06, Bruce Snyder <br...@gmail.com> wrote:
> On 12/4/06, Jeff Clark <jc...@laborlogix.com> wrote:
> > On Mon, 2006-12-04 at 10:53 -0700, Bruce Snyder wrote:
> >
> > > On 12/4/06, zackdjones <Jo...@pragmatics.com> wrote:
> > > >
> > > > Link to User's Guide is recursive
> > >
> > > Which link? What page? Any information you can provide would be most helpful.
> > >
> > > Bruce
> >
> >
> > http://servicemix.org/site/users-guide.html
>
> We need to look into why this is happening when the page is
> auto-exported from the wiki. For the time being, please see the actual
> wiki page here:
>
> http://goopen.org/confluence/display/SM/User%27s+Guide
>
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>
--
Cheers,
Guillaume Nodet
Re: Link to User's Guide is recursive
Posted by Bruce Snyder <br...@gmail.com>.
On 12/4/06, Jeff Clark <jc...@laborlogix.com> wrote:
> On Mon, 2006-12-04 at 10:53 -0700, Bruce Snyder wrote:
>
> > On 12/4/06, zackdjones <Jo...@pragmatics.com> wrote:
> > >
> > > Link to User's Guide is recursive
> >
> > Which link? What page? Any information you can provide would be most helpful.
> >
> > Bruce
>
>
> http://servicemix.org/site/users-guide.html
We need to look into why this is happening when the page is
auto-exported from the wiki. For the time being, please see the actual
wiki page here:
http://goopen.org/confluence/display/SM/User%27s+Guide
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/
Re: Link to User's Guide is recursive
Posted by Jeff Clark <jc...@laborlogix.com>.
On Mon, 2006-12-04 at 10:53 -0700, Bruce Snyder wrote:
> On 12/4/06, zackdjones <Jo...@pragmatics.com> wrote:
> >
> > Link to User's Guide is recursive
>
> Which link? What page? Any information you can provide would be most helpful.
>
> Bruce
http://servicemix.org/site/users-guide.html
Jeff
Re: Link to User's Guide is recursive
Posted by Bruce Snyder <br...@gmail.com>.
On 12/4/06, zackdjones <Jo...@pragmatics.com> wrote:
>
> Link to User's Guide is recursive
Which link? What page? Any information you can provide would be most helpful.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/