This is a tricky bug, but my understanding is that it has to do with
multiple versions of a class appearing in your classpath.  And for some
reason, all the examples of people having trouble that I have seen, have
involved XML parsers.  Specifically, parser.jar and xalan.jar can conflict
with each other.  Try playing around with your classpath.  In fact, most
people (myself included) believe it's a good idea when using Ant to have
your classpath unset and set it in your build.xml.  

K.C.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 19, 2001 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: sealing violation when running ANT...Help!
> 
> 
> Anyone know what this is when building one of the demo files.....
> 
> 
> 
> 
> mysolaris% ant -buildfile get.xml
> Buildfile: get.xml
> 
> BUILD FAILED
> 
> java.lang.SecurityException: sealing violation
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at java.lang.Throwable.fillInStackTrace(Compiled Code)
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Exception.<init>(Exception.java:42)
>         at java.lang.RuntimeException.<init>(RuntimeException.java:47)
>         at 
> java.lang.SecurityException.<init>(SecurityException.java:39)
>         at java.net.URLClassLoader.defineClass(Compiled Code)
>         at java.net.URLClassLoader.access$1(Compiled Code)
>         at java.net.URLClassLoader$1.run(Compiled Code)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.security.AccessController.doPrivileged(Compiled Code)
>         at java.net.URLClassLoader.findClass(Compiled Code)
>         at java.lang.ClassLoader.loadClass(Compiled Code)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>         at java.lang.ClassLoader.loadClass(Compiled Code)
>         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName0(Compiled Code)
>         at java.lang.Class.forName(Compiled Code)
>         at
> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
> 117)
>         at
> org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.jav
> a:706)
>         at org.apache.tools.ant.ProjectHelper.parse(Compiled Code)
>         at
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
> a:85)
>         at org.apache.tools.ant.Main.runBuild(Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:149)
> 
> Total time: 0 seconds
> sealing violation
> 

Reply via email to