[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
I got the same exception with datasource can't find problem. i don't think this is caused by wrong jdbc driver, because it can't be found in seam 1.2. this exception only happened in seam2. Have anyone fixed this problem? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109181#4109181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
I did and I meant to post it here for you but got sidetracked. I believe that this was a driver problem. In my case, for some reason, this problem only occurred when I used JDK1.5.0.11. With JDK 1.6, everything works ok. I suspect that this was because my database driver is for 1.6, but I haven't looked into it further because of more pressing issues. Make sure that you have copied your database driver to your server/default/lib directory. Let me know if you need further help. Richard View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065328#4065328 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065328 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
Richard, Did you find a solution to the datasource not being bound? I am running into the same problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065100#4065100 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
Yeah, this is cos I'm a fucking idiot. Rename your session to hibernateSession or something. Or edit jboss-seam.jar/META-INF/components.xml to fix my mistake. I'll get it fixed soon in CVS. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059289#4059289 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
Ok, I changed the session to hibernateSession 1. In components.xml, i.e. | persistence:managed-hibernate-session name=hibernateSession auto-create=true | session-factory-jndi-name=java:/mvanamibia3SessionFactory / | and 2. In all of my session beans, e.g. | @In | private Session hibernateSession; | I'm now getting the exception below. I remember having quite a hard time getting this part of the configuration right (my understanding is a bit fragile) - am I doing something stupid? Richard Exception during request processing: | Caused by javax.el.ELException with message: javax.ejb.EJBTransactionRolledbackException: SessionFactory not found in JNDI: java:/mvanamibia3SessionFactory | | org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329) | org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338) | org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) | org.jboss.el.parser.AstValue.invoke(AstValue.java:96) | org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) | org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174) | org.jboss.seam.navigation.Page.preRender(Page.java:275) | org.jboss.seam.navigation.Pages.preRender(Pages.java:292) | org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:541) | org.jboss.seam.jsf.SeamPhaseListener.beforeRender(SeamPhaseListener.java:473) | org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146) | org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) | com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) | org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) | org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | java.lang.Thread.run(Thread.java:595) | | Caused by javax.ejb.EJBTransactionRolledbackException with message: SessionFactory not found in JNDI: java:/mvanamibia3SessionFactory | |
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
Use persistence:hibernate-session-factory name=hibernateSessionFactory / | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059303#4059303 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059303 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Hibernate sessions post-Seam2 migration
(For anyone else reading this thread - I had not changed the core prefix of my hibernate-session-factory element) That seems to have resolved something, but now there is a problem with my datasource, which is defined in a *-ds.xml file as below. I will keep looking into this but, as this config worked pre-migration, I'm posting in case this caused by a bug. Gavin, many thanks for your (unbelievably quick) help. Richard | datasources | |local-tx-datasource | jndi-namemvDatasource/jndi-name | connection-urljdbc:postgresql:mvanam-prototype/connection-url | driver-classorg.postgresql.Driver/driver-class | user-name***/user-name | password***/password |/local-tx-datasource | | /datasources | | 2007-06-29 20:22:25,705 FATAL [org.hibernate.connection.DatasourceConnectionProvider] Could not find datasource: java:/mvDatasource | javax.naming.NameNotFoundException: mvDatasource not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:296) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) | at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410) | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) | at org.jboss.seam.persistence.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:150) | at org.jboss.seam.persistence.HibernateSessionFactory.startup(HibernateSessionFactory.java:156) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:21) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124) | at org.jboss.seam.Component.callComponentMethod(Component.java:1957) | at org.jboss.seam.Component.callCreateMethod(Component.java:1880) | at org.jboss.seam.Component.newInstance(Component.java:1859) | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) | at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) | at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:98) | at org.jboss.seam.init.Initialization.init(Initialization.java:508) | at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359) | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761) | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741) | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at