環境: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
> 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 のバグ?! (次のリリースを待つことにします)