I would guess that you're running XJC under Java6, and have the jaxb-api.jar on your classpath. The classes from the Java6 runtime are clashing with the classes in jaxb-api.jar.
Remove the JAR from the classpath, that should fix it (if that's that's what the problem is).