This is the error I was getting:
CommandCore.xjc-typedef-target:
/xxx/nbproject/build-impl.xml:582: The following error occurred while executing this line:
/xxx/nbproject/build-impl.xml:1061: The following error occurred while executing this line:
/xxx/nbproject/xml_binding_build.xml:8: typedef A class needed by class com.sun.tools.xjc.XJCTask cannot be found: org/apache/tools/ant/DynamicConfigurator
using the classloader AntClassLoader[/Applications/NetBeans/NetBeans 7.1.2.app/Contents/Resources/NetBeans/ide/modules/ext/jaxb/jaxb-impl.jar:/Applications/NetBeans/NetBeans 7.1.2.app/Contents/Resources/NetBeans/ide/modules/ext/jaxb/activation.jar:/Applications/NetBeans/NetBeans 7.1.2.app/Contents/Resources/NetBeans/ide/modules/ext/jaxb/jaxb1-impl.jar:/Applications/NetBeans/NetBeans 7.1.2.app/Contents/Resources/NetBeans/ide/modules/ext/jaxb/jaxb-xjc.jar:/Applications/NetBeans/NetBeans 7.1.2.app/Contents/Resources/NetBeans/ide/modules/ext/jaxb/api/jaxb-api.jar:/Applications/NetBeans/NetBeans 7.1.2.app/Contents/Resources/NetBeans/ide/modules/ext/jaxb/api/jsr173_api.jar]
BUILD FAILED (total time: 0 seconds)
When I checked the Extensions directory of course these were the culprits:
[email protected]:/Library/Java/Extensions > ls
FastInfoset.jar jaxb-impl.jar jsr173_api.jar policy.jar streambuffer.jar
activation.jar jaxb-xjc.jar jsr181-api.jar resolver.jar woodstox.jar
gmbal-api-only.jar jaxws-api.jar jsr250-api.jar saaj-api.jar
http.jar jaxws-rt.jar management-api.jar saaj-impl.jar
jaxb-api.jar jaxws-tools.jar mimepull.jar stax-ex.jar
Simply moving these out fixed the issue.
-i