There may be conflicts with xbean version used by servicemix 2.0.
Servicemix components require xbean >= 2.2.
Cheers,
Guillaume Nodet
On 5/12/06, mqaiserm <[EMAIL PROTECTED]> wrote:
Running Servicemix-2.0.2 and getting this error :
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating
bean with name 'jbi' defined in file
[C:\servicemix-2.0.2\examples\jms-binding\s
ervicemix-revolution.xml]: Initialization of bean failed; nested exception
is ja
va.lang.IllegalArgumentException: Component name:
ID:qmehmood-lap-4159-114744833
7203-0:0 is bound to an object which is not a JBI component, it is of type:
java
x.xml.namespace.QName
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'jbi' defined in file
[C:\servicemix-2.0.2\examples\jms-binding\servicemi
x-revolution.xml]: Initialization of bean failed; nested exception is
java.lang.
IllegalArgumentException: Component name:
ID:qmehmood-lap-4159-1147448337203-0:0
is bound to an object which is not a JBI component, it is of type:
javax.xml.na
mespace.QName
java.lang.IllegalArgumentException: Component name:
ID:qmehmood-lap-4159-1147448
337203-0:0 is bound to an object which is not a JBI component, it is of
type: ja
vax.xml.namespace.QName
at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContai
ner.java:786)
at
org.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(Sp
ringJBIContainer.java:52)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.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.refres
h(AbstractApplicationContext.java:318)
the servicmix.xml I am deploying is :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xbean.org/schemas/spring/1.0"
xmlns:spring="http://xbean.org/schemas/spring/1.0"
xmlns:sm="http://servicemix.org/config/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xbean.org/schemas/spring/1.0
../../conf/spring-beans.xsd
http://servicemix.org/config/1.0
../../conf/servicemix.xsd"
xmlns:my="http://servicemix.org/demo/"
xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"
xmlns:http="http://servicemix.apache.org/http/1.0">
<!-- the JBI container -->
<sm:container spring:id="jbi"
useMBeanServer="true"
createMBeanServer="true"
dumpStats="true"
flowName="jms"
statsInterval="10"
transactionManager="#transactionManager">
<sm:activationSpecs>
<!-- Subscribe to a JMS destination -->
<sm:activationSpec componentName="inputReceiver"
service="my:inputReceiver"
destinationService="my:outputSender">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.servicemix.components.jms.JmsInUsingJCABinding">
<property name="jcaContainer" ref="jencks"/>
<property name="activationSpec">
<bean class="org.activemq.ra.ActiveMQActivationSpec">
<property name="destination"
value="com.rhg.servicemix.messaging.errorLogging"/>
<property name="destinationType" value="javax.jms.Topic"/>
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
<!-- Publish the result to a JMS destination -->
<sm:activationSpec componentName="outputSender"
service="my:outputSender">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.servicemix.components.jms.JmsSenderComponent">
<property name="template">
<bean class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory">
<ref local="jmsFactory"/>
</property>
<property name="defaultDestinationName"
value="com.rhg.servicemix.messaging.errorLoggingResult"/>
<property name="pubSubDomain" value="true"/>
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
<sm:activationSpec componentName="jmsTrace" service="my:jmsTrace"
destinationService="my:savetodb">
<sm:component>
<bean class="org.servicemix.components.jms.JmsInUsingJCABinding">
<property name="jcaContainer" ref="jencks"/>
<property name="activationSpec">
<bean class="org.activemq.ra.ActiveMQActivationSpec">
<property name="destination"
value="com.rhg.servicemix.messaging.errorLoggingResult"/>
<property name="destinationType" value="javax.jms.Topic"/>
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
<sm:activationSpec componentName="trace" service="my:savetodb">
<sm:component>
<bean class="com.rhg.infrastructure.jms.MessageReceiverImpl"/>
</sm:component>
</sm:activationSpec>
<sm:activationSpec>
<sm:component>
<jsr181:component>
<jsr181:endpoints>
<jsr181:endpoint
pojoClass="com.rhg.infrastructure.webservices.MessagingService"
annotations="none" service="my:MessageSender" endpoint="MessageService"/>
</jsr181:endpoints>
</jsr181:component>
</sm:component>
</sm:activationSpec>
<sm:activationSpec>
<sm:component>
<http:component>
<http:endpoints>
<http:endpoint service="my:MessageSender"
endpoint="MessageService"
role="consumer"
defaultOperation="sendMessage2"
locationURI="http://localhost:8194/errorLoggingService/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true" />
</http:endpoints>
</http:component>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
<!-- the JCA container -->
<bean id="jencks" class="org.jencks.JCAContainer" singleton="true">
<!-- lets use the default configuration of work manager and transaction
manager-->
<property name="bootstrapContext">
<bean class="org.jencks.factory.BootstrapContextFactoryBean">
<property name="threadPoolSize" value="25"/>
</bean>
</property>
<!-- the JCA Resource Adapter -->
<property name="resourceAdapter">
<bean id="activeMQResourceAdapter"
class="org.activemq.ra.ActiveMQResourceAdapter" singleton="true">
<property name="serverUrl" value="tcp://localhost:61616"/>
</bean>
</property>
</bean>
<!-- message broker -->
<bean id="broker" class="org.activemq.spring.BrokerFactoryBean">
<property name="config" value="activemq.xml"/>
</bean>
<bean id="transactionContextManager"
class="org.jencks.factory.TransactionContextManagerFactoryBean"/>
<bean id="transactionManager"
class="org.jencks.factory.GeronimoTransactionManagerFactoryBean" />
<bean id="jmsFactory" class="org.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.activemq.ActiveMQConnectionFactory">
<property name="brokerURL">
<value>tcp://localhost:61616</value>
</property>
</bean>
</property>
</bean>
</beans>
I have included servicemix-http...jar etc in my classpath also, Any idea ?
--
View this message in context:
http://www.nabble.com/java.lang.IllegalArgumentException%3A-Component-name-t1608536.html#a4360634
Sent from the ServiceMix - User forum at Nabble.com.
--
Cheers,
Guillaume Nodet