4 Replies Latest reply: Aug 29, 2008 3:39 AM by Ilya Shaikovsky RSS

    fail to deploy into websphere6.1

    gary ding Newbie

      When I deploy richfaces-demo.war into websphere6.1. I got the following error. Any body can give me some suggestion?

      Thanks!

      ---------------------

      [8/27/08 20:00:13:421 PDT] 00000028 WebApp E [Servlet Error]-[com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper]: java.lang.ClassCastException: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper
      at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:499)
      at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:111)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

      [8/27/08 20:00:16:281 PDT] 00000028 WebApp E [Servlet Error]-[com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper]: java.lang.ClassCastException: com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor incompatible with com.ibm.wsspi.webcontainer.servlet.IServletWrapper
      at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:499)
      at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:111)
      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

        • 1. Re: fail to deploy into websphere6.1
          gary ding Newbie

          It is RichFaces 3.2.1GA

          • 2. Re: fail to deploy into websphere6.1
            Ilya Shaikovsky Master

            and all works fine after you remover RF jars and web xml additions?

            then you could send us war for test or show libs included and web.xml content.

            • 3. Re: fail to deploy into websphere6.1
              gary ding Newbie

              The war I used come from RichaFaces3.2.1GA deliverable. I build it from the RichFaces3.2.1 source code.

              1. the file is
              richfaces-ui-3.2.1.GA-src\richfaces-ui-3.2.1.GA\samples\richfaces-demo\target\richfaces-demo.war

              2. web.xml
              <?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">
              Richfaces Components demo
              <display-name>richfaces-demo</display-name>
              <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
              </context-param>
              <context-param>
              <param-name>facelets.REFRESH_PERIOD</param-name>
              <param-value>2</param-value>
              </context-param>
              <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>true</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>com.sun.faces.validateXml</param-name>
              <param-value>true</param-value>
              </context-param>
              <context-param>
              <param-name>com.sun.faces.verifyObjects</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>org.ajax4jsf.SKIN</param-name>
              <param-value> #{skinBean.skin}</param-value>
              </context-param>
              <context-param>
              <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
              <param-value>com.sun.facelets.FaceletViewHandler</param-value>
              </context-param>
              <context-param>
              <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
              <param-value>true</param-value>
              </context-param>
              <context-param>
              <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
              <param-value>true</param-value>
              </context-param>
              <context-param>
              <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
              <param-value>NEKO, TIDY</param-value>
              </context-param>
              <context-param>
              <param-name>org.richfaces.CONTROL_SKINNING</param-name>
              <param-value>enable</param-value>
              </context-param>

              <context-param>
              <param-name>org.richfaces.LoadStyleStrategy</param-name>
              <param-value>DEFAULT</param-value>
              </context-param>
              <context-param>
              <param-name>org.richfaces.LoadScriptStrategy</param-name>
              <param-value>DEFAULT</param-value>
              </context-param>


              <display-name>Ajax4jsf Filter</display-name>
              <filter-name>ajax4jsf</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>
              <init-param>
              <param-name>createTempFiles</param-name>
              <param-value>false</param-value>
              </init-param>
              <init-param>
              <param-name>maxRequestSize</param-name>
              <param-value>100000</param-value>
              </init-param>

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

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

              <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.jsf</url-pattern>
              </servlet-mapping>
              <login-config>
              <auth-method>BASIC</auth-method>
              </login-config>
              </web-app>

              3. the list of jars
              xml-apis-1.3.03.jar
              xercesImpl-2.8.1.jar
              richfaces-ui-3.2.1.GA.jar
              richfaces-impl-3.2.1.GA.jar
              richfaces-api-3.2.1.GA.jar
              nekohtml-0.9.5.jar
              laguna-3.2.1.GA.jar
              jstl-1.0.jar
              jsf-impl-1.2_07.jar
              jsf-facelets-1.1.14.jar
              jsf-api-1.2_07.jar
              jhighlight-1.0.jar
              core-3.2.1.GA.jar
              commons-logging-1.0.4.jar
              commons-digester-1.8.jar
              commons-collections-3.2.jar
              commons-beanutils-1.7.0.jar





              • 4. Re: fail to deploy into websphere6.1
                Ilya Shaikovsky Master

                so seems there is some conflicts between the libs in the war and shared libs of the websphere.