Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-988

WSDL generation fails (SU built by servicemix-jsr181-annotated-service-unit archetype)

    XMLWordPrintableJSON

Details

    Description

      If you build a SU using the servicemix-jsr181-annotated-service-unit, it generates a pom.xml file which calls upon XFire's wsdlgen to generate a WSDL file. However, this WSDL generation fails with this exception:

      Embedded error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in file [C:\opt\project\jsr181-sample\wsdl-generate-sample\wsdlgen-jsr181-su\src\main\resources\services.xml]: Error setting property values; nested
      exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class
      ] for property 'serviceClass'; nested exception is java.lang.IllegalArgumentException: Class not found: com.sample.ExampleService]
      

      Seems like the generator can't find the class, but yet the configuration for the Ant task looks correct...

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: