amazon web services - Error Spring integration xsd for aws sqs -
i'm getting error:
caused by: org.xml.sax.saxparseexception; linenumber: 16; columnnumber: 44; cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'aws-messaging:sqs-async-client'. @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.createsaxparseexception(errorhandlerwrapper.java:203) @ com.sun.org.apache.xerces.internal.util.errorhandlerwrapper.error(errorhandlerwrapper.java:134) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:396) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:327) @ com.sun.org.apache.xerces.internal.impl.xmlerrorreporter.reporterror(xmlerrorreporter.java:284) @ com.sun.org.apache.xerces.internal.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror(xmlschemavalidator.java:452) @ com.sun.org.apache.xerces.internal.impl.xs.xmlschemavalidator.reportschemaerror(xmlschemavalidator.java:3230) @ com.sun.org.apache.xerces.internal.impl.xs.xmlschemavalidator.handlestartelement(xmlschemavalidator.java:1911) @ com.sun.org.apache.xerces.internal.impl.xs.xmlschemavalidator.emptyelement(xmlschemavalidator.java:760) @ com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.scanstartelement(xmlnsdocumentscannerimpl.java:351) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(xmldocumentfragmentscannerimpl.java:2784) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(xmldocumentscannerimpl.java:602) @ com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.next(xmlnsdocumentscannerimpl.java:112) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(xmldocumentfragmentscannerimpl.java:505) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(xml11configuration.java:841) @ com.sun.org.apache.xerces.internal.parsers.xml11confin.parse(xml11configuration.java:770) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(xmlparser.java:141) @ com.sun.org.apache.xerces.internal.parsers.domparser.parse(domparser.java:243) @ com.sun.org.apache.xerces.internal.jaxp.documentbuilderimpl.parse(documentbuilderimpl.java:339) @ org.springframework.beans.factory.xml.defaultdocumentloader.loaddocument(defaultdocumentloader.java:76) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloaddocument(xmlbeandefinitionreader.java:429) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:391)
i'm using following xsd's:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:aws-messaging="http://www.springframework.org/schema/c" xmlns:int-aws="http://www.springframework.org/schema/c" xmlns:aws-context="http://www.springframework.org/schema/p" xmlns:int="http://www.springframework.org/schema/integration" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd" default-lazy-init="true"> <description> connects sqs, fetches compressed payload , sends uncompress channel step 1 of flow </description> <aws-messaging:sqs-async-client id="sqs"/> <aws-context:context-credentials> <aws-context:simple-credentials access-key="${aws.accesskey}" secret-key="${aws.secretkey}"/> </aws-context:context-credentials>
this used work before. used template: https://github.com/spring-projects/spring-integration-aws/blob/master/src/test/java/org/springframework/integration/aws/config/xml/sqsmessagehandlerparsertests-context.xml
can please help? did change?
look , have namespace prefixes:
xmlns:aws-messaging="http://www.springframework.org/schema/c" xmlns:int-aws="http://www.springframework.org/schema/c" xmlns:aws-context="http://www.springframework.org/schema/c"
and has be:
xmlns:int-aws="http://www.springframework.org/schema/integration/aws" xmlns:aws-messaging="http://www.springframework.org/schema/cloud/aws/messaging" xmlns:aws-context="http://www.springframework.org/schema/cloud/aws/context"
plus have add schemalocation
s well:
http://www.springframework.org/schema/integration/aws http://www.springframework.org/schema/integration/aws/spring-integration-aws.xsd http://www.springframework.org/schema/cloud/aws/messaging http://www.springframework.org/schema/cloud/aws/messaging/spring-cloud-aws-messaging.xsd http://www.springframework.org/schema/cloud/aws/context http://www.springframework.org/schema/cloud/aws/context/spring-cloud-aws-context.xsd
Comments
Post a Comment