xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Walsh <...@nwalsh.com>
Subject "loader constraints violated"
Date Wed, 13 Nov 2002 15:02:58 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Apologies for this not-quite-on-topic post...

I've got some test files for the Catalog Resolver distribution that
I'm trying to run from an ant build script, but I keep getting
"loader constraints violated" messages:

   [java] java.lang.LinkageError: loader constraints violated when linking
   org/xml/sax/XMLReader class

I'm using Ant 1.5.1 and I have the following target:

  <target name="statictest">
    <java classname="StaticTest">
      <classpath>
	<pathelement location="${resolver.jar}"/>
	<pathelement location="${jaxp.jar}"/>
	<pathelement location="${xml-apis.jar}"/>
	<pathelement location="${xercesImpl.jar}"/>
	<pathelement location="${build.classes.dir}"/>
      </classpath>
      <arg value="test1.xml"/>
    </java>
  </target>

Where

${resolver.jar}      = ../../build/resolver.jar (my current snapshot)
${jaxp.jar}          = /usr/local/jaxp-1.1/jaxp.jar
${xml-apis.jar}      = /usr/local/java/jakarta-ant-1.5.1/lib/xml-apis.jar
${xercesImpl.jar}    = /usr/local/java/jakarta-ant-1.5.1/lib/xercesImpl.jar
${build.classes.dir} = build/classes

I don't see where there are possible conflicts here. Help?

                                        Be seeing you,
                                          norm

- -- 
Norman.Walsh@Sun.COM    | Old age is the most unexpected of all the
XML Standards Architect | things that happen to a man.--Trotsky
Web Tech. and Standards |
Sun Microsystems, Inc.  | 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE90mmiOyltUcwYWjsRAs53AJ4q1g+77NFMTJM8Wudw0GyCQQNBQwCdHkj6
x64QeZUYJZCTkRQgQAFVK6g=
=hi30
-----END PGP SIGNATURE-----

Mime
View raw message