I've managed to get Ant working on NT.  However when I move the development
to Solaris I get the following exception (see attached):

 <<ant.txt>> 
The script I use outputs the values of LOCALCLASSPATH and CLASSPATH before
running org.apache.tools.ant.Main.

We're using java 1.3 on NT and Solaris.  And we've put javax.jar into the
${JAVA_HOME}/jre/lib directory (I saw this on the mail list archive).

But I'm buggered if I can figure out what's going on.

Any ideas / suggestions would be greatly appreciated.

Simon

> Simon Richardson
> Technology
> Tel: 020 7574 8838
> E Mail: [EMAIL PROTECTED]
> 
> Halifax Group Treasury & Wholesale Banking
> 33 Old Broad Street
> London
> EC2N 1HZ
> 

------------------------------------------------------------------------------
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.


==============================================================================
Debug Ant LOCALCLASSPATH:= 
/hfx/home/develop/srtre/ss/ssab/classes:/hfx/pvcs/49_superstructure_reference:/hfx/home/develop/ssbuild/s
uperstructure/lib/xml4j.jar:/hfx/home/develop/ssbuild/superstructure/lib/xerces.jar:/hfx/home/develop/ssbuild/superstructure:/opt/mq
m/java/lib:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqbind.jar:/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/l
ib/com.ibm.mq.iiop.jar:/opt/mqm/java/lib/jms.jar:/opt/mqm/java/lib/jndi.jar:/opt/mqm/java/lib/ldap.jar:/opt/mqm/java/lib/fscontext.j
ar:/opt/mqm/java/lib/providerutil.jar:/opt/mqm/java/samples/En_US:/opt/mqm/tools/java/samples/En_US:/opt/SUNWjblnd/classes/JavaBlend
.jar::/hfx/home/develop/srtre/ss/jakarta-ant-1.3/lib/ant.jar:/hfx/home/develop/srtre/ss/jakarta-ant-1.3/lib/jaxp.jar:/hfx/home/devel
op/srtre/ss/jakarta-ant-1.3/lib/parser.jar:/usr/java1.3_0_02/lib/tools.jar
Debug Ant CLASSPATH:= 
/hfx/home/develop/srtre/ss/ssab/classes:/hfx/pvcs/49_superstructure_reference:/hfx/home/develop/ssbuild/supers
tructure/lib/xml4j.jar:/hfx/home/develop/ssbuild/superstructure/lib/xerces.jar:/hfx/home/develop/ssbuild/superstructure:/opt/mqm/jav
a/lib:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqbind.jar:/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/lib/co
m.ibm.mq.iiop.jar:/opt/mqm/java/lib/jms.jar:/opt/mqm/java/lib/jndi.jar:/opt/mqm/java/lib/ldap.jar:/opt/mqm/java/lib/fscontext.jar:/o
pt/mqm/java/lib/providerutil.jar:/opt/mqm/java/samples/En_US:/opt/mqm/tools/java/samples/En_US:/opt/SUNWjblnd/classes/JavaBlend.jar
Buildfile: /hfx/home/develop/srtre/ss/ssab/xml/trdbd04.xml

BUILD FAILED

javax.xml.parsers.FactoryConfigurationError: Cannot load class SAXParserFactory class 
"org.apache.xerces.jaxp.SAXParserFactoryImpl"
        at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:153)
        at org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.java:706)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:403)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 0 seconds
Cannot load class SAXParserFactory class "org.apache.xerces.jaxp.SAXParserFactoryImpl"
ssbuild = /hfx/home/develop/srtre/ss/ssab/classes
ssmode = F
sswrkloc = /hfx/pvcs/49_superstructure_reference
ssrefsrv =
ssvers =
ssuserid =
ssarch =
sslatest = /hfx/var/49_superstructure/latest

Reply via email to