2 Replies Latest reply on Jun 9, 2011 5:19 AM by giant2

    Eclipse Helios + JbossTools 3.2.0GA + Seam 2.2.2 Final + Jboss 4.2.3 GA Don't work

    giant2 Newbie

      Hi all!

      I tried Eclipse Helios with JbossTools 3.2.0GA and Seam 2.2.2 Final using Jboss 4.2.3 GA. The installation goes all ok.

      Making "seam properties" (2.2.2 Final) ok

      Making "new seam project" ok

      Making "new server" (jboss) ok

      I see now the wellcome page with the "standard" seam first page (with the example of login) and it works!!!

       

      Now I became more expert and try to "reverse engineer" from a DB of one table (tabellaA).

      Making "Seam Generate Entities" ok

      But now when I try to see at the homepage "Browse data"->"TabellaA List" jboss goes in error (it follows). Does anyone the reason or encoutered the same error?

       

      Thanks!

       

      13:21:23,359 ERROR [STDERR] 18-mag-2011 13.21.23 com.sun.facelets.FaceletViewHandler handleRenderException

      GRAVE: Error Rendering View[/TabellaAList.xhtml]

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: tabellaAList

          at org.jboss.seam.Component.newInstance(Component.java:2170)

          at org.jboss.seam.Component.getInstance(Component.java:2024)

          at org.jboss.seam.Component.getInstance(Component.java:1986)

          at org.jboss.seam.Component.getInstance(Component.java:1980)

          at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)

          at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)

          at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)

          at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)

          at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)

          at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)

          at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)

          at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)

          at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

          at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)

          at javax.faces.component.UIOutput.getValue(UIOutput.java:184)

          at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)

          at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)

          at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)

          at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java:190)

          at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.java:166)

          at org.jboss.seam.ui.renderkit.DecorateRendererBase.doEncodeChildren(DecorateRendererBase.java:152)

          at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.java:92)

          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

          at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)

          at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)

          at org.richfaces.renderkit.html.SimpleToggleControlTemplate.doEncodeChildren(SimpleToggleControlTemplate.java:301)

          at org.richfaces.renderkit.html.SimpleToggleControlTemplate.doEncodeChildren(SimpleToggleControlTemplate.java:296)

          at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)

          at org.richfaces.renderkit.html.SimpleTogglePanelRenderer.encodeChildren(SimpleTogglePanelRenderer.java:188)

          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)

          at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)

          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)

          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

          at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

          at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

          at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

          at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

          at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.IllegalArgumentException: EntityManagerFactory not found in JNDI : java:/PrimoSEAMEntityManagerFactory

          at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:261)

          at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:79)

          at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:108)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

          at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)

          at org.jboss.seam.Component.callComponentMethod(Component.java:2275)

          at org.jboss.seam.Component.unwrap(Component.java:2301)

          at org.jboss.seam.Component.getInstance(Component.java:2044)

      ...