Hi. I'm using JAXB 2.1.7 for the first time, and am managing to generate the required files, but I seem to get a compile error in the generated package-info.java. Seems to me the package annotations are in package-info.java...any ideas? Thanks in advance.
I have encountered a similar problem when I compile generated classes with ant, then I tried your XJC trick by passing the -npa agrument via the wsimport -B argument. I clarify :
The problem is that I do not see any difference in the generated code : package-info.java files are still there with their annoying annotations .
My way to got round it was to use a v6 JVM, in fact I have no more annotations errors but this one :
I believe it has something to do with a difference between the embedded jax-ws version in java6 distrib (2.0 I guess) and the one I downloaded separately to use with the java5 release (2.1.3).
I have found something that could explain our common problem here, concerning the use of the javac command from jdk5. I guess it could be a good explanation of our worries as the eclipse compiler seems to not be annoyed by the package-info.java files.
Any idea of the less dirty solution to apply ? Thanks by advance for your help, your two precedent post were yet very helpful.
I am using : ant 1.7.0 with eclipse 3.3.2 JRE 1.5.0_12 or JRE 1.6.0_03 Windows XP SP3 [ August 14, 2008: Message edited by: Bob Marty ]