2 Replies Latest reply on Nov 28, 2012 3:28 PM by theoldbear

    jaxws, wsimport test configuration

    theoldbear

      I'm trying to configure testing of a 'contract first' web service, starting with a trival example.

      The example wsdl contains a single port, with one operation and input and output messages wrapping xs:string elements [about as simple a WSDL file that I could write].

       

      I'm looking to find or create a wsdl first test example, similar to the code first "arquillian-showcase-jaxws"

       

      In the test fixture's createDeployment() method, the empty WebArchive is created without problem.

       

      The attempt to create the WebAppDescriptor fails, thowing an exception

      Caused by: java.lang.IllegalArgumentException: No resource META-INF/services/org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor was found configured for user view class org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor

          at org.jboss.shrinkwrap.descriptor.api.DescriptorInstantiator.getDescriptorConstructionInfoForUserView(DescriptorInstantiator.java:240)

          at org.jboss.shrinkwrap.descriptor.api.DescriptorInstantiator.createFromUserView(DescriptorInstantiator.java:93)

          at org.jboss.shrinkwrap.descriptor.api.Descriptors.create(Descriptors.java:72)

          at org.jboss.shrinkwrap.descriptor.api.Descriptors.create(Descriptors.java:49)

          at com.company.service.ServiceEndpointTestCase.createDeployment(ServiceEndpointTestCase.java:41)

          ... 58 more

       

      Is a file [e.g. web.xml] needed to  part of either the src/main or src/test directlry tree?

       

      Is the location and content container/profile dependant?

       

      Does anyone have a working example project?

        • 1. Re: jaxws, wsimport test configuration
          aslak

          Sounds like you're missing the javaee-impl artifact for ShrinkWrap Descriptor:

           

          org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee

          1 of 1 people found this helpful
          • 2. Re: jaxws, wsimport test configuration
            theoldbear

            I have

             

            <dependency>

                        <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                        <artifactId>shrinkwrap-descriptors-api-javaee</artifactId>

                        <version>2.0.0-alpha-4</version>

            </dependency>

             

            in my pom - is this the wrong version, or are additional dependancies needed?