Re: [Resin-interest] Resin 4.0.1 doesn't like Hibernate
On 05-Aug-2009 00:14, Jeff Schnitzer wrote: Resin 4.0.1 doesn't seem to work with Hibernate anymore Related: If you follow this http://wiki.caucho.com/Hibernate with Resin 4.0.4 and Hibernate 3.3.2, you get the unknown @PersistenceContext error you mention. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 4.0.1 doesn't like Hibernate
On 17-Mar-2010 16:01, Stargazer wrote: On 05-Aug-2009 00:14, Jeff Schnitzer wrote: Resin 4.0.1 doesn't seem to work with Hibernate anymore Related: If you follow this http://wiki.caucho.com/Hibernate with Resin 4.0.4 and Hibernate 3.3.2, you get the unknown @PersistenceContext error you mention. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest The Amber demo doesn't look that healthy either! http://www.caucho.com/resin/examples/amber-basic/basic Gives: 500 Servlet Exception || [show] javascript:show(); example.CourseServlet._manager @PersistenceContext cannot find any persistence contexts. No JPA persistence-units have been deployed com.caucho.config.ConfigException: example.CourseServlet._manager @PersistenceContext cannot find any persistence contexts. No JPA persistence-units have been deployed at com.caucho.config.j2ee.PersistenceContextHandler.generateTransactionContext(PersistenceContextHandler.java:126) at com.caucho.config.j2ee.PersistenceContextHandler.introspectField(PersistenceContextHandler.java:86) at com.caucho.config.inject.InjectionTargetImpl$FieldHandlerProgram.bind(InjectionTargetImpl.java:863) at com.caucho.config.inject.InjectionTargetImpl$FieldHandlerProgram.inject(InjectionTargetImpl.java:856) at com.caucho.config.inject.InjectionTargetImpl.inject(InjectionTargetImpl.java:266) at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:1260) at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:1142) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:98) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:207) at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:103) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:286) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:780) at com.caucho.server.connection.TcpConnection.dispatchRequest(TcpConnection.java:600) at com.caucho.server.connection.TcpConnection.handleRequestsImpl(TcpConnection.java:566) at com.caucho.server.connection.TcpConnection.handleRequests(TcpConnection.java:519) at com.caucho.server.connection.TcpConnection$AcceptTask.doTask(TcpConnection.java:1097) at com.caucho.server.connection.TcpConnection$ConnectionReadTask.runThread(TcpConnection.java:1034) at com.caucho.server.connection.TcpConnection$AcceptTask.run(TcpConnection.java:1065) at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901) at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866) Resin/4.0.s100214 Server: '' ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 4.0.1 doesn't like Hibernate
Stargazer wrote: On 05-Aug-2009 00:14, Jeff Schnitzer wrote: Resin 4.0.1 doesn't seem to work with Hibernate anymore Related: If you follow this http://wiki.caucho.com/Hibernate with Resin 4.0.4 and Hibernate 3.3.2, you get the unknown @PersistenceContext error you mention. That's fixed in 4.0.5, although it's more correct to use unitName for the @PersistenceContext because name is supposed to be the JNDI name. So @PersistenceContext(unitName=test) EntityManager _em; -- Scott ___ 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
[Resin-interest] Resin 4.0.1 doesn't like Hibernate
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] InjectManager[] bind(EntityManager,[...@javax.enterprise.inject.current()]) - none [09-08-04 15:54:16.285] {http--8080-5} WARNI [ErrorPageMan] test.EchoService.em: 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 Manager. However there are no error messages on startup; it appears that Hibernate initializes normally. There is a test case here: http://code.google.com/p/scratchmonkey/source/browse/#svn/resin4/resource_injection If you comment out providerorg.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? Thanks, Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest