こんにちは私は、web.xml
の代わりにサーブレットをマップするアノテーションを使用しています。オブジェクト化を使用してデータストアからエンティティを取得しようとしています(私はGoogleのアプリケーションエンジンのjava8バージョンを使用しています)エンティティ(クラス)を登録します。 (コードの下など)私の場合、私が使用していないのweb.xmlObjectifyfilterの注釈
<filter>
<filter-name>ObjectifyFilter</filter-name>
<filter-class>com.googlecode.objectify.ObjectifyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ObjectifyFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Question:
:
I got this error:
java.lang.IllegalStateException: You have not started an Objectify context. You are probably missing the ObjectifyFilter. If you are not running in the context of an http request, see the ObjectifyService.run() method.
at com.googlecode.objectify.ObjectifyService.ofy(ObjectifyService.java:44)
私は、web.xml内のフィルタを客観化しなければならない必要があることを知っています注釈でこのオブジェクト化フィルタを実行するにはどうすればよいですか?
ありがとう<フィルタクラス> com.googlecode.objectify.ObjectifyFilter < /フィルタクラス> \t \t <のfilter-mapping> \t ObjectifyFilterフィルタ名> \t /*のurl-pattern> (エラー404'エラーが発生しています)@Sai Pullabhotla –
Prakash
'Error'-com.google.appengine.tools.development.jetty9 .LocalResourceFileServlet doGet 警告:ファイルが見つかりませんでした:/ index – Prakash
welcome-file-listで誤った設定が可能ですか? web.xmlを追加する前に動作していましたか? webappにリソース "/ index"がありますか? –