users@jaxb2-commons.java.net

RE: [namespace-prefix] XJC Plugin causes ClassCastException

From: <manuel.siggen_at_vd.ch>
Date: Fri, 17 Aug 2012 10:27:35 +0200

Hi Luc,


Luc <useyour.mind_at_gmail.com> a écrit sur 17.08.2012 09:35:57 :

>
> I've found the plugin namespace-prefix very useful.

Cool, thanks !

> But I found the
> same error as told in http://www.java.net/node/676027
> The only way of using it is re-compiling the com.sun.tools package,
> which I don't think is how is "developed" (or it would be uploaded
> with this package, right?).

What is your context ? Are you using the plugin with ant (or with some
Eclipse plugin) ?

The thread you linked above points to some classloader problem, so I
suspect the context of what your trying to do is important.


>
> My Java version:
> java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
> Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

I'm using the same java version, but I use the 'namespace-prefix' plugin
within the 'maven-jaxb2-plugin'.

Let me know,
Best regards,

              Manuel


________________________________________
Manuel Siggen - Ingénieur de développement logiciel
Etat de Vaud, Département des Infrastructures et des Ressources Humaines
(DIRH)
Direction des Systèmes d'Information (DSI)
Pôle Référentiels
Avenue de Longemalle 1, CH-1020 Renens
Tel:+41 (0)21 316 26 43 Fax:+41 (0)21 316 27 26
manuel.siggen_at_vd.ch - www.vd.ch