I got the folowing error while parsing the XSD to Java Object
Exception in thread \"main\" java.lang.IllegalArgumentException: Expected class ja
if you are running XJC under java6, consider this page: http://download.oracle.com/javase/6/docs/technotes/tools/share/xjc.html
Actually, xjc has been embedeed in jdk6 so you have to use 'xjc command' present in your JAVA_HOME/bin dir.