0

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>.
4

2 に答える 2

0

を使用して開発モードで実行することができましたmvn gwt:run。初めて問題に遭遇したとき、私は近くにいました。

私が気付いていなかったことの1つは?gwt.codesvr=127.0.0.1:9997、URLの最後にあることの重要性です。このGWTDevModeutilがないと、ユーザーの操作を追跡できません。

http://localhost:8888/index.html?gwt.codesvr=127.0.0.1:9997

安全対策のために、EclipseでMavenプロジェクトをクリーンアップして再構築しました。それがそれに影響を与えたかどうかはわかりません。

于 2013-03-07T22:02:00.297 に答える
0

問題は(ログファイルに記載されているように)次のようなものだと思います:
http ://www.springframework.org/schema/aop/spring-aop-2.0.xsd 試してみてください: http ://www.springframework.org/schema/ aop / spring-aop-3.0.xsd

于 2013-03-07T17:22:31.157 に答える