users@jaxb.java.net

XJC Plugin

From: Ringeman, Kenneth <ken.ringeman_at_gilbarco.com>
Date: Tue, 22 Apr 2008 10:39:16 -0700

I downloaded a plugin jar from JAXB2_Commons and have had problems
getting it to run.
XJC finds the plugin but throws an exception that the plugin provider
can not be cast to the com.sun.xjc.tools.Plugin class.
After many different tries I decided I needed to debug this problem.
I downloaded the source for xjc and built it and the same issue existed.
I downloaded the plugin source, built it within the same project as xjc
and the same issue still existed.
I then moved the plugin from the package
"org.jvnet.jaxb2_commons.defaultvalueplugin" to the
"com.sun.tools.xjc.addon.defaultvalueplugin" package in the xjc project.
This move got the plugin to work.
What do I need to configure to get these plugins to work without
performing the above process and using my own build of xjc?
I'm using jaxb-ri-20071219 and associated xjc.
 
ken


This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.