5 Replies Latest reply on Dec 22, 2009 4:30 AM by Rainer Zufall

    cannot be cast to java.lang.RuntimeException

    QkI QkI Newbie

      When I try to run my ws client, I get error

      Exception in thread "main" java.lang.ClassCastException: java.lang.ExceptionInInitializerError cannot be cast to java.lang.RuntimeException
       at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:268)
       at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
       at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
       at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
       at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
       at $Proxy16.sayHello(Unknown Source)
       at biz.safo.ws.client.Client.main(Client.java:12)
      


      this's my ws
      @Stateless
      @WebService(name="Hello",
       targetNamespace="http://ws.safo.biz",
       serviceName="HelloService")
      public class Hello implements HelloRemote {
      
       @WebMethod
       public String sayHello(String name) {
       System.out.println("<< sayHello");
       return "Hello, " + name;
       }
      
      }
      


      and client
      public class Client {
       public static void main(String[] args) {
       HelloService service = new HelloService();
       Hello hello = service.getHelloPort();
       hello.sayHello("heh");
       }
      }
      


      classes Hello and HelloService i generate by wsconsume.
      My configuration JBoss 4.2.1, jbossws 2.0.3, jdk6.

      Any idea what I'm doing wrong?

        • 1. Re: cannot be cast to java.lang.RuntimeException
          Heiko Braun Master

          Read about JDK 6 installation in the WIKI

          • 2. Re: cannot be cast to java.lang.RuntimeException
            QkI QkI Newbie

             

            "heiko.braun@jboss.com" wrote:
            Read about JDK 6 installation in the WIKI

            I was reading about installation on JDK6, but this solution didn't solve my problem.

            • 3. Re: cannot be cast to java.lang.RuntimeException
              Dmitry Popov Newbie

              Exactly same error on configuration JBoss 5.1.0.GA + jdk 1.6 + jbossws-native-3.2.1.GA

              Replaced all need files (as said in wiki) from jbossws-native-bin-dist\deploy\lib to endorsed lib,

              tried also client libs etc. Nothing works.

               

              As I can see with some weeks of tormenting jboss 5.1.0 is VERY UNSTABLE release & I think devlelopers MUST test

              something before releasing. Especially with jdk 1.6.

               

              Steps before I got just this:

              1) Upgraded to jbossws-native-3.2.1.GA (with distributed jboss-native 3.1.0 wsrunclient fails with NCDE as in https://jira.jboss.org/jira/browse/JBPAPP-966)

               

              2) Then wsrunclient started to fail with not found Stax implementation like this:

              Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
                      at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
                      at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
                      at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
                      at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
                      at com.sun.xml.internal.ws.streaming.XMLStreamReaderFactory.<clinit>(XMLStreamReaderFactory.java:65)
                      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:162)
                      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:190)
                      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:68)
                      at com.sun.xml.internal.ws.wsdl.WSDLContext.<init>(WSDLContext.java:59)
                      at com.sun.xml.internal.ws.client.ServiceContextBuilder.build(ServiceContextBuilder.java:62)
                      at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:125)
                      at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:52)
                      at javax.xml.ws.Service.<init>(Service.java:57)
                      at org.jbia.ws.HelloService.<init>(HelloService.java:45)
                      at org.jbia.ws.HelloWsClient.main(HelloWsClient.java:18)

              I downloaded a real-hard-to-find stax-1.1.1-dev.jar Bea Stax-implementation from this (BEA impl link from Sun Stax dev site doesn't work!):

              http://dist.codehaus.org/stax/jars/

              added it to lib/endorsed lib (adding to classpath of wsrunclient doesn't change anything!).

              Notice that sun Stax implementation does not contain com.bea classes, but JBoss used them and don't include in distr. version instead of use a easy downloadable and freely distributable sun version (sjsxp.jar) !

               

              3) copied all files from jboss ws native binary distr to /lib/endorsed (tried also to /lib, /client etc). It doesn't help, as it's failing

              exactly as your insolved case:

              Exception in thread "main" java.lang.ClassCastException: java.lang.ExceptionInInitializerError cannot be cast to java.lang.RuntimeException
                      at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:268)
                      at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
                      at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
                      at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
                      at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
                      at $Proxy9.sayHello(Unknown Source)
                      at org.jbia.ws.HelloWsClient.main(HelloWsClient.java:21)

               

              As we can see looking in JDK sources,  java.lang.ExceptionInInitializerError extends LinkageError which extends Error, not Exception anyway.

              So JBoss is totally incorrect in throwing error to SOAPMessageDispatcher.doSend(...), which expects RTE that is Exception, not Error, and not Throwable.

              As javadoc of ExceptionInInitializerError says:

              <p>As of release 1.4, this exception has been retrofitted to conform to
              * the general purpose exception-chaining mechanism.  The "saved throwable
              * object" that may be provided at construction time and accessed via
              * the {@link #getException()} method is now known as the <i>cause</i>,
              * and may be accessed via the {@link Throwable#getCause()} method, as well
              * as the aforementioned "legacy method."

               

              The method getException() MIGHT be used for getting Exception from ExceptionInInitializerError!

               

              So JBoss really needs to be tested before releasing. Extremely unstable (not this case only, but lots of bugs) release!

              • 4. Re: cannot be cast to java.lang.RuntimeException
                Dmitry Popov Newbie

                I must also notice, that my service client & server parts contain jboss-wsse descriptors (and service is correctly deployed to JBoss)

                exactly following instructions in:

                http://www.developer.com/java/other/article.php/10936_3802631_4/Securing-Web-Services-in-JBoss-Application-Server-with-WS-Security.htm

                 

                For insecured simple web-services wsrunclient.bat works correctly. Also, in insecured WS it's simply possible to call WS method not

                by executing wsrunclient.bat with main method of class of jar, but just from java code (f.e. from java Main-method or EJB Stateless Bean).

                But there are no examples for doing this with secured WS (even with handly writing <wsse:security> element to <soap:Header> through Dispatch or something alike). So calling secured method is exampled only with extra-buggy wsrunclient.bat.

                 

                I MUST also say, that the link above is THE ONLY real simple and complete example of WSSecurity for JBoss.

                JBoss wiki and documentation really lacks of it. The insimple and halfly-not-complete http://community.jboss.org/wiki/JBossWS-Securityandattachmentssample sample can't be understood and executed fastly and easily.

                This file is not dedicated simply to explaining WS-Security, but some horrible MTOM\XOP & SwaRef are present instead, that are completely not needed for having a sample of WS-Security and understanding how it works.

                • 5. Re: cannot be cast to java.lang.RuntimeException
                  Rainer Zufall Newbie

                  Hi,

                   

                  I got asimilar problem with webservices and JBoss.

                  I’m using EAR project, a .war-project is trying to connect to a Webservice which isrunning on Windows.

                  Using JBOSS5.1.0.GA, the errormessage after calling the webservice is:

                   

                  10:14:21,450 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=1

                  10:14:21,495 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:21,537 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:21,794 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=1

                  10:14:21,845 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:21,889 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:23,165 ERROR [CommonClient] Exception caughtwhile (preparing for) performing the invocation:

                  java.lang.UnsupportedOperationException: setPropertymust be overridden by all subclasses of SOAPMessage

                          atjavax.xml.soap.SOAPMessage.setProperty(Unknown Source)

                          atorg.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)

                          atorg.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)

                          atorg.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:57)

                          atorg.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:157)

                          atorg.jboss.ws.core.CommonClient.invoke(CommonClient.java:290)

                         atorg.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)

                          atorg.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)

                          atorg.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)

                          at$Proxy289.callGetImportHistory(Unknown Source)

                          atde.bva.xyz.saimport.SAImport_SessionBean.requestImportHistory(SAImport_SessionBean.java:73)

                          atde.bva.xyz.saimport.SAImport_SessionBean.getImportHistory(SAImport_SessionBean.java:395)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)

                          atsun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                          atsun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                          atjava.lang.reflect.Method.invoke(Unknown Source)

                          atjavax.el.BeanELResolver.getValue(BeanELResolver.java:62)

                          atjavax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)

                          atcom.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)

                          atorg.apache.el.parser.AstValue.getValue(AstValue.java:118)

                          atorg.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

                          atorg.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)

                          atjavax.faces.component.UIData.getValue(UIData.java:609)

                          atorg.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)

                          atorg.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)

                          atorg.richfaces.component.UIExtendedDataTable.resetDataModel(UIExtendedDataTable.java:390)

                          atorg.ajax4jsf.component.UIDataAdaptor.beforeRenderResponse(UIDataAdaptor.java:1653)

                          atorg.richfaces.component.UIExtendedDataTable.beforeRenderResponse(UIExtendedDataTable.java:412)

                          atorg.ajax4jsf.component.RenderPhaseUIDataAdaptorVisitor.beforeComponent(RenderPhaseUIDataAdaptorVisitor.java:44)

                          atorg.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:47)

                          atorg.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)

                          atorg.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)

                          at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)

                          atorg.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:71)

                          atorg.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:185)

                          atorg.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:502)

                          atjavax.faces.component.UIComponent.encodeAll(UIComponent.java:928)

                          atcom.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

                          atcom.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

                          atorg.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

                          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

                          atcom.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

                          atcom.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

                          atcom.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

                          atjavax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

                          atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          atorg.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

                          atorg.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)

                          atorg.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)

                          atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                          atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                          atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                          atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                          atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                          atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                          atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                          atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                          atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                          atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                          atorg.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                          atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                          atjava.lang.Thread.run(Unknown Source)

                  10:14:23,602 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=1

                  10:14:23,682 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:23,749 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:23,883 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=1

                  10:14:23,927 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:23,973 WARN  [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://myserver.domain.com:8000/XYZsoaImport?xsd=2

                  10:14:24,568 ERROR [CommonClient] Exception caughtwhile (preparing for) performing the invocation:

                  java.lang.UnsupportedOperationException: setPropertymust be overridden by all subclasses of SOAPMessage

                          atjavax.xml.soap.SOAPMessage.setProperty(Unknown Source)

                          atorg.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)

                          atorg.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)

                          atorg.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:57)

                          atorg.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:157)

                          atorg.jboss.ws.core.CommonClient.invoke(CommonClient.java:290)

                          atorg.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)

                          atorg.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)

                          atorg.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)

                          at$Proxy289.callGetImportHistory(Unknown Source)

                          atde.bva.xyz.saimport.SAImport_SessionBean.requestImportHistory(SAImport_SessionBean.java:73)

                          atde.bva.xyz.saimport.SAImport_SessionBean.getImportHistory(SAImport_SessionBean.java:395)

                          atsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          atsun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                          atsun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                          atjava.lang.reflect.Method.invoke(Unknown Source)

                          atjavax.el.BeanELResolver.getValue(BeanELResolver.java:62)

                          atjavax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)

                          atcom.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)

                          atorg.apache.el.parser.AstValue.getValue(AstValue.java:118)

                          atorg.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

                          atorg.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)

                          atjavax.faces.component.UIData.getValue(UIData.java:609)

                          atorg.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)

                          atorg.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)

                          atorg.richfaces.component.UIExtendedDataTable.createDataModel(UIExtendedDataTable.java:346)

                          atorg.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)

                          atorg.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:1151)

                          atorg.richfaces.renderkit.AbstractExtendedRowsRenderer.encodeRows(AbstractExtendedRowsRenderer.java:159)

                          at org.richfaces.renderkit.AbstractExtendedRowsRenderer.encodeRows(AbstractExtendedRowsRenderer.java:142)

                          atorg.richfaces.renderkit.AbstractExtendedRowsRenderer.encodeChildren(AbstractExtendedRowsRenderer.java:191)

                          atjavax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

                          atjavax.faces.component.UIComponent.encodeAll(UIComponent.java:930)

                          atjavax.faces.render.Renderer.encodeChildren(Renderer.java:148)

                          atjavax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

                          atorg.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)

                          atorg.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)

                          atorg.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)

                          atorg.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)

                          atorg.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)

                          atjavax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

                          atjavax.faces.component.UIComponent.encodeAll(UIComponent.java:930)

                          atjavax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

                          atcom.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

                          atcom.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

                          atorg.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

                          atorg.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

                          atcom.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

                          atcom.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

                          atcom.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

                          atjavax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

                          atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                          atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          atorg.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

                          atorg.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

                          atorg.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)

                          atorg.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)

                          atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                          atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          atorg.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                          atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                          atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                          atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                          atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                          atorg.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

                          atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                          atorg.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

                          atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                          atorg.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                          atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                          atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                          atorg.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                          atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                          atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                          atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                          atjava.lang.Thread.run(Unknown Source)

                   

                   

                   

                  JBOSS 5.1.0.GA is running on Linux Enterprise 10 SP2.

                  With Java SE Runtime 1.6.0_17.

                   

                  The strange thing about this problem is that the SAME EAR using the same webservice is running without errors when I’m using JBOSS 5.1.0.GA  running on WindowsXP with the SAME Java SE Runtime 1.6.0_17, only running on Linux produces the "

                  java.lang.UnsupportedOperationException: setPropertymust be overridden by all subclasses of SOAPMessage" - ErrorMessage

                  I tried to copy the libs in the /endorse/ directory, but the same message is thrown.

                  Sorry formy bad English, I’m not a native speaker.

                   

                  Any help would be very appreciated.