- 
        1. Re: IllegalAnnotationsException, JAXB when running demosmanik Oct 19, 2009 6:35 AM (in response to syg6)Are you on JDK 5 or 6? 
- 
        2. Re: IllegalAnnotationsException, JAXB when running demossyg6 Oct 19, 2009 7:22 AM (in response to syg6)I've got a whole bunch of JDKs installed by my JAVA_HOME currently points to 1.6. 
 Infinispan should work with both 1.5 and 1.6, no?
- 
        3. Re: IllegalAnnotationsException, JAXB when running demosmanik Oct 19, 2009 9:55 AM (in response to syg6)yes, it's just that JDK6 comes with its own JAXB libs. Try removing the JAXB libs from your Infinispan classpath and try again, since JDK6 already provides this. 
- 
        4. Re: IllegalAnnotationsException, JAXB when running demossyg6 Oct 19, 2009 10:10 AM (in response to syg6)Just wanted to give you a little more info. I had both JWSDP 1.6 and 2.0 installed on my pc, and 1.6 was in my path. 
 I got rid of them as it seems they are ancient and furthermore JAXB comes bundled with JDK 1.6 anyway, so I imagine it's best to use the JDK version.
 But the problem persists, I can't run the gui demo, interactive tutorial or any demo at all that tries to load an xml config file.
 Thanks for any help,
 Bob
- 
        5. Re: IllegalAnnotationsException, JAXB when running demossyg6 Oct 19, 2009 10:44 AM (in response to syg6)"manik.surtani@jboss.com" wrote: 
 yes, it's just that JDK6 comes with its own JAXB libs. Try removing the JAXB libs from your Infinispan classpath and try again, since JDK6 already provides this.
 Hmmm ... I can see where when you launch the guiDemo it creates a 'my_classpath' that has a whole bunch of jars in it. But none of them seem to have anything to do with JAXB.
 In order to run the interactive tutorial the instructions say to copy the following jars to <hom_dir>/.groovy/lib:
 infinispan-core.jar
 jboss-common-core-2.2.14.GA.jar
 jboss-transaction-api-1.0.1.GA.jar
 jcip-annotations-1.0.jar
 jgroups-2.8.0.CR2.jar
 log4j-1.2.14.jar
 marshalling-api-1.2.0.CR4.jar
 river-1.2.0.CR4.jar
 None of these have any JAXB references either.
 And in my demo app I am using those same jars, nothing else.
 So how is some alternate JAXB creeping into my classpath?
- 
        6. Re: IllegalAnnotationsException, JAXB when running demossyg6 Oct 20, 2009 6:31 AM (in response to syg6)In the end it was (seemingly) a problem with my version of JDK 6. I had a rather ancient version installed, perhaps the first release (though not beta) and it just wasn't working. 
 So I downloaded and installed JDK 1.6 u16 and now the demo works.
 FYI, for anyone else suffering with this problem.
 Cheers,
 Bob
- 
        7. Re: IllegalAnnotationsException, JAXB when running demosmanik Oct 20, 2009 7:28 AM (in response to syg6)Thanks for letting us know the workaround; it is a really weird problem though, and no wonder I couldn't recreate it. 
- 
        8. Re: IllegalAnnotationsException, JAXB when running demosgirishadat Jun 23, 2010 9:28 AM (in response to syg6)Thanks Robert. I also faced this problem with JDK 1.6 update 2 and it is got solved when I tried with update 20. 
 
     
    