Re: Ant build in Eclipse fails with ClassCastException

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Thu Jul 24 2003 - 03:28:48 EDT

  • Next message: Ulrich Köster: "New features for PB.project support in WOLips"

    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 - 03:26:16 EDT