Can't use JSC's Table in JBoss 4.0.4.GA

Hi all,

I tried to deploy my web application which i created by Java Studio Creator to JBoss 4.0.4 GA. But I found that if there is anyBasic >> Table component in application, then it won't work.

I already follow this tutorial.

Exporting a WAR File to JBoss in Sun Java Studio Creator 2

http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/expo rtWAR_to_JBoss.html

By following that link, I can deploy JSC's simple web application in JBoss. But when I use Table component, I got NullPointerException while Refreshing Page that contains Table.

You can try with project in blog below

Table Component Sample Project

http://blogs.sun.com/divas/entry/table_component_sample_project

The application works great in the embeded Sun Application Server but not in JBoss

Is anyone already found the solution?

Thank you for your kind attention : )

- Jua -

Some more Resources, that I already tried

http://weblogs.java.net/blog/ddevore/archive/2006/01/how_to_setup_jb_1.html

http://wiki.jboss.org/wiki/Wiki.jsp?page=JavaStudioCreator

Stack Trace

02:37:01,453 ERROR [[Faces Servlet]] Servlet.service()for servlet Faces Servlet

threw exception

java.lang.NullPointerException

at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:524)

at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:136)

at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:129)

at com.sun.rave.web.ui.component.TableRowGroup.getProperties(TableRowGroup.java:1804)

at com.sun.rave.web.ui.component.TableRowGroup.restoreState(TableRowGroup.java:1490)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:511)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:502)

at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:129)

at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:185)

at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)

at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:337)

at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:124)

at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)

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

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

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

at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

at java.lang.Thread.run(Thread.java:595)

Message was edited by:

juacompe

[5241 byte] By [juacompe] at [2007-11-26 10:34:54]
# 1

Yes, we found the same problem a couple of days ago. It looks like there is a missunderstanding between the Creator components (at least the table) and MyFaces. We don't know yet, on which side the problem is:-(

Until we find out, the only workaround is to remove the MyFaces implementation. According to JBoss website, its very easy to substitute the bundled MyFaces impl with Sun impl. See this link for detailed instructions.

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces

Then you will have to add the JSF-RI back into the war file.

I hope this helps.

-- Marco

mw46 at 2007-7-7 2:44:54 > top of Java-index,Development Tools,Java Tools...
# 2
It's work. Thank you Marco.
juacompe at 2007-7-7 2:44:54 > top of Java-index,Development Tools,Java Tools...
# 3

Hi I had a similar problem and I followed the tutorial at http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces and added ther JSF-RI (Jstl.jar and standard.jar) in the WEB-INF\lib directory of my project before creating the war file. Everything works fine when I deploy in JBoss 4.0.4 on Windows XP. I can see all the data in the table but when I deploy to JBoss 4.0.4 on Solaris the page is not displayed when I access the page the first time. but when I do a refreseh of the page the page displays withe the data. The Exception which I get when I first Access the page is

java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z

at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:972)

at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1410)

at com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDa taProvider.java:1219)

at com.sun.data.provider.impl.CachedRowSetDataProvider.absolute(CachedRowSetDataPr ovider.java:283)

at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDat aProvider.java:611)

at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)

at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.ja va:429)

at com.sun.rave.web.ui.component.TableRowGroup.getRowCount(TableRowGroup.java:749)

at com.sun.rave.web.ui.component.Table.getRowCount(Table.java:307)

at com.sun.rave.web.ui.component.Table.getTableActionsTop(Table.java:539)

at com.sun.rave.web.ui.renderer.TableRenderer.renderActionsTop(TableRenderer.java: 257)

at com.sun.rave.web.ui.renderer.TableRenderer.encodeBegin(TableRenderer.java:124)

at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)

at com.sun.rave.web.ui.component.Table.encodeBegin(Table.java:811)

at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)

at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:543)

at org.apache.jsp.ScmcdLibrary_jsp._jspx_meth_ui_table_0(ScmcdLibrary_jsp.java:689 )

at org.apache.jsp.ScmcdLibrary_jsp._jspx_meth_ui_form_0(ScmcdLibrary_jsp.java:303)

at org.apache.jsp.ScmcdLibrary_jsp._jspx_meth_ui_body_0(ScmcdLibrary_jsp.java:260)

at org.apache.jsp.ScmcdLibrary_jsp._jspx_meth_ui_html_0(ScmcdLibrary_jsp.java:192)

at org.apache.jsp.ScmcdLibrary_jsp._jspx_meth_ui_page_0(ScmcdLibrary_jsp.java:167)

at org.apache.jsp.ScmcdLibrary_jsp._jspx_meth_f_view_0(ScmcdLibrary_jsp.java:137)

at org.apache.jsp.ScmcdLibrary_jsp._jspService(ScmcdLibrary_jsp.java:107)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:252)

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

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav a:672)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispat cher.java:463)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher. java:398)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja va:301)

at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322 )

at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)

at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:311)

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

at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)

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

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:252)

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

at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:202)

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

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:202)

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

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

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

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociati onValve.java:175)

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

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

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

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

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

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

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn ection(Http11BaseProtocol.java:664)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 27)

at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread. java:112)

at java.lang.Thread.run(Thread.java:595)

Eogh at 2007-7-7 2:44:54 > top of Java-index,Development Tools,Java Tools...
# 4
Can we really use jsf-impl.jar(while using myfaces) for real-time application?
steinvommars at 2007-7-7 2:44:54 > top of Java-index,Development Tools,Java Tools...