> Hi,
>
> I tried follow your comments on various threads related to invoking 
an external webservice. Please find below the configuration which is 
causing an excpetion.
>
> === Config ====Begins
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
>         xmlns="http://xbean.org/schemas/spring/1.0";
>         xmlns:sm="http://servicemix.apache.org/config/1.0";
>         xmlns:jms="http://servicemix.apache.org/jms/1.0";
>         xmlns:eip="http://servicemix.apache.org/eip/1.0";
>         xmlns:http="http://servicemix.apache.org/http/1.0";
>         xmlns:foo="http://servicemix.apache.org/cheese";
>         xmlns:ns="http://www.webserviceX.NET/";>
>
>
>         <!-- Import the required configuration files -->
>         <import resource="conf/activemq.xml" />
>         <import resource="conf/jndi.xml" />
>         <import resource="conf/jmx.xml" />
>         <import resource="classpath:tx.xml" />
>         <import resource="classpath:security.xml" />
>
>         <!-- JBI container -->
>
>         <sm:container
>                 id="jbi"
>                 useMBeanServer="true"
>                 dumpStats="true"
>                 statsInterval="10"
>                 flowName="st">
>                 <sm:activationSpecs>
>
>
>
>
>                         <!-- Expose  Stock Quote Webservice -->
>                         <sm:activationSpec 
componentName="StockQuote">
>                                 <sm:component>
>                                         <http:component>
>                                                 <http:endpoints>
>                                                         
<http:endpoint
>                                                                 
service="ns:StockQuote"
>                                                                 
endpoint="StockQuoteSoap"
>                                                                 
soap="true"
>                                                                 
role="provider"
>                                                                 
locationURI="http//www.webservicex.net/stockquote.asmx"
>                                                                 
wsdlResource="http://www.webservicex.net/stockquote.asmx?wsdl"; />
>                                                 </http:endpoints>
>                                         </http:component>
>                                 </sm:component>
>                         </sm:activationSpec>
>
>
>
>                         <!--    HTTP Binding - Message Consumer         
-->
>                         <sm:activationSpec 
componentName="HttpInputReceiver">
>                                 <sm:component>
>                                         <http:component>
>                                                 <http:endpoints>
>                                                         
<http:endpoint
>                                                                 
service="foo:StockQuote"
>                                                                 
endpoint="StockQuoteSoap"
>                                                                 
targetService="ns:StockQuote"
>                                                                 
soap="true"
>                                                                 
role="consumer"
>                                                                 
defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                                                                 
locationURI="http://localhost:9091/"; />
>                                                 </http:endpoints>
>                                         </http:component>
>                                 </sm:component>
>                         </sm:activationSpec>
>
>                 </sm:activationSpecs>
>         </sm:container>
> </beans>
>
> ==== Config === Ends ====
>
> Exception
> =========
> Caught: org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'jbi' defined in file [D:\Home\POSSIS\ESB\App
> licationPattern\DirectlyIntegaratedSingleChannel\smx.xml]: Invocation 
of init method failed; nested exception is javax.jbi.JBIException: Err
> or calling start
> org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'jbi' defined in file
[D:\Home\POSSIS\ESB\Application
> Pattern\DirectlyIntegaratedSingleChannel\smx.xml]: Invocation of init 
method failed; nested exception is javax.jbi.JBIException: Error calli
> ng start
> Caused by: javax.jbi.JBIException: Error calling start
>         at 
org.apache.servicemix.common.AsyncBaseLifeCycle.start(AsyncBaseLifeCycle.java:213)
>         at 
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.java:289)
>         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:119)
>         at 
org.apache.servicemix.jbi.container.JBIContainer.start(JBIContainer.java:592)
>         at 
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:79)
>         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory
> .java:957)
>         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.ja
> va:924)
>         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:4
> 15)
>         at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)
>         at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
>         at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239)
>         at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155)
>         at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:303
> )
>         at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
>         at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:149)
>         at 
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:100)
>         at org.apache.servicemix.Main.main(Main.java:80)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
>         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>         at 
org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
> Caused by: java.lang.NullPointerException
>         at 
org.apache.servicemix.http.processors.ProviderProcessor.start(ProviderProcessor.java:231)
>         at 
org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:351)
>         at 
org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:50)
>         at 
org.apache.servicemix.http.HttpSpringComponent$LifeCycle.doStart(HttpSpringComponent.java:93)
>         at 
org.apache.servicemix.common.AsyncBaseLifeCycle.start(AsyncBaseLifeCycle.java:205)
>         ... 25 more
>
>
> Appreciate, if you could on this.

Best Regards,
Arul

-- 
View this message in context: 
http://www.nabble.com/Call-an-external-webservice-tf3179192s12049.html#a8821822
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to