users@jaxb.java.net

Code Injector problems

From: Belliveau, Francis - 0995 - MITLL <belliveau_at_ll.mit.edu>
Date: Mon, 1 Mar 2010 07:51:57 -0500

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