Check whether
META-INF/services/com.sun.tools.xjc.Plugin
in your jar contains the line
com.sun.tools.xjc.addon.code_injector.PluginImpl
There were some distributions where this was missing.
-W
On Mon, Mar 1, 2010 at 1:51 PM, Belliveau, Francis - 0995 - MITLL <
belliveau_at_ll.mit.edu> wrote:
> I am trying to use the Code Injector plug-in but it seems that the
> documentation does not match what I have available here.
>
> Two things do not work correctly.
>
> 1. The "-Xcode-injector" option does not seem to be supported.
>
> 2. Assuming that is might be turned on by default, I tried to use it any
> way but the XML containing jxb:extensionBindingPrefixes="ci" issues the
> complaint: [ERROR] Unsupported binding namespace "ci". In case there is
> some other problem with what I have in the XML file, the full XML header
> that I am using is:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <xs:schema xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:ci="http://jaxb.dev.java.net/plugin/code-injector"
> jxb:version="2.0"
> jxb:extensionBindingPrefixes="ci">
>
> and the version information that I get is:
> xjc version "2.1-b02-fcs"
>
> I have looked inside the JAR that I have and can see that the Code
> Injector is built into the JAXB JAR that I am using.
>
> Does anybody know what I might have wrong here?
>
> Thanks,
> Fran
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>