Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-201

InjectionIntoWebServiceEndPointTest bundles incorrect artifacts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.4.CR2
    • 1.0.4.CR1
    • Tests
    • None
    • Release Notes

    Description

      This is a problem with TCK not bundling correct web service artifacts which causes mismatch between client and server. Service has:

      @WebService(name="SheepWS")
      public class SheepWSEndPoint
      {
      ...

      @WebMethod
      public boolean testSheepInjected()

      { return (sheep != null) && initializerCalled; }

      }

      WSDL is created by the runtime/tools using testSheepInjected() method. So without customizations, wsimport generates the following artifacts from that wsdl:
      WEB-INF/classes/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/TestSheepInjected.class
      WEB-INF/classes/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/TestSheepInjectedResponse.class

      But, the bundled artifacts in the war are :
      WEB-INF/classes/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/IsSheepInjected.class
      WEB-INF/classes/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/ws/IsSheepInjectedResponse.class

      and the annotations in these classes don't reflect what WSDL has(or what service is expecting)

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jharting Jozef Hartinger
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty