As a quick confirmation on my earlier post I rolled my ant installation back
to the 1.3 distribution. $ANT_HOME/lib now contains the following:
Readme
ant.jar
jaxp.jar
parser.jar

I then set my CLASSPATH to:

~/tools/lib/crimson.jar:~/tools/lib/jaxp.jar:~/tools/lib/jdbc2_0-stdext.jar:
~/tools/lib/servlet.jar:~/tools/lib/xalan.jar

Invoking ~/tools/struts/ant -buildfile build.xml bombs out on the sealing
violation :(

java.lang.SecurityException: sealing violation
        at etc, etc, etc..
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)


Removing $ANT_HOME/lib/parser.jar & $ANT_HOME/lib/jaxp.jar and invoking ant
again works out fine.

As a side note, I think the classpath is evil, so I usually avoid setting it
statically-- I believe doing this preserves a little of my sanity :)

-- Levi


----- Original Message -----
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 5:51 PM
Subject: RE: newbie - requesting example of working build.xml, build.prope
rties files


>
>
> On Fri, 22 Jun 2001, Cook, Levi wrote:
>
> > I haven't taken time to account for the variation, but walking through
this
> > process on a fresh RedHat 7.1 installation required an additional step.
> >
> > Basically, to prevent ant from failing on some jar sealing Security
> > exception that I don't remember the details of, I had to remove
> > $ANT_HOME/lib/parser.jar & $ANT_HOME/lib/jaxp.jar. (I think ant 1.3
carries
> > jaxp 1.0 with it, and the presence of Jaxp 1.1 caused the fit)
> >
>
> Hmm.  You're right about Ant including JAXP 1.0.  The interesting thing is
> that I've still got them in $ANT_HOME/lib, and I'm running on RedHat 7.1
> (with JDK 1.3.1).  And I'm not getting sealing violations.
>
> > -- Levi
> >
>
> Craig
>
>

Reply via email to