On May 10, 2008, at 7:15 PM, wesley wrote:

http://bugs.caucho.com/view.php?id=2498

 I've expierenced a wired problen using @PersistenceUnit.

Can you turn on "finer" logging and see if there's anything in the log? That case is working for me.

-- Scott



===================Not functional!========================
@Component
public class PersistenceStrategy {
// @PersistenceContext(unitName = "myunit")
// EntityManager em;
@PersistenceUnit(unitName = "myunit")
EntityManagerFactory emf;
... // using emf, resin said
// com.mycompany.PersistenceStrategy.emf: @PersistenceUnit(unitName='myunit')
// is an unknown persistence unit.
// No matching JPA persistence-units have been deployed
}
============================================================

=========================OK=================================
@Component
public class PersistenceStrategy {
@PersistenceContext(unitName = "myunit")
EntityManager em;
@PersistenceUnit(unitName = "myunit")
EntityManagerFactory emf;
... // using emf, just leaving em unused
}
============================================================

I'm use Hibernate 3.2 as my persistence layer, with 3.2.s080510 snapshot.

-Wesley
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to