You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Do...@capgroup.com on 2001/03/19 20:14:22 UTC

thanks and manuals: sealing violation when running ANT...Help!

Thanks...Sorry for the repeated question, but I just joined and am new to
Ant and haven't seen the conversations about sealing violations....In any
case, I fixed my classpath and everything seems to work....

Another question: I noticed that documentation for the "built in tasks" for
Ant at http://jakarta.apache.org/ant/manual/index.html are all on different
screens....

Does anyone have a printable version of the built in (core) tasks, as well
as the optional tasks.




                                                                                          
                    KC Baltz                                                              
                    <KBaltz@responsenet        To:     "'ant-user@jakarta.apache.org'"    
                    works.com>                 <an...@jakarta.apache.org>              
                                               cc:                                        
                    03/19/01 10:29 AM          Subject:     RE: sealing violation when    
                    Please respond to          running ANT...Help!                        
                    ant-user                                                              
                                                                                          
                                                                                          




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: Douglas_Wong@capgroup.com [mailto:Douglas_Wong@capgroup.com]
> Sent: Monday, March 19, 2001 12:54 PM
> To: ant-user@jakarta.apache.org
> 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
>





Re: thanks and manuals: sealing violation when running ANT...Help!

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
From: <Do...@capgroup.com>
>
> Another question: I noticed that documentation for the "built in tasks"
for
> Ant at http://jakarta.apache.org/ant/manual/index.html are all on
different
> screens....
>
> Does anyone have a printable version of the built in (core) tasks, as
well
> as the optional tasks.
>

No printable version is available. If someone wants to make a PDF, I will
put it in the distribution. We will hopefully have this addressed in the
next version of Ant.

Cheers
Conor