users@jaxb.java.net

XJC Fluent plugin not a subtype error

From: Prinn, Colin <colin.prinn_at_airnz.co.nz>
Date: Mon, 5 Nov 2012 19:57:01 +0000

Hi there,
I'm having trouble using the XJC fluent api plugin.
Every time I try to run the XJC ant task to generate java source code, I get the following error:

java.util.ServiceConfigurationError: com.sun.tools.xjc.Plugin: Provider org.jvnet.jaxb2_commons.plugin.fluent_api.FluentApiPlugin not a subtype

The ant task calling the xjc plugin looks as follows:

        <xjc destdir="${generate.src.dir}"
             extension="true"
             binding="${resources.dir}/jaxb-bindings.xml">
            <schema dir="${xsd.dir}"/>
        </xjc>

And my build libs are as follows:

        jaxb-api.jar
        jaxb-impl-2.2.6.jar
        jaxb-xjc-2.2.6.jar
        jaxb2-fluent-api-3.0.jar


Any thoughts?

Thanks in advance,
Kind regards,
Colin Prinn

Good planets are hard to find - please think of the environment before you print this email.
____________________________________________________________________
CAUTION - This message may contain privileged and confidential
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby
notified that any use, dissemination, distribution or reproduction
of this message is prohibited. If you have received this message in
error please notify Air New Zealand immediately. Any views expressed
in this message are those of the individual sender and may not
necessarily reflect the views of Air New Zealand.
_____________________________________________________________________
For more information on the Air New Zealand Group, visit us online
at http://www.airnewzealand.com
_____________________________________________________________________