These exceptions are thrown when the servicemix-jsr181-xx.jar is not in the classpath. Note that if you use the spring configuration, installing the component will not solve this problem: you will have to unzip the jsr181 component installer and add the jars in your classpath.
Cheers, Guillaume Nodet On 3/27/06, Stefan_Klinger <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to run the JSR181SpringTest from within my own project with the > same spring.xml file and the same EchoService2 class and I get the following > error (see below). I am having difficulties keeping my project dependencies > in sync with the overall dependencies of the servicemix-* packages, so my > guess is that I am using an outdated package name. I have been searching for > hours to find it, but with no success. I am also using the HttpComponent > within my project, and it runs fine with my dependencies. Any ideas? > > Thanks, > Stefan > > > Testcase: test(Jsr181SpringTest): Caused an ERROR > Error creating bean with name 'jbi' defined in class path resource > [jsr181/spring.xml]: Initialization of bean failed; nested exception is > java.lang.IllegalArgumentException: Component name: > ID:PC102-2318-1143460087506-0:0 is bound to an object which is not a JBI > component, it is of type: javax.xml.namespace.QName > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'jbi' defined in class path resource [jsr181/spring.xml]: > Initialization of bean failed; nested exception is > java.lang.IllegalArgumentException: Component name: > ID:PC102-2318-1143460087506-0:0 is bound to an object which is not a JBI > component, it is of type: javax.xml.namespace.QName > java.lang.IllegalArgumentException: Component name: > ID:PC102-2318-1143460087506-0:0 is bound to an object which is not a JBI > component, it is of type: javax.xml.namespace.QName > at > org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:885) > at > org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:67) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363) > 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(DefaultListableBeanFactory.java:275) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320) > at > org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158) > at > org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:48) > at Jsr181SpringTest.createBeanFactory(Jsr181SpringTest.java:51) > at > org.apache.servicemix.tck.SpringTestSupport.setUp(SpringTestSupport.java:57) > > > -- > View this message in context: > http://www.nabble.com/Problems-with-JSR181SpringTest-t1348787.html#a3608281 > Sent from the ServiceMix - User forum at Nabble.com. > >
