1 Reply Latest reply on Apr 7, 2008 8:38 AM by dkulp_dkulp

    Bad Enumeration Value: 'extension restriction' when using java2wsdl

    quonn

      Hi all,

      I am new in using Fuse Service Framework (and CXF of course). Trying to create the wsdl of a Java Web Service for wich i have written the SEI I get this:

       

      org.apache.cxf.tools.common.ToolException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'.

       

      Even if I have tried to use -verbose option I am not able to track wich part of my code is throwing the Exception in order to be able to use a workaround.

      I know that this is a bug of the CXF that has not yet been solved (https://issues.apache.org/jira/browse/CXF-1388)...but I need some testing helps to understand who is causing that in my code...

      Thanks a lot for your support

        • 1. Re: Bad Enumeration Value: 'extension restriction' when using java2wsdl
          dkulp_dkulp

          This is a bug in XmlSchema 1.3.x.  We have a bug logged at apache to track it:

          https://issues.apache.org/jira/browse/CXF-1388

           

          The good news is that XmlSchema 1.4 was just released this past weekend and it fixes it.   However, 1.4 is not binary compatible with 1.3 so it's not a simple "drop in replacement" for 1.3.    I'll be working to get CXF ported over to using 1.4 today.

           

          The main cause of this is if you have jaxb beans that are declared "final".   In general, if you take the final qualifier off the classes, it may work as jaxb won't generate the "extension restriction" attributes. 

           

          Dan