I am encountering an OutOfMemoryError compiling our schema
with the JAXB from jwsdp-1.3. This same schema compiles
fine using the JAXB from jwsdp-1.2. I can flip back and forth
between the two quickly and the error only occurs with jwsdp-1.3
I added the following command line arguments when running
XJC and still have the problem: -Xss2m -Xmx512m
There is plenty of free RAM on my machine so that should not
be the problem.
What am I doing wrong? There error message isn't very helpful.
Here is the output from XJC.
parsing a schema...
compiling a schema...
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.OutOfMemoryError