Re: classpath issues

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Jun 30 2005 - 13:36:46 EDT

  • Next message: Mike Schrag: "building in eclipse"

    Got it!
    /Library/Java/Extensions/cayenne.jar etc. is the source of your WOes.

    /Library/Java/Extensions is for _extensions_ to the core Java API
    (JDBC, JavaMail etc.). You should not use it as a repository for
    third party jars. You have having classloader issues because of
    where the jars are. Move them to another directory and things should
    work. No need to add the Ant jars explicitly IIRC.

    Chuck

    On Jun 29, 2005, at 5:51 AM, David Haggerty wrote:

    > Chuck -
    >
    > Sorry I should have provided more information. The strange part
    > about this
    > error is that ant should include all of the jars it needs in the
    > ant script,
    > shouldn't it? In any event, I added ant.jar to both the
    > env.CLASSPATH and
    > the classpath in the Ant file. Yet I still get this message. I was
    > thinking that it might be something that Javac requires that it
    > can't find.
    > So then I created a simple javac task and it compiled fine.
    >
    > Any other ideas? I even added the entire ant lib folder to the
    > classpath in
    > build.xml and it still didn't work.
    >
    > Thanks,
    > David
    >
    > Classpath:
    > woapp3:~/Documents/workspace/shellScripts/deploymentScripts
    > administrator$
    > echo $CLASSPATH
    > /Library/Java/Extensions/cayenne.jar:/Library/Java/Extensions/
    > woproject.jar:
    > /System/Library/
    > Frameworks/JavaVM.framework/Classes/classes.jar:/Applications/
    > eclipse/plugin
    > s/
    > org.apache.ant_1.6.5/lib/ant.jar:/Applications/eclipse/eclipse/
    > plugins/
    > org.eclipse.jdt.core_3.1.0.jar:/Applications/eclipse/plugins/
    > org.eclipse.cor
    > e.runtime_3.1.0.jar:
    >
    > build.xml:
    >
    > <target name="build.java.internal" >
    > <taskdef name="wocompile"
    > classname="org.objectstyle.woproject.ant.WOCompile"/>
    > <mkdir dir="${classes.dir}"/>
    > <wocompile srcdir="${src.dir}" destdir="${classes.dir}"
    > debug="${debug}" optimize="${optimize}" deprecation="$
    > {deprecation}"
    > bootclasspath="${env.CLASSPATH}" source="1.4">
    > <frameworks root="${wo.wosystemroot}">
    > <patternset>
    > <includesfile
    > name="ant.frameworks.wo.wosystemroot"/>
    > </patternset>
    > </frameworks>
    > <frameworks root="${wo.wolocalroot}">
    > <patternset>
    > <includesfile
    > name="ant.frameworks.wo.wolocalroot"/>
    > </patternset>
    > </frameworks>
    > <frameworks root="${user.home}">
    > <patternset>
    > <includesfile name="ant.frameworks.user.home"/>
    > </patternset>
    > </frameworks>
    > <frameworks root=".">
    > <patternset>
    > <includesfile name="ant.frameworks.user.home"/>
    > </patternset>
    > </frameworks>
    >
    > <classpath>
    > <fileset dir="${wo.wosystemroot}">
    > <includesfile
    > name="ant.classpaths.wo.wosystemroot"/>
    > </fileset>
    > <fileset dir="/Library/WebObjects/Extensions">
    > <include name="**/*.jar"/>
    > </fileset>
    > <fileset dir="/Library/Java/Extensions">
    > <include name="**/*.jar"/>
    > </fileset>
    > <fileset
    > dir="/Applications/eclipse/plugins/org.apache.ant_1.6.5/lib">
    > <include name="**/*.jar"/>
    > </fileset>
    > </classpath>
    > </wocompile>
    > </target>
    >
    >
    >
    > On 6/29/05 2:43 AM, "Chuck Hill" <chil..lobal-village.net> wrote:
    >
    >
    >> Looks like Ant is missing.
    >>
    >>
    >> At 02:41 PM 28/06/2005 -0400, David Haggerty wrote:
    >>
    >>>>>>
    >>>>>>
    >>
    >>
    >> We have been able to successfully run our woproject ant tasks on
    >> on Windows
    >> but we are having problems using WOCompile on our new XServe. We
    >> get this
    >> error:
    >>
    >> BUILD FAILED
    >> /Users/administrator/Documents/workspace/YFUModelFramework/
    >> build.xml:90:
    >> taskdef A class needed by class
    >> org.objectstyle.woproject.ant.WOCompile
    >> cannot be found: org/apache/tools/ant/taskdefs/Javac
    >>
    >> Any idea what I am missing in the class path?
    >>
    >> Thanks,
    >> David
    >>
    >> <<<<
    >>
    >>
    >>
    >> --
    >>
    >> Practical WebObjects - a book for intermediate WebObjects developers
    >> who want to increase their overall knowledge of WebObjects, or those
    >> who are trying to solve specific application development problems.
    >> http://www.global-village.net/products/practical_webobjects
    >>
    >>
    >>
    >
    >

    -- 
    Practical WebObjects - a book for intermediate WebObjects developers  
    who want to increase their overall knowledge of WebObjects, or those  
    who are trying to solve specific application development problems.
    http://www.global-village.net/products/practical_webobjects
    



    This archive was generated by hypermail 2.0.0 : Thu Jun 30 2005 - 13:36:54 EDT