Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003622 [Resin] minor always 08-04-09 16:27 08-26-09 14:07
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.1
Summary 0003622: JPA/hibernate issues with 4.0.1
Description (rep by Jeff Schnitzer)

Resin 4.0.1 doesn't seem to work with Hibernate anymore. When
Hibernate is configured as the JPA provider, attempts to inject an
EntityManager produce this:

[09-08-04 15:54:16.283] {http--8080-5} FINES [InjectManage]
bind(EntityManager,[@javax.enterprise.inject.Current()]) -> none
[09-08-04 15:54:16.285] {http--8080-5} WARNI [ErrorPageMan]
javax.enterprise.inject.UnsatisfiedResolutionException: Can't find a
bean for 'interface javax.persistence.EntityManager' because no beans
implementing that class have been registered with the injection

However there are no error messages on startup; it appears that
Hibernate initializes normally.

There is a test case here: [^]

If you comment out
"<provider>org.hibernate.ejb.HibernatePersistence</provider>" in
persistence.xml, the injection works. If you leave it, you can't
inject. If you use @PersistenceContext instead of @Current, it
complains that the persistence unit cannot be found.

Any ideas or workarounds
Additional Information
Attached Files

- Relationships

- Notes
08-26-09 14:07


- Issue History
Date Modified Username Field Change
08-04-09 16:27 ferg New Issue
08-20-09 10:47 voodude Issue Monitored: voodude
08-20-09 11:08 skot Issue Monitored: skot
08-20-09 11:40 latchkey Issue Monitored: latchkey
08-26-09 14:07 ferg Note Added: 0004170
08-26-09 14:07 ferg Assigned To  => ferg
08-26-09 14:07 ferg Status new => closed
08-26-09 14:07 ferg Resolution open => fixed
08-26-09 14:07 ferg Fixed in Version  => 4.0.2

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker