I'd like to compile the JAXB samples but my IDE (IDEA 3.0.4) on OSX is
telling me that "xjc" is not allowed in the build.xml file. This occurs
in all JAXB sample build files, in the following section of the build
file.
<!-- generate the Java content classes from the schema -->
<echo message="Compiling the schema..."/>
<xjc schema="po.xsd" target="." package="primer.po"/>
At this point I have loaded the correct Jar files (as described in the
JAXB Release Notes) into my classpath and loaded the whole WSDP folder
into my IDEA project. I loaded all of WSDP due to dependancies between
the different parts.
When I invoke the run (or compile) task in the build file of a sample
like samples/unmarshal-read the Task:xjc message gives me the following
output:
Compiling
file:/A_WSDP_1.2/WSDP-install/jaxb/samples/unmarshal-read/po.xsd
java.lang.lllegalAccessError: tried to access method
org.apache.xerces.util.ObjectFactory.findClassLoader()Ljava/lang/
ClassLoader; from class org.apache.xerces.parsers.XMLGrammarPreparser
The Main.java file is also indicating that "import primer.po*" is not
available. This should be available after a successful build, right?
Hope I'm doing things correct, how can I get this to work for me? This
is my attempt so far, I'm not use to working with an Ant file that is
setup to be interdependent on multiple folders in WSDP 1.2. Is there a
better way to do this in IDEA?
Thom