9 Replies Latest reply on Apr 3, 2008 9:14 PM by Amol Desai

    Web Service Client not working w/RichFaces

    Amol Desai Newbie

      Hello there,

      My WSDL Web service client is not working with RichFaces. The same code is working with MyFaces app.

      I'm getting the following error:

      14:03:47,734 FATAL [application] /jsp/result.xhtml @17,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provid
      er: org.jboss.ws.core.jaxws.spi.ProviderImpl
      javax.faces.el.EvaluationException: /jsp/result.xhtml @17,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Pro
      vider: org.jboss.ws.core.jaxws.spi.ProviderImpl
       at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
       at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
       at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
       at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
       at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava: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.j
      ava: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.ja
      va: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.ja
      va:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.Pr
      oviderImpl
       at javax.xml.ws.spi.Provider.provider(Provider.java:98)
       at javax.xml.ws.Service.<init>(Service.java:83)
      


      I've following JARs in my lib:

      commons-beanutils-1.7.0
      commons-collections-3.2
      commons-digester-1.8
      commons-logging-1.0.4
      explode
      jsf-facelets-1.1.14
      jstl-1.0
      portletbridge-api-1.0.0-20080212.175852-5
      portletbridge-impl-1.0.0-20080212.175852-5
      richfaces-api-3.1.4.SR1
      richfaces-impl-3.1.4.SR1
      richfaces-ui-3.1.4.SR1

      jaxb-api
      jaxb-impl
      jaxb-xjc
      jboss-jaxrpc
      jboss-jaxws

      I read somewhere in the forum that I need to have following JARs as well to run the Web Service. Is that correct? Why didn't I require them with MyFaces though? Where can I find these JARs to download?

      jboss-common-client.jar
      jboss-common-core.jar

      Thanks for your help.
      -Amol

        • 1. Re: Web Service Client not working w/RichFaces
          Sergey Smirnov Master

          Sounds strange. Looks like a problem with classloader.

          Also, the statement "works with MyFaces, but not with RichFaces" is not quite correct. RichFaces is NOT a JSF implementation. So, it cannot be a replacement for MyFaces.

          • 3. Re: Web Service Client not working w/RichFaces
            Amol Desai Newbie

            Sergey,

            Agree, the statement wasn't quite correct. However; the web service code should work with whatever JARs I have, right?

            I do not have jaxws-rt.jar and jaxws-tools.jar in my lib so fabmar's reply didnt help much.

            Any idea/suggestion if it is a classloader related issue?

            Thanks for all your help.
            -Amol

            • 4. Re: Web Service Client not working w/RichFaces
              Amol Desai Newbie

              Hi, just bringing the post up in the queue. thanks.

              • 6. Re: Web Service Client not working w/RichFaces
                Alexander Smirnov Master

                Can you provide full exception stack trace, as far as webservice related code snippet ?
                Also, are you sure about MyFaces JSF implementation ?
                You use SUN implementation, according to exception message ( "com.sun.faces.lifecycle.InvokeApplicationPhase...)

                • 7. Re: Web Service Client not working w/RichFaces
                  Amol Desai Newbie

                  Hi Alex,

                  Here is the exception trace. I tested my Web service client for both My Faces and Sun RI. It was working for both (without RichFaces).

                  My current RichFaces has SunRI and it's not working. The only difference i see is that I do not have following JARs in my WEB-INF lib;
                  jsf-api
                  jsf-portlet
                  portal-common-lib
                  portlet-api-lib

                  I even tried copying these files in WEB-INF lib but that didnt work.

                  2008-04-03 15:06:41,468 FATAL [javax.enterprise.resource.webcontainer.jsf.application] /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                  javax.faces.el.EvaluationException: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                   at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                   at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
                   at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                   at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                   at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                   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:141)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                   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(Thread.java:595)
                  Caused by: javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.Provider.provider(Provider.java:98)
                   at javax.xml.ws.Service.<init>(Service.java:83)
                   at com.autodesk.km.search.SearchService.<init>(Unknown Source)
                   at com.autodesk.search.service.client.SearchServiceClient.callWSDL(Unknown Source)
                   at org.jboss.portlet.hello.bean.EchoBean.callWSDL(Unknown Source)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:585)
                   at org.apache.el.parser.AstValue.invoke(AstValue.java:131)
                   at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                   at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
                   ... 32 more
                  Caused by: java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:163)
                   at javax.xml.ws.spi.Provider.provider(Provider.java:90)
                   ... 44 more
                  2008-04-03 15:06:41,468 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] #{echo.callWSDL}: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                  javax.faces.FacesException: #{echo.callWSDL}: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
                   at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                   at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
                   at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                   at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                   at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                   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:141)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                   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(Thread.java:595)
                  Caused by: javax.faces.el.EvaluationException: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                   ... 31 more
                  Caused by: javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.Provider.provider(Provider.java:98)
                   at javax.xml.ws.Service.<init>(Service.java:83)
                   at com.autodesk.km.search.SearchService.<init>(Unknown Source)
                   at com.autodesk.search.service.client.SearchServiceClient.callWSDL(Unknown Source)
                   at org.jboss.portlet.hello.bean.EchoBean.callWSDL(Unknown Source)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:585)
                   at org.apache.el.parser.AstValue.invoke(AstValue.java:131)
                   at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                   at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
                   ... 32 more
                  Caused by: java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:163)
                   at javax.xml.ws.spi.Provider.provider(Provider.java:90)
                   ... 44 more
                  2008-04-03 15:06:41,484 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] executePhase(INVOKE_APPLICATION 5,org.jboss.portletbridge.context.FacesContextImpl@3a2b03) threw exception
                  javax.faces.FacesException: #{echo.callWSDL}: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
                   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                   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:141)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                   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(Thread.java:595)
                  Caused by: javax.faces.FacesException: #{echo.callWSDL}: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
                   at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                   at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
                   at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                   at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                   at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                   ... 25 more
                  Caused by: javax.faces.el.EvaluationException: /jsp/result.xhtml @45,68 action="#{echo.callWSDL}": javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                   ... 31 more
                  Caused by: javax.xml.ws.WebServiceException: Unable to load Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.Provider.provider(Provider.java:98)
                   at javax.xml.ws.Service.<init>(Service.java:83)
                   at com.autodesk.km.search.SearchService.<init>(Unknown Source)
                   at com.autodesk.search.service.client.SearchServiceClient.callWSDL(Unknown Source)
                   at org.jboss.portlet.hello.bean.EchoBean.callWSDL(Unknown Source)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:585)
                   at org.apache.el.parser.AstValue.invoke(AstValue.java:131)
                   at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                   at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
                   ... 32 more
                  Caused by: java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:163)
                   at javax.xml.ws.spi.Provider.provider(Provider.java:90)
                   ... 44 more
                  2008-04-03 15:06:41,484 DEBUG [org.ajax4jsf.event.AjaxPhaseListener] Process after phase INVOKE_APPLICATION 5
                  2008-04-03 15:06:41,484 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/helloworldjsfmyfacesportlet].[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception
                  java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ProviderImpl
                   at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:163)
                   at javax.xml.ws.spi.Provider.provider(Provider.java:90)
                   at javax.xml.ws.Service.<init>(Service.java:83)
                   at com.autodesk.km.search.SearchService.<init>(Unknown Source)
                   at com.autodesk.search.service.client.SearchServiceClient.callWSDL(Unknown Source)
                   at org.jboss.portlet.hello.bean.EchoBean.callWSDL(Unknown Source)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:585)
                   at org.apache.el.parser.AstValue.invoke(AstValue.java:131)
                   at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                   at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                   at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                   at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                   at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
                   at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                   at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                   at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                   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:141)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                   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(Thread.java:595)
                  


                  Thanks.

                  • 8. Re: Web Service Client not working w/RichFaces
                    Alexander Smirnov Master

                    There is main exception :

                    Caused by: java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ProviderImpl
                     at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:163)
                     at javax.xml.ws.spi.Provider.provider(Provider.java:90)

                    Probably org.jboss.ws.core.jaxws.spi.ProviderImpl and javax.xml.ws.spi.ProviderLoader have been loaded by different classloaders.You write about jaxb-*.jar's in your WEB-INF/lib folder. It can cause to load javax.xml.* classes from web application context, instead of Jboss container.

                    • 9. Re: Web Service Client not working w/RichFaces
                      Amol Desai Newbie

                      Thanks Alex. That was the exact reason. I removed jaxb*.jars from the WEB-INF lib and the error went away.

                      Thank you so much.
                      best regards,
                      -Amol