I'm not sure this is a Geonetwork issue directly, but it turned up in trying working in Eclipse on GN and I can't recall if I'd seen anything about it on the list or not, so I figured I'd ask.
I've just updated my Eclipse Galileo (v3.5) environment and trying to run Geonetwork from inside Eclipse is now failing, although it worked before. I also have another project (not Geonetwork) that appears to still be working just fine.
I'm running on a Linux box (Fedora Core 11) with Java 1.6.0 OpenJDK, Apache ant 1.7.1 (both inside Eclipse and standalone) and this is code based on the pre-Maven release of Geonetwork 2.4.3.
The failure is related to ant - the error I get when I try to start Geonetwork from Eclipse is:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at org.mortbay.start.Main.isAvailable(Main.java:105)
at org.mortbay.start.Main.configure(Main.java:241)
at org.mortbay.start.Main.start(Main.java:413)
at org.mortbay.start.Main.main(Main.java:82)
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.AntMain
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
... 18 more
Now, here's what's weird - it runs just fine from the command line, built with the same version (1.7.1) of ant.
Any ideas or suggestions on how to get things back to running? Have any of you seen this before? Thanks!
--
Archie
-- Archie Warnock warnock@anonymised.com
-- A/WWW Enterprises http://www.awcubed.com
-- As a matter of fact, I _do_ speak for my employer.