0 Replies Latest reply on Jul 7, 2008 9:30 AM by hiren Sheth

    ajax4jsf not working on websphere6.0 portal server

    hiren Sheth Newbie




      i have a serious problem related ajax4jsf.
      the problem in my project i m using MyFaces + Tomahowk + ajax4jaf and i deployed the project for locally my Pluto server because its portal application for testing purpose its works very fine no problem in Ajax4jsf
      but when i deployed same project on my production server WebSphere6.o portal Server its give me a error in web.xml file in filter.
      i dont know why its not working in WebSphere6?
      if u have any solution please reply me soon
      and for reference here is my web.xml file code:

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

      <display-name>SFE2.0 - Portlet Application</display-name>
      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces/faces-config.xml, /WEB-INF/faces/faces-config-call.xml, /WEB-INF/faces/faces-config-tradeshow.xml, /WEB-INF/faces/faces-config-generaladmin.xml, /WEB-INF/faces/faces-config-distributor.xml, /WEB-INF/faces/faces-config-resource-bundles.xml, /WEB-INF/faces/faces-config-administration.xml,/WEB-INF/faces/faces-config-enduser.xml</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>server</param-value>

      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
      <param-value>com.bacoudalloz.framework.web.jsf.util.SperianPortalAddResource</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
      <param-value>true</param-value>

      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
      <param-value>true</param-value>

      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
      <param-value>true</param-value>

      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>log4jConfigLocation</param-name>
      <param-value>classpath:log4j.properties</param-value>
      </context-param>
      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>/WEB-INF/spring/applicationContext*.xml</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.shale.validator.VALIDATOR_RULES</param-name>
      <param-value>/org/apache/shale/validator/validator-rules.xml</param-value>
      </context-param>
      <context-param>
      <param-name>org.richfaces.LoadScriptStrategy</param-name>
      <param-value>ALL</param-value>
      </context-param>
      <context-param>
      <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
      <param-value>NONE</param-value>
      </context-param>
      <context-param>
      <param-name>org.ajax4jsf.xmlparser.NONE</param-name>
      <param-value>/pages/performance\.xhtml,/pages/default.*\.xhtml</param-value>
      </context-param>


      <context-param>
      <param-name>org.ajax4jsf.xmlparser.</param-name>
      <param-value>/pages/performance\.xhtml,/pages/default.*\.xhtml</param-value>
      </context-param>



      <filter-name>MyFacesExtensionsFilter</filter-name>
      <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
      <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>20m</param-value>

      </init-param>



      <display-name>Ajax4Jsf Filter</display-name>
      <filter-name>ajax4jsf</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>





      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
      </filter-mapping>
      <filter-mapping>
      <filter-name>MyFacesExtensionsFilter</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      </filter-mapping>

      <filter-mapping>
      <filter-name>ajax4jsf</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>


      <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>


      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>


      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>30</load-on-startup>


      <servlet-name>Faces Resource Servlet</servlet-name>
      <servlet-class>com.bacoudalloz.framework.web.servlet.MyFacesResourceServlet</servlet-class>

      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>Faces Resource Servlet</servlet-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
      <welcome-file>/jsp/sandbox/standalone/test.jsf</welcome-file>
      </welcome-file-list>
      <security-role>
      <role-name>manager</role-name>
      </security-role>
      <security-role>
      <role-name>onlineusers</role-name>
      </security-role>

      </web-app>




      thanks