Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1051

Not working with jboss-deployment-structure.xml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.2.0
    • Fix Version/s: 2017.3.3, 2017.5.0
    • Component/s: core
    • Labels:
      None
    • Sprint:
      2017-Mar-A
    • Steps to Reproduce:
      Hide
      git clone https://github.com/emag-wildfly-swarm-sandbox/wildfly-swarm-jboss-deployment-structure-demo.git &&\
      cd wildfly-swarm-jboss-deployment-structure-demo &&\
      ./mvnw clean package &&\
      java -jar target/wildfly-swarm-jboss-deployment-structure-demo-swarm.jar
      

      And access the API uses `org.apache.cxf.jaxws.JaxWsProxyFactoryBean`.

      curl 'localhost:8080/demo/api/hello?cxf-proxy=true'
      
      Show
      git clone https: //github.com/emag-wildfly-swarm-sandbox/wildfly-swarm-jboss-deployment-structure-demo.git &&\ cd wildfly-swarm-jboss-deployment-structure-demo &&\ ./mvnw clean package &&\ java -jar target/wildfly-swarm-jboss-deployment-structure-demo-swarm.jar And access the API uses `org.apache.cxf.jaxws.JaxWsProxyFactoryBean`. curl 'localhost:8080/demo/api/hello?cxf-proxy= true '

      Description

      It looks like -swarm doesn't honor jboss-deployment-structure.xml.

      I've created a sample uses `org.apache.cxf.jaxws.JaxWsProxyFactoryBean` which is in `org.apache.cxf.impl` module(cxf-rt-frontend-jaxws-3.1.6.jar) and has the following jboss-deployment-structure.xml to use the class.

      <?xml version="1.0"?>
      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
        <deployment>
          <dependencies>
            <module name="org.apache.cxf"/>
            <module name="org.apache.cxf.impl"/>
          </dependencies>
        </deployment>
      </jboss-deployment-structure>
      

      .
      The app works in normal WildFly, however, -swarm throw NoClassDefFoundError: org/apache/cxf/jaxws/JaxWsProxyFactoryBean.

      I attached the full error.log.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                4 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: