2016-08-02 10 views
0

を使用しているとき、私はバッチ-int型を使用しようとしています:ジョブ起動-ゲートウェイが、私は次のエラーを取得する:エラー:ジョブ起動・ゲートウェイスプリングバッチ

Exception in thread "main"  org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:spring/integration-context.xml] 
Offending resource: class path resource [spring/application-context.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 68 in XML document from class path resource [spring/integration-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; 
lineNumber: 68; columnNumber: 156; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'batch-int:job-launching-gateway'. 

私のXMLが含まれています次

<beans:beans xsi:schemaLocation=" http://www.springframework.org/schema/batch-integration 
http://www.springframework.org/schema/batch-integration/spring-batch-integration.xsd 
http://www.springframework.org/schema/batch 
http://www.springframework.org/schema/batch/spring-batch.xsd 
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 
http://www.springframework.org/schema/integration/file 
http://www.springframework.org/schema/integration/file/spring-integration-file.xsd " 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:int-file="http://www.springframework.org/schema/integration/file" 
     xmlns:int="http://www.springframework.org/schema/integration" 
     xmlns:beans="http://www.springframework.org/schema/beans" 
     xmlns:batch-int="http://www.springframework.org/schema/batch-integration" 
     xmlns:batch="http://www.springframework.org/schema/batch" 
     xmlns="http://www.springframework.org/schema/beans"> 

、エラーがで発生するラインである:

<batch-int:job-launching-gateway job-launcher="jobLauncher" reply-channel="jobLaunchReplyChannel" request-channel="channelStart"/> 

チャネル "channelStart" はこの上で定義しています。

私は春のバッチに慣れているので、どんな助けも素晴らしいと思います。クラスパスには、バネ一括統合、バネバッチコア、バネバッチインフラストラクチャ、バネ統合イベントもあります。

+0

可能な重複:http://stackoverflow.com/questions/13589470/the-matching-wildcard-is-strict-but-no-declaration-can-be-found-for-element-co あなたが倍増しましたxml名前空間のサポートを確認しますか? http://docs.spring.io/spring-batch/reference/html/springBatchIntegration.html –

+0

こんにちは、はい、xml名前空間を確認しました。 xmlの "batch-in:job-launching-gateway"にカーソルを合わせると、 "このカスタムSpring Beanはまだ解析されていません"というメッセージが表示されます。それを解析しようとすると、次のようなメッセージが表示されます。「名前空間のカスタムハンドラが見つかりません。http://www.springframework.org/schema/batch-integration」 – sadWal

答えて

0

私はこの問題を解決しました。私は当初、スプリングバッチコアとスプリングバッチ統合の両方で異なるバージョンを持っていました。私がこれら2つの同じバージョンを作ったとき、エラーは現れなかった。

関連する問題