SV: [jdom-interest] Anything else for beta 9?

Per Norrman pernorrman at telia.com
Sun Apr 6 16:06:44 PDT 2003


The Ant/Junit mess:

I'm definitely not an Ant/Junit master, but what you're experiencing is
documented here: 
http://ant.apache.org/faq.html#delegating-classloader

The trick is to force JUnit core classes and the JUnit Ant task to be loaded
by the same class loader (or classloder hierarchy).

One solution is to add junit.jar to the local classpath in 
build.bat/build.sh.

/Per Norrman


> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at jdom.org 
> [mailto:jdom-interest-admin at jdom.org] För Jason Hunter
> Skickat: den 6 april 2003 23:17
> Till: Elliotte Rusty Harold
> Kopia: JDOM Interest
> Ämne: Re: [jdom-interest] Anything else for beta 9?
> 
> 
> OK, I put ant.jar, junit.jar, and optional.jar in 
> /Library/Java/Extensions.  Now "build test" is running but it 
> can't find the test cases:
> 
> <error message="org.jdom.test.cases.TestAttribute"
> type="java.lang.ClassNotFoundException">java.lang.ClassNotFoun
> dException:
> org.jdom.test.cases.TestAttribute
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>         at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:140)
> </error>
> 
> What a pain in the ass.  No doubt this is all caused by funny 
> classloading logic.  Rusty, I bet your problem is you have 
> some old jdom.jar being found from before CDATA extended Text.
> 
> Anyway, if anyone's an Ant/JUnit master, please take a look.  
> Laurent's our guru, but he's out this week.
> 
> -jh-
> _______________________________________________
> To control your jdom-interest membership: 
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-build.bat
Type: application/octet-stream
Size: 473 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20030407/1eb6dba0/diff-build.obj


More information about the jdom-interest mailing list