Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-6059

Improve logging by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.2
    • None
    • kernel
    • None

    Description

      In case we instantiate an Axis2 client without the axis2-jaxws dependency, we get the warning:

      Warning

      WARNING: Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer; see debug logs for more details

      It's caused by the block of code (424-451) in org.apache.axis2.deployment.AxisConfigBuilder

       

      for (Iterator<OMElement> itr = element.getChildrenWithName(new QName(
      TAG_SERVICE_BUILDER_EXTENSION)); itr.hasNext() {
      ...
      catch (Throwable e) {
          log.warn("Unable to instantiate deployer " + deployerClassName
          + "; see debug logs for more details");
          log.debug(e.getMessage(), e);
          continue;
      }

      and is confusing: actually we were able to instantiate the deployer, we just were unable to load an extension for it.

      The actual extension not being found is 

      org.apache.axis2.jaxws.framework.JAXWSServiceBuilderExtension

      It should be explicitly clear that the 

      ServiceDeployer 

      is ok.

      It caused questions like this: https://stackoverflow.com/questions/55965081/unable-to-instantiate-deployer-org-apache-axis2-deployment-servicedeployer-how-t

      Attachments

        Activity

          People

            Unassigned Unassigned
            leokom Leonid Rozenblyum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: