Martin Desruisseaux wrote:
> Jody Garnett a écrit :
>> I think I added the jaxb dependency as "provided" - can you confirm? 
>> That would mean they are not required for runtime correct...
>
> Yes, but the problem is elswhere.
>
> In "dummy-jaxb" every annotations were declared as @Retention(SOURCE). 
> Consequently they were wiped from the compiled class files.
> In the real JAXB every annotations are declared as 
> @Retention(RUNTIME). Consequently they are present in the compiled 
> class files.
>
> This is independant from the maven scope. Now JAXB dependencies 
> appears in the compiled class files. Trying to run metadata without 
> JAXB is likely to thrown NoClassDefError (I have not tested however).
Okay thanks for the clarification Martin; I was not aware of this 
side-effect of using the jaxb jars.  How can we test about the 
NoClassDefError? Well I can run uDig trunk using Java 5 and see if it 
still works; I don't have jaxb on my classpath ...

Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to