Seam and apache Tomee
fillaz Nov 15, 2012 10:57 AMHi,
i'm trying to startup a sample seam3 project under tomee As.
I've done a neew seam project via forge and done a reverse engineering from a mysql db with only 2 tables, then i've done scaffolding.
On the project i've configured correctly my persistence.xml for accessing mysql db via a defined Datasource and throught mysql connectorJ driver.
I've tried the generated war under Jboss AS7 and everything run smoothly.
Now i'm trying to startup this war under Tomee, but unfortunately, after a startup without errors, when i'try to acces one of the 2 generated search.xhtml pages an error occured.
With the other page everything work.
The error occurred is an error of myfaces (apache implementation of JSF)
java.lang.NullPointerException at org.apache.myfaces.shared.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:131) at org.apache.myfaces.shared.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:798) at org.apache.myfaces.shared.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:764) at org.apache.myfaces.shared.renderkit.html.HtmlSelectableRendererBase.internalRenderSelect(HtmlSelectableRendererBase.java:74) at org.apache.myfaces.shared.renderkit.html.HtmlMenuRendererBase.renderMenu(HtmlMenuRendererBase.java:91) at org.apache.myfaces.shared.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:76) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693) at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) at org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:370) at org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:194) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) at org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693) at org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:663) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:543) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:539) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
I've tried also with hibernate instead of default Tomee openjpa but nothing change.
Anyone know problems between seam3 scaffolding and myfaces??
thanks