users@jaxb.java.net

Re: xjc plugin

From: Peter Michaels <peter.michaels_at_gmail.com>
Date: Tue, 13 Mar 2007 13:44:10 -0400

This is the message that I am getting, no other error messages. I have
created a META-ING/services/com.sun.tools.xjc.Plugin text file
containing the package and name of my class.

Looking for META-INF/services/com.sun.tools.xjc.Plugin for add-ons
Checking jar:file:/C:/jwsdp-2.0/jaxb/lib/jaxb-xjc.jar!/META-INF/services/com.sun.tools.xjc.Plugin
for an add-on
Attempting to instanciate com.sun.tools.xjc.addon.locator.SourceLocationAddOn
Attempting to instanciate com.sun.tools.xjc.addon.sync.SynchronizedMethodAddOn
Attempting to instanciate com.sun.tools.xjc.addon.at_generated.PluginImpl
unrecognized parameter -force-annot


Peter


> Peter Michaels wrote:
> > Hi,
> >
> > I am trying to create a plugin that will overwrite the default
> > @XmlAccessorType. I am running into a problem of running the plugin
> > from the command line. This is my command string, but each time jaxb
> > reports that the parameter can't be found:
> >
> > xjc -cp c:\temp\xjcplugin.jar -force-annot -d generated -p
> > com.company.project -xmlschema c:\temp\fts.xml
>
> Can you paste the error message?
>
> Also try setting the system property to get the debug output:
>
> java -Dcom.sun.tools.xjc.Options.findServices=true -jar jaxb-xjc.jar
> ...options...
>
> > I've tried using JAXB 2.0 and 2.1.2 but no luck. I also can't seem to
> > get any of the other plugins to run in this way, I've tried camelcase.
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>