質問

Netbeans java eeプロジェクト(maven + hibernate + JSF)をglassfishにデプロイしようとしています

以下のエラーが発生しています。私のデータベース構成は大丈夫です(いくつかのアプリからダブルチェックされています)。データベース自体は大丈夫でオンラインです。

SEVERE: WebModule[/web-0.1-SNAPSHOT]PWC1275: 
  Exception sending context initialized event to listener
  instance of class org.springframework.web.context.ContextLoaderListener 
  org.springframework.beans.factory.BeanCreationException: Error creating bean with
  name 'txManager' defined in ServletContext resource 
  [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed;
  nested exception is java.lang.IllegalArgumentException: 
      Property 'sessionFactory' is required
役に立ちましたか?

解決

glassfishプロパティに正しいjava実行可能ファイルを設定することで問題を解決しました。助けてください!

他のヒント

applicationContext.xmlでsessionFactoryを定義する必要があるようです。詳細については、フォーラムの投稿をご覧ください。詳細。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top