0 Replies Latest reply on Mar 21, 2007 6:17 AM by Ganda Ganda

    Strange Behaviour using JBOSS4.0.4 with JSF MyFaces [Urgent]

    Ganda Ganda Newbie

      Hello all ,

      i have 1 simple application using JSF and when i deployed in the jboss4.0.4 i got this error
      i using netbeans5.5 with visual web pack

      2007-03-21 17:42:50,281 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PowerPortlet].[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 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:310)
       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:198)
       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)
      


      i found 2 links that related the integration myFaces with JBOSS4.0.4

      http://forum.java.sun.com/thread.jspa?threadID=5108494&messageID=9369338

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

      in the Installing Your JSF Application part

      i have tried to copy to tomahawk in the jsf-lib, also configure the web.xml
      i also have make sure that there is not JSF RI library in my web-inf/lib application
      i use war files in the packaging

      i have tried all the clues in there, but i still get the same erorr regarding the tables. i want to use myFaces because the default lib that i use to compile all java class in netBeans using myFaces instead of JSF RI

      However, when i refresh the tables, it will error

      please help me. i stuck in this error since yesterday until now (+-2 days)
      helppp

      thanks in advance
      ganda:)