Moin Dov,
I'll guess that the NEXT_ROOT environment variable is not set.
Please set NEXT_ROOT and generate the wobuild.properties again.
Ulrich
Am 14.03.2006 um 16:23 schrieb Dov Rosenberg:
> This build file works fine on a variety of machines except for my
> Windows 2003 server.
>
> Here is the error message:
>
> Buildfile: build.xml
>
> InfoManager:
> [wocompile] Compiling 295 source files to D:\Code\Build\classes
> \InfoManager
> [wocompile] Note: Some input files use or override a deprecated API.
> [wocompile] Note: Recompile with -deprecation for details.
> [woapplication] Installing InfoManager in Build\Applications
> [woapplication] getEnvVars -> unable to load environment
> variablesjava.lang.reflect.InvocationTargetException
>
> BUILD FAILED
> D:\Code\build.xml:191: java.lang.NullPointerException
>
> The build.xml loads the wobuild.properties file from the root of
> the project. The wobuild.properties file is:
> wo.dir.root=.
> wo.woroot=.
> wo.dir.user.home.library.frameworks=Build\Frameworks
> wo.dir.local=.
> wo.wosystemroot=WebObjects
> wo.dir.library=WebObjects
> wo.dir.user.home.library=Build\Frameworks
> wo.dir.local.library=Jars
> wo.dir.library.frameworks=WebObjects
> wo.dir.local.library.frameworks=Build\Frameworks
> wo.wolocalroot=.
> wo.dir.system=WebObjects
>
> The ant task looks like:
> <target name="InfoManager">
> <mkdir dir="Build/Applications"/>
> <mkdir dir="Build/classes/InfoManager"/>
>
> <wocompile srcdir="InfoManager" destdir="Build/classes/
> InfoManager">
> <frameworks root="WebObjects">
> <include name="JavaWebObjects.framework"/>
> <include name="JavaFoundation.framework"/>
> <include name="JavaXML.framework"/>
> <include name="JavaEOAccess.framework"/>
> <include name="JavaEOControl.framework"/>
> <include name="JavaWOJSPServlet.framework"/>
> <include name="JavaWebServicesSupport.framework"/>
> <include name="JavaWebServicesGeneration.framework"/>
> <include name="JavaWebServicesClient.framework"/>
> </frameworks>
> <frameworks root="Build/Frameworks">
> <include name="IMFoundation.framework"/>
> <include name="IMModel.framework"/>
> <include name="IMServices.framework"/>
> </frameworks>
>
> <classpath>
> <fileset dir="Jars" includes="**/*.jar" />
> </classpath>
> </wocompile>
>
> <woapplication name="InfoManager" stdFrameworks="false"
> destDir="Build\Applications" >
> <classes dir="Build\classes\InfoManager"></classes>
> <resources dir="InfoManager\.">
> <include name="Properties"/>
> <include name="**/*.eomodeld/"/>
> <include name="**/*.d2wmodel"/>
> <include name="**/*.wo/"/>
> <include name="**/*.api"/>
> <include name="**/*.strings"/>
> <include name="**/*.plist"/>
> <exclude name="**/quartz.properties"/>
> <exclude name="**/build.properties"/>
> <exclude name="**/*.eomodeld~/"/>
> <exclude name="**/*.woa/**"/>
> <exclude name="**/*.svn/**"/>
> <exclude name="**/dist/**"/>
> <exclude name="**/web/**"/>
> </resources>
> <frameworks root="WebObjects">
> <include name="JavaWebObjects.framework"/>
> <include name="JavaFoundation.framework"/>
> <include name="JavaXML.framework"/>
> <include name="JavaEOAccess.framework"/>
> <include name="JavaEOControl.framework"/>
> <include name="JavaWOJSPServlet.framework"/>
> <include name="JavaWebServicesSupport.framework"/>
> <include name="JavaWebServicesGeneration.framework"/>
> <include name="JavaWebServicesClient.framework"/>
> </frameworks>
> <frameworks root="Build/Frameworks">
> <include name="IMFoundation.framework"/>
> <include name="IMModel.framework"/>
> <include name="IMServices.framework"/>
> </frameworks>
> <otherclasspath root="Jars">
> <patternset>
> <include name="**/*.jar"/>
> </patternset>
> </otherclasspath>
>
> </woapplication>
>
>
> </target>
>
>
> On 3/14/06 8:38 AM, "Ulrich Köster" <ulric..bjectstyle.org> wrote:
>
>> Moin Dov,
>>
>> is the stuff in $user.home/Library/wobuild.properties correct?
>>
>> Uli
>> Am 14.03.2006 um 14:07 schrieb Dov Rosenberg:
>>
>>> We have been building our WOLips/Eclipse based app from the
>>> command line for over a year updating woproject.jar occasionally.
>>> The build script has worked without issue on OSX boxes, and MOST
>>> windows boxes without a hitch.
>>>
>>> We recently got a new Windows build server running Windows
>>> Server 2003 and I am running into a NullPointer problem where the
>>> WOApplication task is complaining about not being able to load
>>> environment variables. I have tried to debug but nothing else is
>>> shown. It looks like most of the WOApplication task seems to run
>>> – I get the correct directory structure and a jar file but the
>>> ant script just dies.
>>>
>>> I am using Ant 1.6.5 and Java 1.4.2_08 on all machines. I ran it
>>> on another Windows 2000 box and the script ran fine.
>>>
>>> The WOFramework task seems to work OK without complaints.
>>>
>>> Does anyone know of an issue with Windows 2003 Server?
>>>
>>>
>>> --
>>> Dov Rosenberg
>>> Conviveon/Inquira
>>> Knowledge Management Experts
>>> http://www.conviveon.com
>>> http://www.inquira.com
>>>
>>>
>>
>>
>>
>>
>
>
> --
> Dov Rosenberg
> Inquira Inc
> 370 Centerpointe Circle, ste 1178
> Altamonte Springs, FL 32701
> (407) 339-1177 x 102
> (407) 339-6704 (fax)
> drosenber..nquira.com
> AOL IM: dovrosenberg
>
Mit freundlichen Grüßen
Ulrich Köster
Assense Software Solutions GmbH
Stadtdeich 27
20097 Hamburg
Fernsprecher: +49 (0)40 3037579-0
Fernkopierer: +49 (0)40 3037579-9
This archive was generated by hypermail 2.0.0 : Tue Mar 14 2006 - 10:29:43 EST