Problem with Ant & RC2

From: Anders Peterson (anders_peterso..ptimatika.se)
Date: Sun Mar 09 2003 - 15:49:33 EST

  • Next message: Anders Peterson: "Which Eclipse version to use"

    Hi,

    I have the same problem. Both with my existing projects and new ones.

    I did build a new version of WOLips today, but only the documentation had
    changed since I last built - what's new is RC2.

    I can't do anything with Ant, not even 'clean':

    !ENTRY org.eclipse.ant.core 4 1 mar 09, 2003 21:38:57.665
    !MESSAGE Could not find one or more classes. Please check the Ant classpath.
    !STACK 0
    java.lang.NoClassDefFoundError
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:140)
     at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.setTasks(InternalAntRunn
    er.java:238)
     at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
    va:543)
     at
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
    va:360)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
    )
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.eclipse.ant.core.AntRunner.run(AntRunner.java:332)
     at
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDele
    gate$1.run(AntLaunchDelegate.java:170)
     at java.lang.Thread.run(Thread.java:536)

    /Anders

    ----- Original Message -----
    From: "Cyril Morisse" <cyril.moriss..ip.fr>
    To: "'Anders Peterson'" <anders_peterso..ptimatika.se>
    Sent: Sunday, March 09, 2003 9:07 PM
    Subject: RE : RE : Unable to launch .woa project with eclipse RC1

    > I'm on win xp.
    > When I create a new project and try to build it I get
    >
    > Buildfile: C:\eclipse-rc2\workspace\helloWO\build.xml
    > BUILD FAILED: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
    > Total time: 221 milliseconds
    >
    > I've tried to add log4j in the ant runtime classpath but nothing change.
    >
    > Here is the eclipse log
    >
    ****************************************************************************
    > !SESSION mars 09, 2003 21:03:07.614
    > --------------------------------------------
    > java.version=1.3.1_06
    > java.vendor=Sun Microsystems Inc.
    > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
    > Command-line arguments: -os win32 -ws win32 -arch x86 -install
    > file:C:/eclipse-rc2/
    > !ENTRY org.eclipse.ant.core 4 1 mars 09, 2003 21:03:07.614
    > !MESSAGE Could not find one or more classes: "org.apache.log4j.Logger".
    > Please check the Ant classpath.
    > !STACK 0
    > java.lang.NoClassDefFoundError: org/apache/log4j/Logger
    > at
    > org.objectstyle.cayenne.conf.Configuration.<clinit>(Configuration.java:88)
    > at
    >
    org.objectstyle.cayenne.tools.CayenneGenerator.<clinit>(CayenneGenerator.jav
    > a:83)
    > at java.lang.Class.forName0(Native Method)
    > at java.lang.Class.forName(Unknown Source)
    > at
    >
    org.eclipse.ant.internal.core.ant.InternalAntRunner.setTasks(InternalAntRunn
    > er.java:238)
    > at
    >
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
    > va:543)
    > at
    >
    org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
    > va:360)
    > at java.lang.reflect.Method.invoke(Native Method)
    > at org.eclipse.ant.core.AntRunner.run(AntRunner.java:332)
    > at
    >
    org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDele
    > gate$1.run(AntLaunchDelegate.java:170)
    > at java.lang.Thread.run(Unknown Source)
    >
    ****************************************************************************
    >
    > -----Message d'origine-----
    > De : Anders Peterson [mailto:anders_peterso..ptimatika.se]
    > Envoyé : dimanche 9 mars 2003 19:44
    > À : Cyril Morisse
    > Objet : Re: RE : Unable to launch .woa project with eclipse RC1
    >
    > Not really. I have it of course, but one of the later builds would have
    > to be ok. What was the problem with RC2?
    >
    > I switched to RC2, and built a new version of WOLips today - no
    > problems. (I really haven't done a lot.) What platform are you on. I'm
    > on Windows.
    >
    > /Anders
    >
    > On söndag, mar 9, 2003, at 17:24 Europe/Stockholm, Cyril Morisse wrote:
    >
    > > Anders,
    > >
    > > Build 20030227 is no longer available for downloada at eclipse.org
    > > Any URL where I can get it ?
    > >
    > > Cyril
    > >
    > >
    > >
    > > -----Message d'origine-----
    > > De : Anders Peterson [mailto:anders_peterso..ptimatika.se]
    > > Envoyé : dimanche 9 mars 2003 12:30
    > > À : Cyril Morisse
    > > Objet : Re: Unable to launch .woa project with eclipse RC1
    > >
    > > WOlips needs Eclipse 2.1. The problem is that this version of Eclipse
    > > has not been released yet. We are all using various "beta versions".
    > >
    > > What I know is that RC1 does not work, RC2 is not yet tested and a
    > > build
    > > from 20030227 works fine.
    > >
    > > /Anders
    > >
    > > Cyril Morisse wrote:
    > >> Sorry for the last post I send it to fast. Oups.
    > >>
    > >> Hello,
    > >>
    > >> I've just installed Eclipse RC1 and checked out WOLips from CVS.
    > >> (03/08/2003)
    > >> I can create a project and build it with no error.
    > >> But when I try to run it I got :
    > >>
    > >> java.lang.NoClassDefFoundError:
    > >> com/webobjects/appserver/WOApplication
    > >> at java.lang.ClassLoader.defineClass0(Native Method)
    > >> at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    > >> at
    > >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106
    > >> )
    > >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    > >> at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    > >> at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    > >> at java.security.AccessController.doPrivileged(Native Method)
    > >> at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    > >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    > >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    > >> Exception in thread "main"
    > >>
    > >> This is ok with eclipse M4.
    > >>
    > >> Further more I wonder wich eclipse release WOLips is certified for ?
    > >> Did I miss some configuration instruction.
    > >>
    > >> With eclipse RC2. I cannot even build a project. Eclipse complains
    > >> that log4j logger is missing even if I add it in the ant runtime
    > >> classpath
    > >> with windows/preferences/ant/runtime
    > >>
    > >> Thanks
    > >> Cyril
    > >>
    > >>
    > >>
    > >>
    > >>
    > >
    > >
    >



    This archive was generated by hypermail 2.0.0 : Sun Mar 09 2003 - 15:52:55 EST