users@jaxb.java.net

using annox plugin from within .xjb file

From: Lucas Madar <lucas_at_mcsnw.com>
Date: Thu, 25 Jun 2009 12:11:51 -0700

Hello,

I'm trying to use the annox plugin to generate some custom java
annotations for classes generated from a schema. However, unlike all the
samples, I can't change the particular schema - I have to use the .xjb
file to make custom bindings. I tried to do the "java.lang" sample that
is floating around, but I can't even get that to work. Here's some snippets:

<jaxb:bindings
     xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
     jaxb:version="2.1"
     xmlns:annox="http://annox.dev.java.net"
     jaxb:extensionBindingPrefixes="annox"
     xmlns:jl="http://annox.dev.java.net/java.lang">

<jaxb:bindings schemaLocation="testschema.xsd" node="/xs:schema">
<jaxb:bindings node="//xs:element[@name='testnode']">
<annox:annotate>
<jl:SuppressWarnings />
</annox:annotate>
</jaxb:bindings>
</jaxb:bindings>

I get:
       [xjc] [ERROR] Unsupported binding namespace
"http://annox.dev.java.net/java.lang". Perhaps you meant
"http://annox.dev.java.net"?
       [xjc] line 15 of file:/path/to/testschema.xsd (this is the line
that has the <xs:element name="testnode">)

Has anyone else run into this issue?

Thanks,
Lucas Madar