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

Not working with jboss-deployment-structure.xml

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2017.2.0
    • 2017.3.3, 2017.5.0
    • core
    • None
    • 2017-Mar-A
    • 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.

      Attachments

        Activity

          People

            bmcwhirt@redhat.com Bob McWhirter (Inactive)
            emag_jira Yoshimasa Tanabe (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: