[jjbug-seam 75] Seam 2.1.0.SP1への移行

67 views
Skip to first unread message

ken

unread,
Nov 2, 2008, 1:46:10 AM11/2/08
to japan-j...@lists.sourceforge.jp

 山田@町田市です。
 seam21migration.txtを見ながら2.0.3から2.1.0.SP1へ移行しようとしているのですが、下のようにJNDIでDBが拾ってこれないと言われてしまいます。 起動時にちゃんとDB見に行ってコンポーネントも作られているのですが、実際にデータにアクセスする時点でエラーとなります。 どっか設定が間違っていると思うのですが、、、、。 
 移行うまく行っている方、何かサジェスチョンいただければ幸いです。

環境:jdk1.6.0_03-p4, jboss-5.0.0.CR2, jboss-seam-2.1.0.SP1

----- server/default/log/server.log --------

14:14:02,578 ERROR [viewhandler] Error Rendering View[/home.xhtml]
org.jboss.seam.InstantiationException: Could not instantiate Seam component: yyyyyQuery
at org.jboss.seam.Component.newInstance(Component.java:2096)
at org.jboss.seam.Component.getInstance(Component.java:1978)
: : : :

Caused by: javax.naming.NameNotFoundException: xxxEntityManagerFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:564)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:572)
: : : :


persistence.xml と components.xmlの関連する部分
 
----- persistence.xml -----

<persistence-unit name="xxx">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/xxxDatasource</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="jboss.entity.manager.factory.jndi.name" value="java:/xxxEntityManagerFactory"/>
</properties>
</persistence-unit>

----- components.xml ------
(xsd は 2.1.xsdに変更)
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
persistence-unit-jndi-name="java:/xxxEntityManagerFactory"/>

_______________________________________________
Japan-jbug-seam mailing list
Japan-j...@lists.sourceforge.jp
http://lists.sourceforge.jp/mailman/listinfo/japan-jbug-seam

ken

unread,
Nov 3, 2008, 6:12:21 PM11/3/08
to japan-j...@lists.sourceforge.jp
 山田@町田市、自己レスです。
 framework.org に同じ内容の質問があり、それへの回答が下の様になっていました。

> Re: EntityManagerFactory not bound ERRORS in 2.1.0.SP1
> 03. Nov 2008, 14:09 CET | Link
> Ilya Pyatigorskiy
> that's most probably a bug in latest jboss 5.0.0cr2: jboss 5.0.0cr2 bug when used with seam 2.1.0(http://atamur.blogspot.com/2008/11/seam-210ga-and-jboss-500cr2.html).

JBoss 5.0.0.CR2 のバグ?! (次のリリースを待つことにします)

Reply all
Reply to author
Forward
0 new messages