classpath problem deploying application

From: Tom Woteki (drw..oteki.com)
Date: Fri Nov 30 2007 - 08:03:05 EST

  • Next message: Guillaume Polet: "Re: WOLips: Some problems with the WO Editor"

    Hi:

    My app runs fine in development mode where I have added /Library/
    WebObjects/lib/JavaEOAccess.jar and other jar files from tat folder
    instead of using the framework versions.

    However, when I deploy the app the generated class path does not
    include these jars. Instead it looks like below with an exception for
    not finding WOApplication.

    I have tried setting the classpath using the "Run As... Open Run
    Dialog..." but the needed jars already appear there.

    What am I doing wrong?

    Thanks
    Tom

    PS: I'm WO5.4 on Leo with Eclipse 3.3.1.1

    /Users/drwo/Workshop/EclipseWorkspaces/WOApplications/
    TestCellarMastersDB/dist/TestCellarMastersDB.woa/Contents/Resources/
    Java/
       /Users/drwo/Workshop/EclipseWorkspaces/WOApplications/
    TestCellarMastersDB/dist/TestCellarMastersDB.woa/Contents/Resources/
    Java/testcellarmastersdb.jar
       /Library/Frameworks/CellarMastersDB.framework/Resources/Java/
    cellarmastersdb.jar
       /Library/Frameworks/ERExtensions.framework/Resources/Java/
    ERExtensions.jar
       /Library/Frameworks/ERJavaMail.framework/Resources/Java/
    erjavamail.jar
       /Library/Frameworks/Validity.framework/Resources/Java/validity.jar
       /Library/WebObjects/Extensions/axis-ant.jar
       /Library/WebObjects/Extensions/axis.jar
       /Library/WebObjects/Extensions/commons-discovery-0.2.jar
       /Library/WebObjects/Extensions/commons-logging-1.0.4.jar
       /Library/WebObjects/Extensions/derby.jar
       /Library/WebObjects/Extensions/derbyclient.jar
       /Library/WebObjects/Extensions/jaxrpc.jar
       /Library/WebObjects/Extensions/log4j-1.2.14.jar
       /Library/WebObjects/Extensions/saaj.jar
       /Library/WebObjects/Extensions/serializer.jar
       /Library/WebObjects/Extensions/servlet.jar
       /Library/WebObjects/Extensions/wsdl4j-1.5.1.jar
       /Library/WebObjects/Extensions/xalan.jar
       /Library/WebObjects/Extensions/xercesImpl.jar
       /Library/WebObjects/Extensions/xml-apis.jar
       /Library/WebObjects/Extensions/
    java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
    124)



    This archive was generated by hypermail 2.0.0 : Fri Nov 30 2007 - 08:04:40 EST