Re: Need Help: The Ant build fails when embedding project framweworks

From: Amiel Montecillo (bosyotec..mail.com)
Date: Wed Mar 25 2009 - 11:10:59 EDT

  • Next message: Ricardo J. Parada: "Re: Need Help: The Ant build fails when embedding project framweworks"

    Thanks Mike and Recardo, I was hoping to avoid installing the project
    frameworks in the frameworks folder, but its the only thing we have as of
    now.

    Amiel

    On Wed, Mar 25, 2009 at 11:01 PM, Ricardo J. Parada <rparad..ac.com> wrote:

    > What I have been doing is to add my dependencies in Eclipse as Libraries
    > instead of Projects. If you don't do this then for any project that has a
    > dependency on another will fail when building with ant. So just add your
    > dependencies the same way you add your dependency on a WebObjects framework,
    > i.e. Add Library in Eclipse, then select WebObjects Framework, then from the
    > list that appears just put a check mark on your framework projects it needs.
    > Then do "ant install" inside each of your framework projects. Then just
    > "ant" inside the application project.
    >
    > At least that's how I do it and know it works. :-)
    >
    >
    > On Mar 25, 2009, at 9:46 AM, Amiel Montecillo wrote:
    >
    > Hello Everyone,
    >
    > I am using WOLips 3.4.5708 and Eclipse 3.4.1.
    >
    > I am trying to create a deployment package for my little app with embedded
    > project frameworks. The app is a command line app using ERXMainRunner.
    >
    > The project framework WORSSReaderCommon is loaded in my workspace and added
    > as a reference to my WORSSReader app as a reference. The classpath has the
    > line
    >
    > ...
    >> <classpathentry kind="con" path="WOFramework/WORSSReaderCommon"/>
    >> ...
    >>
    >
    > build.properties:
    >
    > webXML_CustomContent=
    >> project.name=WORSSReader
    >> webXML=false
    >> principalClass=com.bosyotech.app.Application
    >> embed.Local=true
    >> classes.dir=bin
    >> project.name.lowercase=worssreader
    >> customInfoPListContent=
    >> embed.Project=true
    >> project.type=application
    >>
    >
    > WORSSReader runs fine inside WOLips but when I try to build it with the ant
    > build script it fails.
    >
    > Heres a stack trace with -verbose flag on ant build process.
    >
    > Complete build sequence is [init.properties, init.build, compile,
    >> build.woapp, javaclient, ssdd, war, split, package, build, init.install,
    >> install, clean, ]
    >> init.properties:
    >> [antlib:org.apache.tools.ant] Could not load definitions from resource
    >> org/apache/tools/ant/antlib.xml. It could not be found.
    >> [property] Loading D:\apps\WORSSReader\build.properties
    >> [property] Loading C:\Documents and Settings\Amiel\Library\Application
    >> Support\WOLips\wolips.properties
    >> init.build:
    >> compile:
    >> [mkdir] Skipping D:\apps\WORSSReader\bin because it already exists.
    >>
    >> BUILD FAILED
    >> D:\apps\WORSSReader\build.xml:207: Failed to process eclipse frameworks.
    >> at
    >> org.objectstyle.woproject.ant.FrameworkSet.getEclipseFrameworks(Unknown
    >> Source)
    >> at org.objectstyle.woproject.ant.FrameworkSet.getJarsPath(Unknown
    >> Source)
    >> at
    >> org.objectstyle.woproject.ant.FrameworkSet.jarsPathForFrameworkSets(Unknown
    >> Source)
    >> at org.objectstyle.woproject.ant.WOCompile.execute(Unknown Source)
    >> at
    >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >> at
    >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >> at
    >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >> at java.lang.reflect.Method.invoke(Method.java:597)
    >> at
    >> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    >> at org.apache.tools.ant.Task.perform(Task.java:348)
    >> at org.apache.tools.ant.Target.execute(Target.java:357)
    >> at org.apache.tools.ant.Target.performTasks(Target.java:385)
    >> at
    >> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    >> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    >> at
    >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    >> at
    >> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    >> at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    >> at
    >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    >> at
    >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    >> Caused by: The framework name 'WORSSReaderCommon' does not exist.
    >> ... 20 more
    >> --- Nested Exception ---
    >> The framework name 'WORSSReaderCommon' does not exist.
    >> at
    >> org.objectstyle.woproject.ant.FrameworkSet.getEclipseFrameworks(Unknown
    >> Source)
    >> at org.objectstyle.woproject.ant.FrameworkSet.getJarsPath(Unknown
    >> Source)
    >> at
    >> org.objectstyle.woproject.ant.FrameworkSet.jarsPathForFrameworkSets(Unknown
    >> Source)
    >> at org.objectstyle.woproject.ant.WOCompile.execute(Unknown Source)
    >> at
    >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >> at
    >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >> at
    >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >> at java.lang.reflect.Method.invoke(Method.java:597)
    >> at
    >> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    >> at org.apache.tools.ant.Task.perform(Task.java:348)
    >> at org.apache.tools.ant.Target.execute(Target.java:357)
    >> at org.apache.tools.ant.Target.performTasks(Target.java:385)
    >> at
    >> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    >> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    >> at
    >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    >> at
    >> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    >> at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    >> at
    >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    >> at
    >> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    >>
    >> Total time: 500 milliseconds
    >>
    >
    > Am I missing something obvious maybe more caffeine?
    >
    > Thanks,
    > Amiel
    >
    > --
    > socket error: unable to connect to 127.0.0.1
    >
    >
    >

    -- 
    socket error: unable to connect to 127.0.0.1
    



    This archive was generated by hypermail 2.0.0 : Wed Mar 25 2009 - 11:12:12 EDT