No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/https












0















I have built this simple web service with Netbeans which deploys successfully when using tomcat server. I am attempting to deploy it using wildfly 14 but I get this error:



org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/https.


After some research I found suggestions that I should add cxf-rt-transports-http-xx-xxx in my classpath which I did but the error changes to:




Apache CXF library (cxf-rt-transports-http-3.2.5-jbossorg-1.jar)
detected in ws endpoint deployment; either provide a proper deployment
replacing embedded libraries with container module dependencies or
disable the webservices subsystem for the current deployment adding a
proper jboss-deployment-structure.xml descriptor to it. The former
approach is recommended, as the latter approach causes most of the
webservices Java EE and any JBossWS specific functionality to be
disabled.




Here is my service:



@WebService(serviceName = "Estatements")
public class Estatements {

@Resource
private WebServiceContext context;
private static final Log log = LogFactory.getLog("origlogger");

@WebMethod(operationName = "generateStatement")
public List<ServiceBean> generateStatement(@WebParam(name = "accountNumber") String accountNumber, @WebParam(name = "fromDate_dd-MMM-yyyy") String fromDate, @WebParam(name = "toDate_dd-MMM-yyyy") String toDate) {
List<ServiceBean> srvs = new ArrayList<ServiceBean>();
ServiceBean srv = new ServiceBean();
ServletContext servletContext
= (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);
if (Customer.accountIsValid(accountNumber, (String) servletContext.getAttribute("propfile"))) {
if (isValidDate(fromDate)) {
if (isValidDate(toDate)) {
Statement st = new Statement();
st.formatreport(accountNumber, fromDate, toDate, (String) servletContext.getAttribute("propfile"), (String) servletContext.getAttribute("logopath"), (String) servletContext.getAttribute("pdfdir"));
srv.setCode("000");
srv.setMessage("Statement Generated Successfully");
srvs.add(srv);
} else {
srv.setCode("999");
srv.setMessage("To Date is Invalid");
srvs.add(srv);
}

} else {
srv.setCode("999");
srv.setMessage("From Date is Invalid");
srvs.add(srv);
}

} else {
srv.setCode("999");
srv.setMessage("Account Number is Invalid");
srvs.add(srv);
}
return srvs;
}

}


Is there anything else I can try?










share|improve this question



























    0















    I have built this simple web service with Netbeans which deploys successfully when using tomcat server. I am attempting to deploy it using wildfly 14 but I get this error:



    org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/https.


    After some research I found suggestions that I should add cxf-rt-transports-http-xx-xxx in my classpath which I did but the error changes to:




    Apache CXF library (cxf-rt-transports-http-3.2.5-jbossorg-1.jar)
    detected in ws endpoint deployment; either provide a proper deployment
    replacing embedded libraries with container module dependencies or
    disable the webservices subsystem for the current deployment adding a
    proper jboss-deployment-structure.xml descriptor to it. The former
    approach is recommended, as the latter approach causes most of the
    webservices Java EE and any JBossWS specific functionality to be
    disabled.




    Here is my service:



    @WebService(serviceName = "Estatements")
    public class Estatements {

    @Resource
    private WebServiceContext context;
    private static final Log log = LogFactory.getLog("origlogger");

    @WebMethod(operationName = "generateStatement")
    public List<ServiceBean> generateStatement(@WebParam(name = "accountNumber") String accountNumber, @WebParam(name = "fromDate_dd-MMM-yyyy") String fromDate, @WebParam(name = "toDate_dd-MMM-yyyy") String toDate) {
    List<ServiceBean> srvs = new ArrayList<ServiceBean>();
    ServiceBean srv = new ServiceBean();
    ServletContext servletContext
    = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);
    if (Customer.accountIsValid(accountNumber, (String) servletContext.getAttribute("propfile"))) {
    if (isValidDate(fromDate)) {
    if (isValidDate(toDate)) {
    Statement st = new Statement();
    st.formatreport(accountNumber, fromDate, toDate, (String) servletContext.getAttribute("propfile"), (String) servletContext.getAttribute("logopath"), (String) servletContext.getAttribute("pdfdir"));
    srv.setCode("000");
    srv.setMessage("Statement Generated Successfully");
    srvs.add(srv);
    } else {
    srv.setCode("999");
    srv.setMessage("To Date is Invalid");
    srvs.add(srv);
    }

    } else {
    srv.setCode("999");
    srv.setMessage("From Date is Invalid");
    srvs.add(srv);
    }

    } else {
    srv.setCode("999");
    srv.setMessage("Account Number is Invalid");
    srvs.add(srv);
    }
    return srvs;
    }

    }


    Is there anything else I can try?










    share|improve this question

























      0












      0








      0








      I have built this simple web service with Netbeans which deploys successfully when using tomcat server. I am attempting to deploy it using wildfly 14 but I get this error:



      org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/https.


      After some research I found suggestions that I should add cxf-rt-transports-http-xx-xxx in my classpath which I did but the error changes to:




      Apache CXF library (cxf-rt-transports-http-3.2.5-jbossorg-1.jar)
      detected in ws endpoint deployment; either provide a proper deployment
      replacing embedded libraries with container module dependencies or
      disable the webservices subsystem for the current deployment adding a
      proper jboss-deployment-structure.xml descriptor to it. The former
      approach is recommended, as the latter approach causes most of the
      webservices Java EE and any JBossWS specific functionality to be
      disabled.




      Here is my service:



      @WebService(serviceName = "Estatements")
      public class Estatements {

      @Resource
      private WebServiceContext context;
      private static final Log log = LogFactory.getLog("origlogger");

      @WebMethod(operationName = "generateStatement")
      public List<ServiceBean> generateStatement(@WebParam(name = "accountNumber") String accountNumber, @WebParam(name = "fromDate_dd-MMM-yyyy") String fromDate, @WebParam(name = "toDate_dd-MMM-yyyy") String toDate) {
      List<ServiceBean> srvs = new ArrayList<ServiceBean>();
      ServiceBean srv = new ServiceBean();
      ServletContext servletContext
      = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);
      if (Customer.accountIsValid(accountNumber, (String) servletContext.getAttribute("propfile"))) {
      if (isValidDate(fromDate)) {
      if (isValidDate(toDate)) {
      Statement st = new Statement();
      st.formatreport(accountNumber, fromDate, toDate, (String) servletContext.getAttribute("propfile"), (String) servletContext.getAttribute("logopath"), (String) servletContext.getAttribute("pdfdir"));
      srv.setCode("000");
      srv.setMessage("Statement Generated Successfully");
      srvs.add(srv);
      } else {
      srv.setCode("999");
      srv.setMessage("To Date is Invalid");
      srvs.add(srv);
      }

      } else {
      srv.setCode("999");
      srv.setMessage("From Date is Invalid");
      srvs.add(srv);
      }

      } else {
      srv.setCode("999");
      srv.setMessage("Account Number is Invalid");
      srvs.add(srv);
      }
      return srvs;
      }

      }


      Is there anything else I can try?










      share|improve this question














      I have built this simple web service with Netbeans which deploys successfully when using tomcat server. I am attempting to deploy it using wildfly 14 but I get this error:



      org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/https.


      After some research I found suggestions that I should add cxf-rt-transports-http-xx-xxx in my classpath which I did but the error changes to:




      Apache CXF library (cxf-rt-transports-http-3.2.5-jbossorg-1.jar)
      detected in ws endpoint deployment; either provide a proper deployment
      replacing embedded libraries with container module dependencies or
      disable the webservices subsystem for the current deployment adding a
      proper jboss-deployment-structure.xml descriptor to it. The former
      approach is recommended, as the latter approach causes most of the
      webservices Java EE and any JBossWS specific functionality to be
      disabled.




      Here is my service:



      @WebService(serviceName = "Estatements")
      public class Estatements {

      @Resource
      private WebServiceContext context;
      private static final Log log = LogFactory.getLog("origlogger");

      @WebMethod(operationName = "generateStatement")
      public List<ServiceBean> generateStatement(@WebParam(name = "accountNumber") String accountNumber, @WebParam(name = "fromDate_dd-MMM-yyyy") String fromDate, @WebParam(name = "toDate_dd-MMM-yyyy") String toDate) {
      List<ServiceBean> srvs = new ArrayList<ServiceBean>();
      ServiceBean srv = new ServiceBean();
      ServletContext servletContext
      = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);
      if (Customer.accountIsValid(accountNumber, (String) servletContext.getAttribute("propfile"))) {
      if (isValidDate(fromDate)) {
      if (isValidDate(toDate)) {
      Statement st = new Statement();
      st.formatreport(accountNumber, fromDate, toDate, (String) servletContext.getAttribute("propfile"), (String) servletContext.getAttribute("logopath"), (String) servletContext.getAttribute("pdfdir"));
      srv.setCode("000");
      srv.setMessage("Statement Generated Successfully");
      srvs.add(srv);
      } else {
      srv.setCode("999");
      srv.setMessage("To Date is Invalid");
      srvs.add(srv);
      }

      } else {
      srv.setCode("999");
      srv.setMessage("From Date is Invalid");
      srvs.add(srv);
      }

      } else {
      srv.setCode("999");
      srv.setMessage("Account Number is Invalid");
      srvs.add(srv);
      }
      return srvs;
      }

      }


      Is there anything else I can try?







      java web-services wildfly netbeans-8






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 3:39









      ErrorNotFoundExceptionErrorNotFoundException

      2,1612171132




      2,1612171132
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292859%2fno-destinationfactory-was-found-for-the-namespace-http-schemas-xmlsoap-org-soa%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53292859%2fno-destinationfactory-was-found-for-the-namespace-http-schemas-xmlsoap-org-soa%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini