1 Reply Latest reply on Nov 7, 2008 7:36 PM by Nick Belaevski

    jbossAS,ajax4jsf hata

    betul aydin Newbie

      hi
      before jbossAs I was using IBMWebsphere as server.I hadnt got any problem when I used richfaces 3.2.0.sr1 in my application.
      Bu when I chanded application server some problem has been occured.

      richfaces 3.2.0 sr1
      commons-beanutils-1.8.0.jar
      commons-digester-1.8.jar
      commons-logging-1.1.1.jar
      JbossAS 4.2.2
      here is my web.xml

      
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
       <context-param>
       <param-name>javax.faces.CONFIG_FILES</param-name>
       <param-value>/WEB-INF/faces-config.xml</param-value>
       </context-param>
       <context-param>
       <param-name>org.richfaces.SKIN</param-name>
       <param-value>blueSky</param-value>
       </context-param>
       <filter>
       <display-name>RichFaces Filter</display-name>
       <filter-name>richfaces</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>richfaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.faces</url-pattern>
       </servlet-mapping>
       <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
       </welcome-file-list>
       <resource-ref>
       <description>
       Logical name of the data source that provides connections to the persistence service.
       Must match the hibernate.connection.datasource property in the Hibernate
       configuration file.
       </description>
       <res-ref-name>jdbc/JbpmDataSource</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
       </resource-ref>
      
       <description>MySQL Test App</description>
       <resource-ref>
       <description>DB Connection</description>
       <res-ref-name>jdbc/DB2-400</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
      </resource-ref>
      </web-app>
      
      
      

      here is my code:
      
      <h:form>
       <h:panelGrid columns="2">
       <h:inputText id="myinput" value="#{SeyahatTalep.adsoyad}">
       <a4j:support event="onkeyup" reRender="outtext" />
       </h:inputText>
       <h:outputText id="outtext" value="#{SeyahatTalep.adsoyad}" />
       </h:panelGrid>
      
       </h:form>
      

      error
      
      11:38:35,279 FATAL [lifecycle] JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: ) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@190822b]
      11:38:35,279 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NullPointerException
       at javax.faces.component.UIComponentBase.isPostbackAndRestoreView(UIComponentBase.java:1546)
       at javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1521)
       at javax.faces.component.UIComponentBase.access$500(UIComponentBase.java:100)
       at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2389)
       at javax.faces.component.UIComponentBase$FacetsMap.put(UIComponentBase.java:2339)
       at org.ajax4jsf.application.TreeStrutureNode.restore(TreeStrutureNode.java:91)
       at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:233)
       at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:316)
       at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
       at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:131)
       at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:177)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
       at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:105)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
       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:179)
       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)
      

      what is problem.Can anybody help me?