1 Reply Latest reply on Nov 1, 2011 8:01 AM by Rajesh Kumar

    javax.xml.soap.SOAPException: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws. core.soap.MessageFactoryImpl

    Rajesh Kumar Newbie

      Hi All,

       

          I am trying to implement my Webservice program in jdk1.6.

      But I get the following error while trying to access it.

       

       

      ERROR [SOAPFaultExceptionHelper] SOAP request exception

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

              at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)

              at org.jboss.ws.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:65)

              at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:209)

              at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:142)

              at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:190)

              at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)

              at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

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

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

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

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

              at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)

              at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

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

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

              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

              at java.lang.Thread.run(Thread.java:619)

      15:48:21,467 ERROR [SOAPFaultExceptionHelper] Error creating SOAPFault message

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

              at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)

              at org.jboss.ws.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:65)

              at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:115)

              at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultExceptionHelper.java:203)

              at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:188)

              at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:223)

              at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)

              at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

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

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

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

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

              at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)

              at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

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

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

              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

              at java.lang.Thread.run(Thread.java:619)

      15:48:21,467 ERROR [StandardEndpointServlet] Error processing web service request

      javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rpc.soap.SOAPFaultException: setProperty must be overridden by all subcl

      asses of SOAPMessage

              at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:194)

              at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:223)

              at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)

              at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

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

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

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

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

              at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)

              at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

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

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

              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

              at java.lang.Thread.run(Thread.java:619)

      15:48:21,467 ERROR [[OutBoundBean]] Servlet.service() for servlet OutBoundBean threw exception

      javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rpc.soap.SOAPFaultException: setProperty must be overridden by all subcl

      asses of SOAPMessage

              at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:194)

              at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:223)

              at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)

              at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

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

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

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

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

              at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)

              at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

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

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

              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

              at java.lang.Thread.run(Thread.java:619)

       

      After this, I added the jbossws-native-saaj.jar file alone in <JBOSS_HOME>/lib/endorsed folder.

       

      Then I get the following error

       

      ERROR [STDERR] javax.xml.soap.SOAPException: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws.

      core.soap.MessageFactoryImpl

      ERROR [STDERR]     at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:76)

       

       

      while trying to access the line

       

      MessageFactory messageFactory = MessageFactory.newInstance();

       

      Note: It is running fine in jdk1.5.

      I am using Jboss4.0.5.GA

       

      Please help to fix this issue.