Re: Difference between build.properties and wolips.properties?
Re: Difference between build.properties and wolips.properties?
- Subject: Re: Difference between build.properties and wolips.properties?
- From: David LeBer <email@hidden>
- Date: Wed, 20 Oct 2010 10:25:15 -0400
On 2010-10-20, at 9:54 AM, James Cicenia wrote:
> in my build.properties I have:
>
> wo.dir.installdir=/Library/WebObjects/Applications
> wo.dir.library=/System/Library
> wo.dir.library.frameworks=/System/Library/Frameworks
> wo.dir.reference.api=
> wo.homeroot=/Library/WebObjects
> wo.woroot=
> wo.wosystemroot=/System
>
> which doesn't quite correspond to what is in wolips.properties?
>
> Should they? Does one overwrite the other?
Sort of?
OK, this is my interpretation, others feel free to contradict me if I'm wrong.
wolips.properties are used by the incremental builder in WOlips to determine the paths to the frameworks that may be referenced by your projects (i.e: the core WebObjects frameworks and the Wonder frameworks). By default this file lives in ~/Library/Application Support/WOLips/wolips.properties, however, you can specify a different path to wolips.properties on a per workspace basis in the WOLips preferences.
Alternately, the build.properties are project specific, and are only used by the ant build system (i.e when you select WOLips Ant Tools -> Install from within WOLips). They use the same keys, and a wolips.properties file can be substituted for the build.properties file if you invoke ant install from the command line with the -propertyfile parameter. However, they are not guaranteed to be the same and updating one does not automatically update the other. Also, since the build.properties file is part of your project, and will get committed to SCM, if you are going to use the WOLips Ant Tools -> Install command from within WOLips from multiple dev machines, consider the paths carefully.
I hope that helps.
>
>
> On Oct 20, 2010, at 8:30 AM, James Cicenia wrote:
>
>> re-installed again from the binaries .. no difference in behavior.
>>
>> Time for a third total wipeout and reload.
>>
>> James
>>
>> On Oct 20, 2010, at 8:11 AM, David LeBer wrote:
>>
>>>
>>> On 2010-10-20, at 9:06 AM, James Cicenia wrote:
>>>
>>>> I have used both Jeremy's and Golipse to install.. this last time GoLips
>>>>
>>>>
>>>> 1) WebObjects 5.4.3
>>>> 2) Latest Wonder from Golips
>>>
>>> Erm, Golips only install Wolips/Eclipse...
>>>
>>>> 3) ~/Library/Frameworks
>>>> 4) I put things in /Developer:
>>>>
>>>> wo.api.root=
>>>> wo.apps.root=/Developer/WebObjects543/Library/WebObjects/Applications
>>>> wo.bootstrapjar=/Developer/WebObjects543/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
>>>> wo.dir.local.library.frameworks=/Developer/WebObjects543/Library/Frameworks
>>>> wo.dir.user.home.library.frameworks=/Users/probert/Library/Frameworks
>>>> wo.extensions=/Developer/WebObjects543/Library/WebObjects/Extensions
>>>> wo.local.frameworks=/Users/jcicenia/Library/Frameworks
>>>> wo.local.root=/Developer/WebObjects543
>>>> wo.network.frameworks=
>>>> wo.network.root=/Network
>>>> wo.system.frameworks=/Developer/WebObjects543/System/Library/Frameworks
>>>> wo.system.root=/Developer/WebObjects543/System
>>>> wo.user.frameworks=/Users/jcicenia/Library/Frameworks
>>>> wo.user.root=/Users/jcicenia
>>>> wolips.properties=wolips.properties
>>>>
>>>> 5) What is the Workspace Mechanics script?
>>>>
>>>> Thanks
>>>> James
>>>>
>>>> On Oct 20, 2010, at 7:49 AM, Paul D Yu wrote:
>>>>
>>>>> James
>>>>>
>>>>> Repeat the checklist:
>>>>>
>>>>> What version of WebObjects do you have installed?
>>>>>
>>>>> What version of Project Wonder do you have installed? Is it in /Library/Frameworks? or ~/Library/Frameworks?
>>>>>
>>>>> Where is ~/Library/Application Support/WOLips/wolips.properties pointing to?
>>>>>
>>>>> #Tue Oct 05 20:34:12 EDT 2010
>>>>> wo.api.root=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/InternetWeb/Reference/WO542Reference
>>>>> wo.apps.root=/Library/WebObjects/Applications
>>>>> wo.bootstrapjar=/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
>>>>> wo.extensions=/Library/WebObjects/Extensions
>>>>> wo.local.frameworks=/Library/Frameworks
>>>>> wo.local.root=/
>>>>> wo.network.frameworks=/Network/Library/Frameworks
>>>>> wo.network.root=/Network
>>>>> wo.system.frameworks=/System/Library/Frameworks
>>>>> wo.system.root=/System
>>>>> wo.user.frameworks=/Users/paul/Library/Frameworks
>>>>> wo.user.root=/Users/paul
>>>>> wolips.properties=wolips.properties
>>>>>
>>>>> of course this is auto generated
>>>>>
>>>>> Did you use the Workspace Mechanics script?
>>>>>
>>>>> Paul
>>>>> On Oct 20, 2010, at 8:26 AM, James Cicenia wrote:
>>>>>
>>>>>>
>>>>>> OK -
>>>>>>
>>>>>> That put them into Referenced Libraries, but alas, hasn't changed the behavior.
>>>>>>
>>>>>> Hints:
>>>>>> 1) It won't read my Properties file (I have no other that I know of)
>>>>>> 2) first line of the console says: Couldn't load properties files: /Users/jk/WebObjects.properties
>>>>>> 3) Can't read the bundle numbers (says it is malformed [MS says to ignore, though it doesn't happen on my other two machines])
>>>>>> 4) Gives me a warning: Invalid value {1} for server variable named {0}, falling back to sane default of {2}.
>>>>>>
>>>>>> Those are the only differences in the console when trying to launch the app...
>>>>>>
>>>>>> Then if I override the er.javamail.centralize... it will pass that error and then give me the dreaded WOMain is not a WOComponent.
>>>>>>
>>>>>> I have nothing in /Library/Java/Extensions or /Library/WebObjects/Extensions
>>>>>>
>>>>>> I have installed eclipse three times. Downloaded the app from subversion three times, etc.
>>>>>>
>>>>>> Very very frustrating... working on this beast .. a bit on the weekend and all day yesterday and now today.
>>>>>>
>>>>>> Help!
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Oct 20, 2010, at 7:05 AM, Pascal Robert wrote:
>>>>>>
>>>>>>>
>>>>>>> Le 2010-10-20 à 07:30, James Cicenia a écrit :
>>>>>>>
>>>>>>>> OK -
>>>>>>>>
>>>>>>>> Maybe this is the issue? No matter what I do, on this new mac, nothing shows up in Referenced Libraries. I have various jars that are in "Libraries" AND "Referenced Libraries" on both my other machines. How do I get my libraries into "Referenced Libraries" ?
>>>>>>>
>>>>>>> Referenced Libraries are the libs that are in the build path. If you have libs in Libraries that are not under Reference Libraries, do a right-click on the lib and do Build Path -> Add to Build Path.
>>>>>>>
>>>>>>>> Workstation from hell,
>>>>>>>> James
>>>>>>>>
>>>>>>>> On Oct 20, 2010, at 1:30 AM, D Tim Cummings wrote:
>>>>>>>>
>>>>>>>>> I too have had strange behaviour on validation in the .wo in a new install, with source freshly checked out of subversion. Application and session are prime candidates for problems, as well as using methods from super classes. I am not sure what it is that triggers wo validation to start working. I think the wo has to be closed when doing a project clean, and then opening the wo's which still have errors. Once the wo's are open the errors go away. If the binding validation errors don't go away, I try editing the binding in the wo to some gibberish, close the wo, restarting eclipse, open the wo and retype the original binding which had an error.
>>>>>>>>>
>>>>>>>>> Once that first batch of errors is cleared, WOLips is rock solid, and I can't repeat the problem.
>>>>>>>>>
>>>>>>>>> Tim
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 20/10/2010, at 12:43 PM, Paul D Yu wrote:
>>>>>>>>>
>>>>>>>>>> I've seen some strange behavior on validation in the .wo as well. Mine would show up for some random inline component all of a sudden becoming not found. A clean usually does the trick.
>>>>>>>>>>
>>>>>>>>>> Remember there are LOTS of property files. All it takes is one of them in the process to over rule the one you thought should be ruling.
>>>>>>>>>>
>>>>>>>>>> My setup now is Properties.paul er.javamai.centralize is true, then Properties that is set to false.
>>>>>>>>>>
>>>>>>>>>> But you need to make sure the .<username> properties file has all the parameters that you want to override. In your case it may be overriding what you don't want.
>>>>>>>>>>
>>>>>>>>>> Paul
>>>>>>>>>> On Oct 19, 2010, at 10:32 PM, James Cicenia wrote:
>>>>>>>>>>
>>>>>>>>>>> it seems as though... if I go into the wod the errors disappear... sort of like an incomplete build.
>>>>>>>>>>>
>>>>>>>>>>> Now when I run it, it can't seem to find my properties file because it thinks that er.javamail.centralize is true.
>>>>>>>>>>>
>>>>>>>>>>> James
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Oct 19, 2010, at 9:27 PM, James Cicenia wrote:
>>>>>>>>>>>
>>>>>>>>>>>> nothing in those directories.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Oct 19, 2010, at 8:40 PM, Chuck Hill wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> You have undesirable elements, er jars, in /Library/Java/Extensions or /Library/WebObjects/Extensions.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Oct 19, 2010, at 6:22 PM, James Cicenia wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> This is a cursed computer.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Anyway, I did some fresh installs for the third time.
>>>>>>>>>>>>>> Ran an example app. Setup all my paths like my
>>>>>>>>>>>>>> other two workstations... blah, blah, blah.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Did a clean build and now my components can't see
>>>>>>>>>>>>>> application or session in the wod files.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ???
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> help.
>>>>>>>>>>>>>> James
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Oct 19, 2010, at 2:13 PM, James Cicenia wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hmmm...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> That is something to look at...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> - j-
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Oct 19, 2010, at 1:58 PM, Paul D Yu wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> IIRC. The version number thing sounds like JVM version difference between those three frameworks and the running app? MS had me look inside my frameworks/class wrapper to see what version those were. I don't remember exactly how to do that, sorry.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Paul
>>>>>>>>>>>>>>>> On Oct 19, 2010, at 2:05 PM, James Cicenia wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I noticed this at the top of the log:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> [2010-10-19 13:1:30 CDT] <main> Couldn't load properties file: /Users/jerrykosek/WebObjects.properties at path: /Users/jerrykosek
>>>>>>>>>>>>>>>>> [2010-10-19 13:1:30 CDT] <main> The bundle MyEOPrototypes has malformed version number:
>>>>>>>>>>>>>>>>> [2010-10-19 13:1:30 CDT] <main> The bundle QualifierAdditions has malformed version number:
>>>>>>>>>>>>>>>>> [2010-10-19 13:1:31 CDT] <main> The bundle NoxymoCore has malformed version number: null
>>>>>>>>>>>>>>>>> [2010-10-19 13:1:31 CDT] <main> Couldn't load properties file: /Users/jerrykosek/WebObjects.properties at path: /Users/jerrykosek
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I don't see WebObjects.properties as file in the users directory on my other two installs.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Where is this set to look for it?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Oct 19, 2010, at 10:31 AM, James Cicenia wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Nothing in there.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Oct 19, 2010, at 10:19 AM, Pascal Robert wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Le 2010-10-19 à 10:48, James Cicenia a écrit :
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> A couple of things:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I am not using ERXApplication and why would I have to do this if it compiles and runs on two of my other development machines?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> You probably have something in /Library/Java/Extensions that have a class called "Main" and that class is taking over your Main class. Cleanup /Library/Java/Extensions (close Eclipse before doing that) and check if the problem goes away.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>>>>>>>> James
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On Oct 19, 2010, at 9:37 AM, Henrique Prange wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Hi James,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Add to your Application class:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> @Override
>>>>>>>>>>>>>>>>>>>>> public void installPatches() {
>>>>>>>>>>>>>>>>>>>>> super.installPatches();
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> ERXPatcher.setClassForName(Main.class, "Main");
>>>>>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Henrique
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 19/10/2010, at 12:11, James Cicenia wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Trying to get this dev laptop working but when I try to run the app I get the following which I haven't seen.
>>>>>>>>>>>>>>>>>>>>>> Thoughts? Thanks James
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Tue Oct 19 13:54:33 GMT 2010 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}.
>>>>>>>>>>>>>>>>>>>>>> JDBC connection successful!
>>>>>>>>>>>>>>>>>>>>>> Tue Oct 19 13:54:33 GMT 2010 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}.
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:35 CDT] <main> ** DirectToWeb could not merge d2wmodel from file:/Users/jerrykosek/Library/Frameworks/ERDirectToWeb.framework/Resources/d2w.d2wmodel for reason: ** DirectToWeb exception - a rule cannot be instantiated if its right hand side is null. LHS=null RHS=null
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:36 CDT] <main> Opening application's URL in browser:
>>>>>>>>>>>>>>>>>>>>>> http://10.0.1.15:5555/cgi-bin/WebObjects/TOSDevelopment.woa
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:35 CDT] <main> null
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:36 CDT] <main> DirectToWeb WebAssistant launch line: appletviewer http://localhost:5555/cgi-bin/WebObjects/TOSDevelopment.woa/wa/D2WActions/openWebAssistant
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:46 CDT] <WorkerThread0> <com.webobjects.appserver.WODirectAction>: Exception in performActionNamed() on the action "default" with the message:java.lang.IllegalArgumentException: <com.webobjects.appserver._private.WOComponentDefinition> Class 'Main' exists but is not a subclass of WOComponent.
>>>>>>>>>>>>>>>>>>>>>> handleActionRequewtError java.lang.reflect.InvocationTargetException
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:46 CDT] <WorkerThread0> <com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception while handling action named "default" on action class "null" :java.lang.reflect.InvocationTargetException
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:46 CDT] <WorkerThread0> <WOWorkerThread id=0 socket=Socket[addr=/10.0.1.15,port=49620,localport=5555]> Exception occurred while responding to client: com.webobjects.foundation.NSForwardException [java.lang.NullPointerException] null:<com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception while trying to generate an error response: java.lang.NullPointerException
>>>>>>>>>>>>>>>>>>>>>> [2010-10-19 8:54:47 CDT] <WorkerThread0> com.webobjects.foundation.NSForwardException [java.lang.NullPointerException] null:<com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception while trying to generate an error response: java.lang.NullPointerException
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:320)
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161)
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>>>>>>>>>>>>>>>>>>>>> at com.noxymo.application.NXApplication.dispatchRequest(NXApplication.java:201)
>>>>>>>>>>>>>>>>>>>>>> at com.tos.Application.dispatchRequest(Application.java:436)
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>>>>>>>>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:637)
>>>>>>>>>>>>>>>>>>>>>> Caused by: java.lang.NullPointerException
>>>>>>>>>>>>>>>>>>>>>> at com.tos.Application.handleException(Application.java:461)
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver._private.WODirectActionRequestHandler.generateErrorResponse(WODirectActionRequestHandler.java:126)
>>>>>>>>>>>>>>>>>>>>>> at com.webobjects.appserver._priva
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
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