2

JavaGWTプロジェクトに含めたい外部JARsignpost-core-1.2.1.1.jar(http://code.google.com/p/oauth-signpost/から)があります。

そこで、この外部JARファイルをEclipseのビルドパスに追加し、これらのインポートをクラスに配置します。

import oauth.signpost.basic.DefaultOAuthConsumer;
import oauth.signpost.exception.OAuthCommunicationException;
import oauth.signpost.exception.OAuthExpectationFailedException;
import oauth.signpost.exception.OAuthMessageSignerException;

コンパイル中に、次のエラーメッセージが表示されました。

[ERROR] Line 130: No source code is available for type oauth.signpost.basic.DefaultOAuthConsumer; did you forget to inherit a required module?
[ERROR] Line 133: No source code is available for type oauth.signpost.exception.OAuthMessageSignerException; did you forget to inherit a required module?
[ERROR] Line 135: No source code is available for type oauth.signpost.exception.OAuthExpectationFailedException; did you forget to inherit a required module?
[ERROR] Line 137: No source code is available for type oauth.signpost.exception.OAuthCommunicationException; did you forget to inherit a required module?

そこで、Admin.gwt.xmlファイルに次の行を追加しました。

<inherits name='oauth.signpost.Signpost' />

そして今、私はこのメッセージを受け取っています:

Loading inherited module 'oauth.signpost.Signpost'
   [ERROR] Unable to find 'oauth/signpost/Signpost.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

Unfortunately the Signpost does not seam provide a gwt.xml file, since it consists only of a jar file.

So how can I write it?

And where do I have to place it?

Or do I just need to set some additional paths?

4

1 に答える 1

4

Signpost ライブラリはわかりませんが、クライアント側で使用したいと思います。残念ながら、oauth-signpost は従来の Web サービスに対してのみ提供されています。とにかく、それを使用したい場合は、jre 6 を完全にサポートしているサーバー側でのみ可能です。クライアント側では、エミュレートされた gwt-jre 環境のみを使用する提供された gwt モジュールのみを使用できます。

于 2010-10-19T13:53:27.010 に答える