ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Curley" <tho...@verveinc.com>
Subject Linkage error with Ant classloader
Date Thu, 14 Dec 2000 03:37:00 GMT
I am Using Ant 1.2 and have the following code

persistor_ = (IObjectPersistor)
Beans.instantiate(this.getClass().getClassLoader(), className);


this seems to be generating an intermittent linkage error and I believe it
is related to the Ant classloader.


java.lang.LinkageError: duplicate class definition:
com/versata/corsair/repository/XMLObjectPersistorImpl
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:3
88)
        at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:433)
        at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:406)
        at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:330)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.beans.Beans.instantiate(Unknown Source)
        at java.beans.Beans.instantiate(Unknown Source)
        at
com.versata.corsair.repository.Repository.<init>(Repository.java:64)
        at
com.versata.corsair.repository.RepositoryTC.doTests(RepositoryTC.java:93)
        at com.versata.corsair.CorsairTC.run(CorsairTC.java:98)
        at org.exolab.jtf.TestCase.execute(jtf/TestCase.java:122)
        at
org.exolab.jtf.plugin.nodeexecution.ConcurrentNodeExecutorImpl$ConcurrentNod
eExecutor.run(jtf/plugin/nodeexec
ution/ConcurrentNodeExecutorImpl.java:140)


Any help with this would be appreciated


thanks


thomas@verveinc.com



Mime
View raw message