Hello, Migrating from resin 3.2.4 to resin 4.0.36, I have a problem with using EntityManager.
my persistence.xml <persistence-unit name=*"test"* transaction-type=*"JTA"*> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>java:comp/*env*/*jdbc*/MID</jta-data-source> <properties> <property name=*"hibernate.dialect"* value= *"org.hibernate.dialect.Oracle9iDialect"* /> <property name=*"hibernate.show_sql"* value=*"true"* /> <property name=*"hibernate.transaction.factory_class"* value= *"org.hibernate.ejb.transaction.JoinableCMTTransactionFactory"* /> <property name= *"hibernate.transaction.manager_lookup_class"* value= *"org.hibernate.transaction.ResinTransactionManagerLookup"*/> <property name=*"hibernate.query.substitutions"* value=*"true 'O', false 'N'"* /> </properties> </persistence-unit> </persistence> And my ejb Stateless @EJB( name = "DocBean", mappedName="DocBean", beanInterface = IDocBeanLocal. *class* ) *public* *class* DocBean *implements* IDocBeanLocal, IDocBeanRemote { @PersistenceContext(unitName="test") *public* EntityManager entityManager; The stacktrace is here *javax.enterprise.inject.AmbiguousResolutionException*: fr.myproject.bean.DocBean.entityManager *javax.enterprise.inject.AmbiguousResolutionException*: Too many beans match, because they all have equal precedence. Beans: javax.persistence.EntityManager[@Default(), @Named('samiPU'), SingletonBean] in jar:file:/C:/Outils/resin-pro-4.0.36/lib/javaee-16.jar!/javax/persistence/ javax.persistence.EntityManager[@Default(), @Named('samiPU'), SingletonBean] in jar:file:/C:/Outils/resin-pro-4.0.36/lib/javaee-16.jar!/javax/persistence/ for InjectManager[stateless:#DocBean]. You may need to use the @Alternative or <alternatives> to select one. Please let me know if there is any more information needed and it's highly appreciated if there is any suggestion to solve the issue. Thanks, Amina.
_______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest