As you recommended, I try to use the RoutingSlip, but get this error :-(

------------------------------------------
Apache ServiceMix ESB: 3.0-M1

Loading Apache ServiceMix from file: servicemix_eip_http_echo.xml
INFO - ComponentMBeanImpl.init(184) | Initializing component:
#SubscriptionManager#
INFO - DeploymentService.buildState(683) | Restoring service assemblies
INFO - JBIContainer.init(508) | ServiceMix JBI Container
(http://servicemix.org/) name: ServiceMix running version: 3.0-
M1
INFO - ComponentMBeanImpl.init(184) | Initializing component: httpReceiver
INFO - JCLLoggerAdapter.info(216) | Logging to
[EMAIL PROTECTED] via org.mortbay.log.Slf4jLog
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jbi' defined in file [C:
\lbin\servicemix-3.0-M1\play\http-binding\servicemix_eip_http_echo.xml]:
Initialization of bean failed; nested exception
 is java.lang.IllegalArgumentException: Component name: servicemix-eip is
bound to an object which is not a JBI componen
t, it is of type: javax.xml.namespace.QName
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in file [C:\lbin\se
rvicemix-3.0-M1\play\http-binding\servicemix_eip_http_echo.xml]:
Initialization of bean failed; nested exception is java
.lang.IllegalArgumentException: Component name: servicemix-eip is bound to
an object which is not a JBI component, it is
 of type: javax.xml.namespace.QName
java.lang.IllegalArgumentException: Component name: servicemix-eip is bound
to an object which is not a JBI component, i
t 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(AbstractAutowi
reCapableBeanFactory.java:1059)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
leBeanFactory.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(DefaultListable
BeanFactory.java:275)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:1
49)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:4
8)
        at org.apache.servicemix.Main.main(Main.java:74)
        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)
---------------------

I've following servicemix.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
xmlns:eip="http://servicemix.apache.org/eip/1.0"; xmlns:test="http://test";>
        <sm:container id="jbi" rootDir="./wdir" useMBeanServer="true"
createMBeanServer="true" installationDirPath="./install"
deploymentDirPath="./deploy" dumpStats="true" statsInterval="10"
flowName="seda">
                <sm:activationSpecs>
                        <sm:activationSpec id="httpReceiver" 
service="test:httpBinding"
endpoint="httpReceiver" destinationService="test:routingSlip">
                                <sm:component>
                                        <bean 
class="org.apache.servicemix.components.http.HttpConnector">
                                                <property name="host" 
value="localhost"/>
                                                <property name="port" 
value="8912"/>
                                        </bean>
                                </sm:component>
                        </sm:activationSpec>
                        <sm:activationSpec id="servicemix-eip">>
                                <sm:component>
                                        <eip:component>
                                                <eip:endpoints>
                                                        
<eip:static-routing-slip service="test:routingSlip"
endpoint="endpoint">
                                                                <eip:targets>
                                                                        
<eip:exchange-target service="test:echo"/>
                                                                        
<eip:exchange-target service="test:echo"/>
                                                                </eip:targets>
                                                        
</eip:static-routing-slip>
                                                </eip:endpoints>
                                        </eip:component>
                                </sm:component>
                        </sm:activationSpec>
                        <sm:activationSpec id="echo" service="test:echo" 
endpoint="endpoint">
                                <sm:component>
                                        <bean 
class="org.apache.servicemix.components.util.EchoComponent"/>
                                </sm:component>
                        </sm:activationSpec>
                </sm:activationSpecs>
        </sm:container>
</beans>

What I am doing wrong?
--
View this message in context: 
http://www.nabble.com/Route+and+transform+SOAP+RPCs-t1563241.html#a4547847
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to