Re: Ant build in Eclipse fails with ClassCastException

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Thu Jul 24 2003 - 13:14:04 EDT

  • Next message: Dirk Bajohr: "Incremental Builder and Additional Resources/Properties"

    Hi Shrisha,

    please verify that the entries under Windows->Preferences->Ant->Runtime
    are correct. Ther should point to ant.jar and optional.jar.

    Sometimes jars contain more then expected. ReportMill for instance
    comes with xerces.

    Ulrich

    On Donnerstag, 24. Juli 2003, at 16:14 Uhr, Shrisha Radhakrishna wrote:

    > Hi Ulrich,
    >
    > I did. I only have a few non-XML jars in my ext directory. I also
    > checked
    > the System ext directory; nothing there either.
    >
    > As I said, now that I don't have any XML related jars in ext, I now get
    > java.lang.NoClassDefFoundError: org/xml/sax/SAXException
    >
    > Thanks,
    > Shrisha
    >
    >> From: Ulrich Köster <ulric..bjectstyle.org>
    >> Date: Thu, 24 Jul 2003 09:28:48 +0200
    >> To: Shrisha Radhakrishna <shrish..ffigent.com>
    >> Cc: <woproject-de..bjectstyle.org>
    >> Subject: Re: Ant build in Eclipse fails with ClassCastException
    >>
    >> Hi Shrisha,
    >>
    >> could you remove all xml stuff from the extension folder.
    >>
    >> Ulrich
    >>
    >> On Mittwoch, 23. Juli 2003, at 19:59 Uhr, Shrisha Radhakrishna wrote:
    >>
    >>> Hi Ulrich,
    >>>
    >>> I first tried without jdom.jar in /Library/Java/Extensions. It
    >>> complained
    >>> of:
    >>> BUILD FAILED: Unable to load default ProjectHelper due to
    >>> java.lang.NoClassDefFoundError: org/xml/sax/SAXException
    >>>
    >>> Now, if I rmeove jdom.jar I get a ClassCastException.
    >>>
    >>> BTW, you helped me figure out earlier that presence of xerces.jar in
    >>> /Library/Java/Extensions was preventing Eclipse from even coming up.
    >>>
    >>> Thanks,
    >>> Shrisha
    >>>
    >>>> From: Ulrich Köster <ulric..bjectstyle.org>
    >>>> Date: Wed, 23 Jul 2003 18:59:54 +0200
    >>>> To: Shrisha Radhakrishna <shrish..ffigent.com>
    >>>> Cc: <woproject-de..bjectstyle.org>
    >>>> Subject: Re: Ant build in Eclipse fails with ClassCastException
    >>>>
    >>>> Hi Shrisha,
    >>>>
    >>>> this seems to be version mismatch. Remove xerces, jdom and other xml
    >>>> stuff from the classpath. Take a look in extension foldes of the
    >>>> jvm.
    >>>>
    >>>> Ulrich
    >>>> On Mittwoch, 23. Juli 2003, at 18:39 Uhr, Shrisha Radhakrishna
    >>>> wrote:
    >>>>
    >>>>> Hi,
    >>>>>
    >>>>> This is my first attempt at getting my WOApp to build (and run) in
    >>>>> Eclipse.
    >>>>> When I run ant, it aborts with:
    >>>>>
    >>>>> BUILD FAILED: java.lang.ClassCastException:
    >>>>> org.apache.xerces.jaxp.SAXParserFactoryImpl
    >>>>>
    >>>>> I'm using Eclipse 2.1.1 and WOLips 1.0.4.
    >>>>>
    >>>>> Any ideas what I might be missing? I do see xerces.jar installed
    >>>>> in
    >>>>> the
    >>>>> plugins directory. Some kind of version mismatch?
    >>>>>
    >>>>> Thanks,
    >>>>> Shrisha
    >>>>>
    >>>>
    >>>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Thu Jul 24 2003 - 13:11:26 EDT