ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject RE: classpath insanity
Date Wed, 04 Sep 2002 20:20:30 GMT
You can specify all third-party jars in ANT's classpath itself. It uses
Xerces2 already, so it will use the version you use. Not a big deal.

- Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
{ http://www.inventigo.com/ } Inventigo LLC
Pleasant Hill, CA (GMT-8 usually)


-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com] 
Sent: Wednesday, September 04, 2002 1:16 PM
To: 'Ant Users List'
Subject: RE: classpath insanity

ClassLoader issues. Fork your task, if you can. --DD

-----Original Message-----
From: Guy McArthur [mailto:guym@guymcarthur.com] 
Sent: Wednesday, September 04, 2002 3:11 PM
To: Ant Users List
Subject: classpath insanity


I've defined a project classpath, but when my task attempts to invoke 
Xalan, it bombs with the error:

java.lang.LinkageError: loader constraints violated when linking
org/xml/sax/InputSource class
     [java]     at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:929)

The path looks like this (referenced with the refid attribute of a
classpath element:

  <property name="JAVA_LIB" location="/home/grs2001/software/java_lib"/>

  <path id="project.class.path">
        <!-- Core XML API's -->
        <pathelement location="${JAVA_LIB}/xml/xml-apis.jar"/>

        <!-- Xerces XML Engine -->
        <pathelement location="${JAVA_LIB}/xml/xercesImpl.jar"/>

        <!-- Xalan XSLT Engine -->
        <pathelement location="${JAVA_LIB}/xslt/xalan.jar"/>

        <!-- Xalan Extensions -->
        <pathelement location="${JAVA_LIB}/xslt/bsf.jar"/>

        <!-- JDOM XML Engine -->
        <pathelement location="${JAVA_LIB}/xml/jdom.jar"/>

        <!-- JDBC Thin drivers for Oracle 9i -->
        <pathelement location="${JAVA_LIB}/classes12.zip"/>

</path>

What is going on?


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message