It may be strange, but very usefull for other people, thx . What I do not understand is that the commons-httpclient is already bundled in the component installer, so you should not need to put it in the sar...
Cheers, Guillaume Nodet On 6/20/06, Andreas Held <[EMAIL PROTECTED]> wrote:
Although it is strange to answer ones own question, nevertheless. I managed to circumvent this problem by simply deleting all the occurrences of commons-httpclient from the JBoss distribution, and bundling commons-httpclient-3.0 with the ServiceMix sar. > Hi > > This indeed solved my problem, thank you very much. However, it just led > me to the next problem, which is: > > Caused by: org.springframework.beans.factory.BeanCreationException: > Error creating bean with name 'jbi' defined in URL > [file:/C:/Programs/jboss-4.0.3SP1/server/default/deploy/WS-pojo-sm.xml]: > Initialization of bean failed; nested exception is > java.lang.NoSuchFieldError: ANY_HOST_CONFIGURATION > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:370) > > > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:226) > > > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:147) > > > I read somewhere that this is to do with the different versions of > HttpClient used in ServiceMix (3.0) and in JBoss (2.0). I wonder if > anybody has solved this problem? > > Regards > > Andreas > > > > If you use servicemix-http in the main servicemix.xml configuration > > file, > > you > > have to unzip all the jars inside the servicemix-http-installer.zip > > (in ./components) > > in the lib/optional folder. > > > > Cheers, > > Guillaume Nodet > > > > On 6/19/06, Andreas Held <[EMAIL PROTECTED]> wrote: > > > > > > Hi > > > > > > I am trying to connect an external web service, created in JBoss, to > > > ServiceMix. The web service implements a simple echo service and is up > > > and running, I tested it with an external client. In the > servicemix.xml > > > file I tried to declare the web service as follows: > > > > > > <sm:activationSpec id="msgReceiver"> > > > <sm:component> > > > <http:component> > > > <http:endpoints> > > > <http:endpoint > > > service="foo:MyProviderService" > > > endpoint="myProvider" > > > role="provider" > > > > > > locationURI=" > > > http://hldpc:8080/igtmessaging_ejb/BusinessMessageEndpointPort" > > > wsdlResource="file:EchoBean.wsdl" /> > > > </http:endpoints> > > > </http:component> > > > </sm:component> > > > </sm:activationSpec> > > > > > > However, upon deployment of this file I always et the following > exception: > > > > > > Caused by: org.springframework.beans.factory.BeanCreationException: > > > Error creating bean with name 'jbi' defined in URL [ > > > > file:/C:/Programs/jboss-4.0.3SP1/server/default/deploy/WS-pojo-sm.xml]: > > > Initialization of bean failed; nested exception > > > is java.lang.IllegalArgumentException: Component name: msgReceiver is > > > bound to an object which is not a JBI component, it is of type: > > > javax.xml.namespace.QName > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > > > > (AbstractAutowireCapab > > > leBeanFactory.java:370) > > > at > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean( > > > AbstractBeanFactory.java:226) > > > at > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean( > > > AbstractBeanFactory.java:147) > > > at > > > > > > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons > > > > (DefaultListable > > > BeanFactory.java:275) > > > > > > Obviously I am doing something wrong here, but I got stuck. Any help > > > avaialable? > > > > > > Regards > > > > > > Andreas > > > > > > > > > > >
