Spring Beans Problems when defining an integration scenario
I created a simple integration scenarioCode:
lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;
lt;beans:beans xmlns=quot;schema/integrationquot;
xmlns:xsi=quot;2001/XMLSchema-instancequot;
xmlns:beans=quot;schema/beansquot;
xmlns:int-xml=quot;schema/integration/xmlquot;
xsi:schemaLocation=quot;schema/integration/xml schema/integration/xml/spring-integration-xml-2.0.xsd
schema/integration schema/integration/spring-integration-2.0.xsd
schema/beans schema/beans/spring-beans-3.0.xsdquot;gt;
lt;channel id=quot;inputChannelquot;gt;
lt;interceptorsgt; lt;wire-tap channel=quot;loggerquot;/gt;
lt;/interceptorsgt;
lt;/channelgt;
lt;channel id=quot;outputChannelquot;gt;
lt;queue capacity=quot;10quot;/gt;
lt;/channelgt;
lt;logging-channel-adapter id=quot;loggerquot; level=quot;DEBUGquot;/gt;
lt;inbound-channel-adapter ref=quot;DbInboundServicequot; method=quot;selectquot; channel=quot;inputChannelquot;gt;
lt;poller fixed-rate=quot;5quot; time-unit=quot;SECONDSquot; /gt;
lt;/inbound-channel-adaptergt;
lt;outbound-channel-adapter channel=quot;outputChannelquot; ref=quot;DbOutboundServicequot; method=quot;insertquot;/gt;
lt;xml:xpath-transformer input-channel=quot;inputChannelquot; output-channel=quot;outputChannelquot; /gt;
lt;beans:bean id=quot;DbInboundServicequot; class=quot;com.infor.ion.plugins.db.adapter.DbConnectorServicequot;gt;
lt;beans:property name=quot;databaseDriverquot; value=quot;net.sourceforge.jtds.jdbc.Driverquot;/gt;
lt;beans:property name=quot;databaseuclquot; value=quot;jdbc:jtds:sqlserver--localhost:1433/TestAppInquot;/gt;
lt;beans:property name=quot;databaseUserquot; value=quot;saquot;/gt;
lt;beans:property name=quot;databasePasswordquot; value=quot;Admin@Inforquot;/gt;
lt;/beans:beangt;
lt;beans:bean id=quot;DbOutboundServicequot; class=quot;com.infor.ion.plugins.db.adapter.DbConnectorServicequot;gt;
lt;beans:property name=quot;databaseDriverquot; value=quot;net.sourceforge.jtds.jdbc.Driverquot;/gt;
lt;beans:property name=quot;databaseuclquot; value=quot;jdbc:jtds:sqlserver--localhost:1433/TestAppOutquot;/gt;
lt;beans:property name=quot;databaseUserquot; value=quot;saquot;/gt;
lt;beans:property name=quot;databasePasswordquot; value=quot;Admin@Inforquot;/gt;
lt;/beans:beangt;
lt;/beans:beansgt;
but I get the following Spring Beans Problem warnings:
Code:
Referenced bean 'org..integration.channel.interceptor.WireTap#0' not found
Referenced bean 'org..scheduling.support.PeriodicTrigger#0' not found
Unable to locate Spring NamespaceHandler for element 'xml:xpath-transformer' of schema namespace 'XML/1998/namespace'
Can anyone tell me what I need to do to get rid of them?
The 'xml' namespace prefix is reserved. For the Spring Integration XML elements use the 'int-xml' prefix which you have declared.
HTH,
Mark
Oeps...sorry...already noticed this and changed the namespace declaration but forgot to modify it here....
But when I correct that it still shows the other two warnings
Code:
Referenced bean 'org..integration.channel.interceptor.WireTap#0' not found
Referenced bean 'org..scheduling.support.PeriodicTrigger#0' not found
I am using STS 2.5.2.RELEASE as my IDE, Spring Integration 2.0.3.RELEASE and Spring 3.0.5.RELEASE.
Thanks for the quick answer,
Tom.
Well, I have the same problem... but the project works without any trouble...
This is my XML:Code:
lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;
lt;beans xmlns=quot;schema/beansquot;
xmlns:xsi=quot;2001/XMLSchema-instancequot;
xmlns:context=quot;schema/contextquot;
xmlns:int=quot;schema/integrationquot;
xmlns:file=quot;schema/integration/filequot;
xmlns:int-sftp=quot;schema/integration/sftpquot;
xsi:schemaLocation=quot;schema/integration schema/integration/spring-integration-2.0.xsd
schema/integration/file schema/integration/file/spring-integration-file-2.0.xsd
schema/beans schema/beans/spring-beans-3.0.xsd
schema/integration/sftp schema/integration/sftp/spring-integration-sftp-2.0.xsd
schema/context schema/context/spring-context-3.0.xsdquot;gt;
lt;context:component-scan base-package=quot;com.sidein.testquot; /gt;
lt;context:annotation-config /gt;
lt;file:inbound-channel-adapter id=quot;filesIn1quot;
directory=quot;file--C:/myDirquot;
prevent-duplicates=quot;truequot;gt;
lt;int:poller id=quot;perido1segundoquot; fixed-delay=quot;1000quot; gt;lt;/int:pollergt;
lt;/file:inbound-channel-adaptergt;
lt;bean id=quot;leerMensajesquot; class=quot;com.sidein.msg.LeerMensajesquot; /gt;
lt;int:service-activator input-channel=quot;filesIn1quot;
ref=quot;leerMensajesquot;
method=quot;leerArchivoquot;/gt;
lt;/beansgt;
In the quot;file:inbound-channel-adapterquot; I have the message quot;Referenced bean 'org..scheduling.support.PeriodicTr igger#0' not foundquot; and in the quot;int:service-activatorquot; I have the message quot;Referenced bean 'org..integration.config.ServiceAct ivatorFactoryBean#0' not foundquot;...
I think maybe it is xsd configuration or something... at the moment, It's working...
epilefreyes, what version of STS are you using?, and what version of Spring Integration?
Thanks,
mark
My STS version: is 2.5.2.RELEASE, my Spring Framework version is 3.1.0.M1 and my Spring integration version is 2.0.3.RELEASE.
Thks for your quick response. |