Building Wonder 7 on Windows problem
Building Wonder 7 on Windows problem
- Subject: Building Wonder 7 on Windows problem
- From: Markus Ruggiero <email@hidden>
- Date: Sun, 06 Mar 2016 00:15:08 +0100
Folks, weird as this is, but I am not anymore able to build the Wonder Frameworks from the command line in Windows 7.
Following my own book the compile failed becuase the WebObjects classes could not be found. Ok, I thought, easy one, must be a typo in wonder-master\build.properties. But there wasn't. I then started to try to understand the and build process.
It goes something like this:
CMD> ant frameworks invokes target "frameworks" in file wonder-master\build.xml, this in turn invokes target "frameworks.all" in Build\build\build.xml
This eventually goes to target "global.framework.build" in file Build/build/generic.xml
There is a dependancy on target "global.properties" and this in turn depends on target "global.environment" and finally on "target global.environment" (everything still in Build\build\generic.xml)
In this global.environment the fun really starts to happen:
It loads the following properties files:
<property name="wonder.root" value="${basedir}" />
<property file="${project.dir}/build.properties" />
<property file="${user.home}/Library/Application Support/WOLips/wolips.properties" />
<property file="${wonder.root}/Build/build/default.properties" />
I confirmed by injecting <echoproperties/> and some <echo...> things:
$[project.dir]/build.properties is the default properties file for the Framework build
It does NOT define any wo.* properties
${user.home}/Library/Application Support/WOLips/wolips.properties
This defines all the wo.* properties, but it is from the wrong location:
Eclipse/WOLips creates the default stub wolips.properties in %APPDATA%, which is NOT the same location
Nowhere is the file wonder-source\build.properties read, however this file should be created manually (or as a copy of / link to wolips.properties)
Also no file wobuild.properties is referenced.
First finding: the build instructions in wonder-master\BUILD.txt make no sense anymore, everything seems to have changed.
After copying wolips.properties to "C:\Users\ruggiero\Library/Application Support/WOLips/wolips.properties" the WebObjects classes were found but then the compile process crashed with an NPE. Below is the complete log including a dump of the properties.
What is going on here? What is supposed to go on?
Anybody able to help?
Thanks a lot
---markus---
====== build log ======
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\ruggiero>cd ..\..\Development\sources\wonder-master
C:\Development\sources\wonder-master>ant frameworks
Buildfile: C:\Development\sources\wonder-master\build.xml
frameworks:
frameworks.all:
ERJars.all:
global.environment:
[echo] reading C:\Users\ruggiero/Library/Application Support/WOLips/wolips.properties
[echoproperties] #Ant properties
[echoproperties] #Sat Mar 05 23:34:58 CET 2016
[echoproperties] ant.core.lib=C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant.jar
[echoproperties] ant.file=C\:\\Development\\sources\\wonder-master\\Build\\build\\build.xml
[echoproperties] ant.file.Utils=C\:\\Development\\sources\\wonder-master\\Build\\build\\generic.xml
[echoproperties] ant.file.Wonder=C\:\\Development\\sources\\wonder-master\\Build\\build\\build.xml
[echoproperties] ant.file.type=file
[echoproperties] ant.file.type.Utils=file
[echoproperties] ant.file.type.Wonder=file
[echoproperties] ant.home=C\:\\Development\\lib\\apache-ant-1.9.6
[echoproperties] ant.java.version=1.8
[echoproperties] ant.library.dir=C\:\\Development\\lib\\apache-ant-1.9.6\\lib
[echoproperties] ant.project.default-target=all
[echoproperties] ant.project.invoked-targets=global.framework.build
[echoproperties] ant.project.name=Wonder
[echoproperties] ant.version=Apache Ant(TM) version 1.9.6 compiled on June 29 2015
[echoproperties] awt.toolkit=sun.awt.windows.WToolkit
[echoproperties] basedir=C\:\\Development\\sources\\wonder-master
[echoproperties] build.action=build
[echoproperties] cfBundleID=er.jars
[echoproperties] cfBundleShortVersion=
[echoproperties] cfBundleVersion=
[echoproperties] classes.dir=bin
[echoproperties] component.inlineBindingPrefix=$
[echoproperties] component.inlineBindingSuffix=
[echoproperties] component.wellFormedTemplateRequired=false
[echoproperties] customInfoPListContent=
[echoproperties] eoAdaptorClassName=
[echoproperties] file.encoding=Cp1252
[echoproperties] file.encoding.pkg=sun.io
[echoproperties] file.separator=\\
[echoproperties] framework.erjars.commons.cli=commons-cli-1.3.1.jar
[echoproperties] framework.erjars.commons.codec=commons-codec-1.10.jar
[echoproperties] framework.erjars.commons.io=commons-io-2.4.jar
[echoproperties] framework.erjars.commons.lang=commons-lang-2.6.jar
[echoproperties] framework.erjars.commons.lang3=commons-lang3-3.4.jar
[echoproperties] framework.erjars.fluent-hc=fluent-hc-4.5.1.jar
[echoproperties] framework.erjars.httpclient=httpclient-4.5.1.jar
[echoproperties] framework.erjars.httpclient-cache=httpclient-cache-4.5.1.jar
[echoproperties] framework.erjars.httpcore=httpcore-4.4.4.jar
[echoproperties] framework.erjars.httpmime=httpmime-4.5.1.jar
[echoproperties] framework.erjars.icu4j=icu4j-3_8_1.jar
[echoproperties] framework.erjars.joda=joda-time-2.9.2.jar
[echoproperties] framework.erjars.junit=junit-4.12.jar
[echoproperties] framework.erjars.log4j=log4j-1.2.17.jar
[echoproperties] framework.erjars.ognl=ognl-3.1.2.jar
[echoproperties] framework.erjars.slf4j.api=slf4j-api-1.7.16.jar
[echoproperties] framework.erjars.slf4j.log4j12=slf4j-log4j12-1.7.16.jar
[echoproperties] frameworks.system.core=JavaFoundation/JavaEOAccess/JavaEOControl/JavaWebObjects/JavaWOJSPServlet/JavaJDBCAdaptor/Ja
vaXML/JavaDirectToWeb/JavaEOProject/JavaDTWGeneration
[echoproperties] frameworks.system.d2w=JavaFoundation/JavaEOAccess/JavaEOControl/JavaWebObjects/JavaWOJSPServlet/JavaJDBCAdaptor/Jav
aXML/JavaDirectToWeb/JavaEOProject/JavaDTWGeneration/JavaDirectToWeb/JavaEOProject/JavaDTWGeneration
[echoproperties] frameworks.wonder.core=ERJars/ERExtensions/JavaWOExtensions
[echoproperties] frameworks.wonder.d2w=ERJars/ERExtensions/JavaWOExtensions/ERDirectToWeb
[echoproperties] frameworks.wonder.jars=ERJars
[echoproperties] frameworks.wonder.logic=ERJars/ERExtensions/JavaWOExtensions/ERDirectToWeb/ERPrototypes/ERCoreBusinessLogic
[echoproperties] include.source=true
[echoproperties] java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
[echoproperties] java.awt.printerjob=sun.awt.windows.WPrinterJob
[echoproperties] java.class.path=C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-launcher.jar;C\:\\Development\\lib\\apache-ant-1.
9.6\\lib\\ant-antlr.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-apache-bcel.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\l
ib\\ant-apache-bsf.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-apache-log4j.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\l
ib\\ant-apache-oro.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-apache-regexp.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\
lib\\ant-apache-resolver.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-apache-xalan2.jar;C\:\\Development\\lib\\apache-ant-1
.9.6\\lib\\ant-commons-logging.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-commons-net.jar;C\:\\Development\\lib\\apache-a
nt-1.9.6\\lib\\ant-jai.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-javamail.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\l
ib\\ant-jdepend.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-jmf.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-jsch
.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-junit.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-junit4.jar;C\:\\D
evelopment\\lib\\apache-ant-1.9.6\\lib\\ant-launcher.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-netrexx.jar;C\:\\Developm
ent\\lib\\apache-ant-1.9.6\\lib\\ant-swing.jar;C\:\\Development\\lib\\apache-ant-1.9.6\\lib\\ant-testutil.jar;C\:\\Development\\lib\
\apache-ant-1.9.6\\lib\\ant.jar;C\:\\Program Files\\Java\\jdk1.8.0_73\\lib\\tools.jar
[echoproperties] java.class.version=52.0
[echoproperties] java.endorsed.dirs=C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\endorsed
[echoproperties] java.ext.dirs=C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\ext;C\:\\Windows\\Sun\\Java\\lib\\ext
[echoproperties] java.home=C\:\\Program Files\\Java\\jdk1.8.0_73\\jre
[echoproperties] java.io.tmpdir=C\:\\Users\\ruggiero\\AppData\\Local\\Temp\\
[echoproperties] java.library.path=C\:\\Program Files\\Java\\jdk1.8.0_73\\bin;C\:\\Windows\\Sun\\Java\\bin;C\:\\Windows\\system32;C\
:\\Windows;C\:\\ProgramData\\Oracle\\Java\\javapath;C\:\\Windows\\system32;C\:\\Windows;C\:\\Windows\\System32\\Wbem;C\:\\Windows\\S
ystem32\\WindowsPowerShell\\v1.0\\;C\:\\Dev-Cpp\\bin\\;C\:\\xampp\\mysql\\bin;C\:\\Program Files\\Java\\jdk1.6.0_30\\bin;C\:\\Develo
pment\\lib\\apache-ant-1.9.6\\bin;.
[echoproperties] java.runtime.name=Java(TM) SE Runtime Environment
[echoproperties] java.runtime.version=1.8.0_73-b02
[echoproperties] java.specification.name=Java Platform API Specification
[echoproperties] java.specification.vendor=Oracle Corporation
[echoproperties] java.specification.version=1.8
[echoproperties] java.vendor=Oracle Corporation
[echoproperties] java.vendor.url=http\://java.oracle.com/
[echoproperties] java.vendor.url.bug=http\://bugreport.sun.com/bugreport/
[echoproperties] java.version=1.8.0_73
[echoproperties] java.vm.info=mixed mode, sharing
[echoproperties] java.vm.name=Java HotSpot(TM) Client VM
[echoproperties] java.vm.specification.name=Java Virtual Machine Specification
[echoproperties] java.vm.specification.vendor=Oracle Corporation
[echoproperties] java.vm.specification.version=1.8
[echoproperties] java.vm.vendor=Oracle Corporation
[echoproperties] java.vm.version=25.73-b02
[echoproperties] line.separator=\r\n
[echoproperties] os.arch=x86
[echoproperties] os.name=Windows 7
[echoproperties] os.version=6.1
[echoproperties] path.separator=;
[echoproperties] principalClass=
[echoproperties] project.dir=Frameworks/Core/ERJars
[echoproperties] project.name=ERJars
[echoproperties] project.name.lowercase=erjars
[echoproperties] project.principal.class=
[echoproperties] project.type=framework
[echoproperties] sun.arch.data.model=32
[echoproperties] sun.boot.class.path=C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\resources.jar;C\:\\Program Files\\Java\\jdk1.8
.0_73\\jre\\lib\\rt.jar;C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\sunrsasign.jar;C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\
lib\\jsse.jar;C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\jce.jar;C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\charsets.jar
;C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\lib\\jfr.jar;C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\classes
[echoproperties] sun.boot.library.path=C\:\\Program Files\\Java\\jdk1.8.0_73\\jre\\bin
[echoproperties] sun.cpu.endian=little
[echoproperties] sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
[echoproperties] sun.desktop=windows
[echoproperties] sun.io.unicode.encoding=UnicodeLittle
[echoproperties] sun.java.command=org.apache.tools.ant.launch.Launcher frameworks
[echoproperties] sun.java.launcher=SUN_STANDARD
[echoproperties] sun.jnu.encoding=Cp1252
[echoproperties] sun.management.compiler=HotSpot Client Compiler
[echoproperties] sun.os.patch.level=Service Pack 1
[echoproperties] sun.stderr.encoding=cp437
[echoproperties] sun.stdout.encoding=cp437
[echoproperties] user.country=US
[echoproperties] user.country.format=CH
[echoproperties] user.dir=C\:\\Development\\sources\\wonder-master
[echoproperties] user.home=C\:\\Users\\ruggiero
[echoproperties] user.language=en
[echoproperties] user.language.format=de
[echoproperties] user.name=ruggiero
[echoproperties] user.script=
[echoproperties] user.timezone=
[echoproperties] user.variant=
[echoproperties] wo.api.root=/Developer/ADC Reference Library/documentation/WebObjects/Reference/API
[echoproperties] wo.apps.root=C\:\\Development\\Libraries\\WOnder\\Library\\WebObjects\\Applications
[echoproperties] wo.bootstrapjar=C\:\\Development\\Libraries\\WOnder\\Library\\WebObjects\\JavaApplications\\wotaskd.woa\\WOBootstra
p.jar
[echoproperties] wo.dir.local.library.frameworks=C\:\\Development\\lib\\wo\\local\\Library\\Frameworks
[echoproperties] wo.dir.user.home.library.frameworks=C\:\\Users\\ruggiero\\Library\\Frameworks
[echoproperties] wo.extensions=C\:\\Apple\\Local\\Library\\WebObjects\\Extensions
[echoproperties] wo.local.frameworks=C\:\\Development\\lib\\wo\\local\\Library\\Frameworks
[echoproperties] wo.local.root=C\:\\Development\\lib\\wo\\local
[echoproperties] wo.network.frameworks=C\:\\Network\\Library\\Frameworks
[echoproperties] wo.network.root=C\:\\Network
[echoproperties] wo.system.frameworks=C\:\\Development\\lib\\wo\\system\\Library\\Frameworks
[echoproperties] wo.system.root=C\:\\Development\\lib\\wo\\system
[echoproperties] wo.user.frameworks=C\:\\Users\\ruggiero\\Library\\Frameworks
[echoproperties] wo.user.root=C\:\\Users\\ruggiero
[echoproperties] wolips.properties=wolips.properties
[echoproperties] wonder.root=C\:\\Development\\sources\\wonder-master
global.properties:
global.prepare:
global.compile:
global.dummy:
BUILD FAILED
C:\Development\sources\wonder-master\build.xml:12: The following error occurred while executing this line:
C:\Development\sources\wonder-master\Build\build\build.xml:1153: The following error occurred while executing this line:
C:\Development\sources\wonder-master\Build\build\build.xml:65: The following error occurred while executing this line:
C:\Development\sources\wonder-master\Build\build\generic.xml:258: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:459)
at java.util.Properties.setProperty(Properties.java:166)
at org.objectstyle.woenvironment.env.WOVariables.createDefaultProperties(Unknown Source)
at org.objectstyle.woenvironment.env.WOVariables.init(Unknown Source)
at org.objectstyle.woenvironment.env.WOVariables.<init>(Unknown Source)
at org.objectstyle.woenvironment.env.WOEnvironment.<init>(Unknown Source)
at org.objectstyle.woenvironment.frameworks.ExternalFrameworkModel.<init>(Unknown Source)
at org.objectstyle.woproject.ant.FrameworkSet.getFrameworkModel(Unknown Source)
at org.objectstyle.woproject.ant.FrameworkSet.setRoot(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject(IntrospectionHelper.java:1506)
at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:411)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:527)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:463)
at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:593)
at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:359)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:205)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:164)
at org.apache.tools.ant.Task.perform(Task.java:347)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Total time: 0 seconds
C:\Development\sources\wonder-master>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden