All right! I fixed it. There is another jaxp.jar file in JDK's ext
directory. That jar file was always picked up first.
-Jianhe
>From: "lily Gao" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Problem: Ant 1.3 with JDK1.2.2.007
>Date: Thu, 03 May 2001 14:32:34 -0000
>
>Simon:
>
>Thanks for your response!
>Even if I only include tools.jar in my classpath and use the parser.jar and
>jaxp.jar which come from the Ant package, I still get the same problem. Is
>there antyhting wrong with tools.jar from Sun-JDK1.2.2.007?
>Thanks!
>
>-Jianhe
>
>>From: [EMAIL PROTECTED]
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: RE: Problem: Ant 1.3 with JDK1.2.2.007
>>Date: Thu, 3 May 2001 14:52:37 +0100
>>
>>I've experienced the same problem running on Solaris and I would guess
>>it's
>>because you have a parser that is not compatible with ant in your
>>classpath
>>(xerces?)
>>
>>I got round the problem by making sure the standard CLASSPATH did not
>>include anything, and instead included my jars as a an attribute in javac.
>>
>> <!-- set global properties for this build -->
>> <property environment="ss"/>
>> <property name="myclasspath" value="${ss.myclasspath}"/>
>>
>> <target name="build" depends="init">
>> <echo message="trdbd04 information: building ${src} into
>>${build}."/>
>> <javac srcdir="${src}"
>> destdir="${build}"
>> classpath="${myclasspath}"
>> excludesfile="${ssabhome}\trdbd04.excludes.txt"
>> failonerror="no"/>
>> </target>
>>
>>I put a wrapper around the call to ant which sets "myclasspath" to include
>>all my *.jars, and also sets CLASSPATH=<nothing> (e.g export CLASSPATH= ).
>>When the ant script (ANT) runs it attaches the jar files found in
>>ANT_HOME/lib to a LOCALCLASSPATH before calling ant.
>>
>>Hope this helps.
>>
>>Simon
>>
>> > -----Original Message-----
>> > From: lily Gao [mailto:[EMAIL PROTECTED]]
>> > Sent: 03 May 2001 14:19
>> > To: [EMAIL PROTECTED]
>> > Subject: Problem: Ant 1.3 with JDK1.2.2.007
>> >
>> >
>> > Greeting all:
>> >
>> > I got the following Java exception with running Ant1.3 with
>> > JDK1.2.2.007.
>> > When I run Tomcat 3.2.1, I got exactly the same problem. I have only
>> > tools.jar with whatever jar files in ant\lib\ and tomcat\lib in my
>> > classpath. Any idea?
>> >
>> > ---------
>> > Buildfile: example1.xml
>> >
>> > BUILD FAILED
>> >
>> > javax.xml.parsers.FactoryConfigurationError:
>> > com.sun.xml.parser.SAXParserFactoryImpl
>> > at
>> > javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor
>> > y.java:84)
>> > at
>> > org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java,
>> > Compiled Code)
>> > at
>> > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHel
>> > per.java:85)
>> > at org.apache.tools.ant.Main.runBuild(Main.java,
>> > Compiled Code)
>> > at org.apache.tools.ant.Main.main(Main.java:149)
>> >
>> > Total time: 0 seconds
>> > com.sun.xml.parser.SAXParserFactoryImpl
>> > ----------
>> >
>> > Thanks a lot!
>> >
>> > -Jianhe
>> > _________________________________________________________________
>> > Get your FREE download of MSN Explorer at http://explorer.msn.com
>> >
>> >
>>
>>------------------------------------------------------------------------------
>>Part of the Halifax Group, Halifax plc, Registered in England No. 2367076.
>>Registered Office: Trinity Road, Halifax, West Yorkshire HX1 2RG.
>>Represents only the Halifax Financial Services Marketing Group for the
>>purposes of advising on and selling life assurance, pensions and unit
>>trust
>>business. The Marketing Group is regulated by the Personal Investment
>>Authority. Switchboard 01422 333333.
>>
>>
>>==============================================================================
>>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com