Re: Trying to get this project to run - java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser

From: James Cicenia (jame..imijon.com)
Date: Tue Nov 27 2007 - 22:39:28 EST

  • Next message: Chuck Hill: "Re: Trying to get this project to run - java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser"

    Arrrghh....

    That was it.. I must have looked at the damn project settings twenty
    times and missed the JavaXML.

    Which brings up a question... how come none of the WebObjects
    frameworks are automatically included?
    I have to add them for each project I import.

    Well on to the other projects now.

    Thanks a lot.... again.

    James

    On Nov 27, 2007, at 9:28 PM, Chuck Hill wrote:

    >
    > On Nov 27, 2007, at 7:02 PM, James Cicenia wrote:
    >
    >> Ok -
    >>
    >> Go easy... as it ain't easy lifting the Komono
    >
    > Thanks. Not a picture I wanted.
    >
    >
    >>
    >> ls /Library/Java/Extensions:
    >>
    >> META-INF
    >> mysql-connector-java-3.0.17-ga
    >> libsvnjavahl-1.jnilib
    >
    > That is all fine.
    >
    >
    >> ls /Library/WebObjects/Extensions:
    >>
    >> activation.jar
    >> commons-logging.jar
    >> jfreechart-1.0.1.jar
    >> ostermillerutils_1_03_00.jar
    >> avalon-framework-4.1.2.jar
    >> edtftpj-pro.jar
    >> license.jar
    >> poi-2.5-final-20040302.jar
    >> axis-ant.jar
    >> javax.servlet.jar
    >> log4j-1.2.8.jar
    >> saaj.jar
    >> axis.jar
    >> jaxrpc.jar
    >> logkit-1.0.1.jar
    >> servlet.jar
    >> commons-discovery.jar
    >> jcommon-1.0.0.jar
    >> mail.jar
    >> wsdl4j.jar
    >
    > Not so sure about all of those. Here is where it should be coming
    > from:
    >
    > saskatoon:/Projects/HH/Cadre/Code/WebObjects chuck$ jar tf /System/
    > Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar |
    > grep SAXParser
    > META-INF/services/javax.xml.parsers.SAXParserFactory
    > org/apache/xerces/jaxp/SAXParserFactoryImpl.class
    > org/apache/xerces/jaxp/SAXParserImpl.class
    > org/apache/xerces/parsers/AbstractSAXParser$AttributesProxy.class
    > org/apache/xerces/parsers/AbstractSAXParser$LocatorProxy.class
    > org/apache/xerces/parsers/AbstractSAXParser.class
    > org/apache/xerces/parsers/SAXParser.class
    > javax/xml/parsers/SAXParser.class
    > javax/xml/parsers/SAXParserFactory.class
    >
    >
    > First, um, have you checked that JavaXML is part of the project's
    > frameworks? If not, there be your problem. If it is...
    >
    > Try doing this on each jar in that directory:
    >
    > cd /Library/WebObjects/Extensions
    > jar tf NAME.jar | grep xerces
    >
    > See anything?
    >
    > You can probably skip checking these ones:
    >
    > ls /Library/WebObjects/Extensions/
    > axis-ant.jar commons-logging.jar
    > junit.jar servlet.jar
    > axis.jar jass-rt.jar
    > log4j-1.2.14.jar wsdl4j.jar
    > commons-discovery.jar jaxrpc.jar saaj.jar
    >
    >
    >
    >
    >
    >> On Nov 27, 2007, at 8:34 PM, Chuck Hill wrote:
    >>
    >>>
    >>> On Nov 27, 2007, at 6:18 PM, James Cicenia wrote:
    >>>
    >>>> Thanks...
    >>>>
    >>>> As suspected I have 5.3.
    >>>>
    >>>> And yes this one project does have plists that are getting
    >>>> parsed. It is the only project I have and so far it is the only
    >>>> one I am having problems.
    >>>> I still have two others to import, build and run, but they are
    >>>> small and dormant at the moment.
    >>>>
    >>>> So what hint about what jar is bad?
    >>>
    >>> ls /Library/Java/Extensions
    >>> ls /Library/WebObjects/Extensions
    >>>
    >>> Let's see what you have.
    >>>
    >>> chuck
    >>>
    >>>>
    >>>> James
    >>>>
    >>>> On Nov 27, 2007, at 7:42 PM, Art Isbell wrote:
    >>>>
    >>>>> On Nov 27, 2007, at 3:23 PM, James Cicenia wrote:
    >>>>>
    >>>>>> How do I find the version?
    >>>>>
    >>>>> Look at the value of the CFBundleShortVersionString key in /
    >>>>> System/Library/Frameworks/JavaWebObjects.framework/Resources/
    >>>>> version.plist.
    >>>>>
    >>>>>> Did a fresh install of Leopard automatically put WebObjects 5.4
    >>>>>> in?
    >>>>>
    >>>>>
    >>>>> No for Leopard, yes for Leopard Server. For Leopard, you need
    >>>>> to install the Xcode Tools and check WebObjects as an optional
    >>>>> install.
    >>>>>
    >>>>> Aloha,
    >>>>> Art
    >>>>>
    >>>>
    >>>>
    >>>
    >>> --
    >>>
    >>> Practical WebObjects - for developers who want to increase their
    >>> overall knowledge of WebObjects or who are trying to solve
    >>> specific problems.
    >>> http://www.global-village.net/products/practical_webobjects
    >>>
    >>>
    >>>
    >>>
    >>>
    >>
    >>
    >
    > --
    >
    > Practical WebObjects - for developers who want to increase their
    > overall knowledge of WebObjects or who are trying to solve specific
    > problems.
    > http://www.global-village.net/products/practical_webobjects
    >
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Nov 27 2007 - 22:40:27 EST