CXF 2.4.2: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http

后端 未结 8 1712
天命终不由人
天命终不由人 2020-12-01 18:05

I have a service client generated from wsdl. I am trying to call the remote service and I recieve the conduit initiator error seen below. I have tried numerous solutions w

8条回答
  •  旧时难觅i
    2020-12-01 18:46

    I was also facing the same issue. Through IntelliJ everything was working fine but maven surefire was throwing up error. And finally found the answer. Here it is:

    Basically the cxf libraries each supply a META-INF/cxf/bus-extensions.txt file and the default behavior of the packager is to replace that file, causing it to be incomplete. By configuring the shader to append instead of replace the cxf stuff will behave correctly.

    Add this to your build section of your pom in the plugins section:

      
        org.apache.maven.plugins
        maven-shade-plugin
        1.4
        
          true
        
        
          
            package
            
              shade
            
            
              
                
                  META-INF/cxf/bus-extensions.txt
                
              
              
                
                  *:*
                  
                    META-INF/*.SF
                    META-INF/*.DSA
                    META-INF/*.RSA
                  
                
              
            
          
        
      
    

提交回复
热议问题