0 Replies Latest reply on May 10, 2006 1:27 AM by Sandeep Deshmukh

    Initailization problem after deployment problem

    Sandeep Deshmukh Newbie

      Dear All,

      I have developed the Application using JSF, Spring and Hibernate on tomcat. It works fine in tomcat. but because of performance requirement i want to deploy it to jboss.

      Now the problem is when i deployed it in jboss no error comes at deployment but when i try to access it gives the following error.

      10:41:40,640 ERROR [UIComponentTag] Faces context not found. getResponseWriter w
      ill fail. Check if the FacesServlet has been initialized at all in your web.xml.

      10:41:41,140 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      java.lang.NullPointerException
      at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.
      java:615)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)

      at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
      at org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp
      :117)
      at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:91)
      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:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      14)
      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(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
      atcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
      tionDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
      ispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
      patcher.java:301)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp
      l.java:322)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.
      java:130)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
      se.java:87)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      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(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.do
      FilterInternal(OpenSessionInViewFilter.java:172)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      10:41:41,171 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet
      threw exception
      java.lang.NullPointerException
      at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.
      java:615)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)

      at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
      at org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp
      :117)
      at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:91)
      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:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
      14)
      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(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
      atcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
      tionDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
      ispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
      patcher.java:301)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp
      l.java:322)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.
      java:130)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
      se.java:87)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      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(Appl
      icationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.do
      FilterInternal(OpenSessionInViewFilter.java:172)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
      equestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)


      One more question i would like to add is that wether i would get the performance increase or not.