users@jaxb.java.net

Re: Making XJC plugins work with JAXB as endorsed in Java 1.6

From: pmeister <pmeister_at_gmail.com>
Date: Thu, 6 Sep 2007 11:00:27 -0700 (PDT)

Did you ever figure this out? I'm having the same issue, except that XJC
finds the plugin jar even if it's not in the endorsed directory. But it
does complain that
"org.jvnet.jaxb2_commons.tools.xjc.plugin.commons_lang.XjcCommonsLangPlugin
is not a subclass of class com.sun.tools.xjc.Plugin. Skipping". I also
suspect it's a classloader issue. I'm using xjc-2.1.4 through the ant
wrapper with ant 1.7.0.




Raymond Wold wrote:
>
> I just can't seem to make it work, has anyone else tried with any success?
>
> Using -Dcom.sun.tools.xjc.Options.findServices=true I find that XJC finds
> a
> plugin if, and only if, the plugin jar file also resides in the endorsed
> directory. And then it lists it as ignored since it "is not a subclass of
> class com.sun.tools.xjc.Plugin". Could this be because of some classloader
> issues, for instance that the com.sun.tools.xjc.Plugin that the plugin
> implements is loaded differently from the one the XJC does an instanceof
> check
> against? What other things should I try, in this case?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/Making-XJC-plugins-work-with-JAXB-as-endorsed-in-Java-1.6-tf4317067.html#a12528110
Sent from the java.net - jaxb users mailing list archive at Nabble.com.