GWT、Spring、Maven、および Eclipse はうまく機能していません。開発モードでローカル マシン上で (かなり大きな) プロジェクトを実行しようとしています。アプリケーションを正常にビルドできましたが、Eclipse で実行できません。を使用してコマンドラインから実行すると、プロダクションモードが機能しmvn gwt:run
ます。
xsd スキーマの問題に絞り込みました。<aop:scoped-proxy />
context.xml ファイルで解決できません。
GWT 2.5、Spring 3.0.5-RELEASE、および Maven 3.0.4 を使用しています。クラスパスに spring-aop-3.0.5-RELEASE.jar を明示的に追加しましたが、まだ運がありません。
appContext.xml の先頭へ
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd "
default-init-method="init" default-lazy-init="true">
STDOUT
Nested in org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 131 in XML document from class path resource [appContext.xml] is invalid;
nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c:
The matching wildcard is strict, but no declaration can be found for element
'aop:scoped-proxy'.:
org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is
strict, but no declaration can be found for element 'aop:scoped-proxy'.
ログファイル
[main] WARN factory.xml.XmlBeanDefinitionReader - Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document
'http://www.springframework.org/schema/aop/spring-aop-2.0.xsd', because 1) could
not find the document; 2) the document could not be read; 3) the root element of
the document is not <xsd:schema>.