I know this is "unsupported", but I was eagerly awaiting some
improvement in error reporting and thus jumped at this as soon I saw
it. However, I get a sealing violation when I try to use it.
I've copied the required JARs to my personal lib directory and
verified that 1.0.1 is working as desired. I've then copied in the
locator jar and added the extension="true" and arg=-locator to my
XJC task.
I've included my ant-task declaration and the full stack-trace
below. Any ideas?
Thanks
Marcus
--- ANT TASK ---
<xjc extension="true"
schema="xml/customer/shub7.xsd"
target="src"
package="com.aspective.customer.events.outbound.xml.shub7"
classpath="classes">
<arg value="-locator" />
<arg value="-use-runtime"/>
<arg value="com.aspective.common.xml.jaxb.impl.runtime"/>
</xjc>
--- STACK-TRACE ---
java.lang.SecurityException: sealing violation: package com.sun.xml.bind is
sealed
at java.net.URLClassLoader.defineClass(URLClassLoader.java:225)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
com.sun.tools.xjc.addon.locator.SourceLocationAddOn.class$(SourceLocationAdd
On.java:65)
at
com.sun.tools.xjc.addon.locator.SourceLocationAddOn.run(SourceLocationAddOn.
java:66)
at com.sun.tools.xjc.Driver.generateCode(Driver.java:393)
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:330)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:277)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:221)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)