Changes for page WO 5.4 Getting Started

Last modified by D Tim Cummings on 2013/06/14 16:27

From version 61.1
edited by Pascal Robert
on 2007/11/29 14:04
Change comment: There is no comment for this version
To version 67.1
edited by Quinton Dolan
on 2008/02/26 19:30
Change comment: Added woswitch method of maintaining a dual runtime environment

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.probert
1 +XWiki.qdolan
Content
... ... @@ -80,12 +80,11 @@
80 80  
81 81  Monitor and wotaskd are installed, but the launchd scripts to start them are not installed. You can grab them from a 10.5 Server installation, or follow those instructions.
82 82  
83 -Make sure Web Sharing is enabled in the Sharing Prefs Panel
83 +Make sure //Web Sharing// is enabled in the //Sharing// panel in //System Preferences// (note: 10.5 comes with Apache 2.2 as the default).
84 84  
85 -Note: /etc/httpd is out, /etc/apache2 is in
86 -Edit /etc/apache2/httpd.conf (if you did a fresh install, you may already have these - search httpd.conf first)
85 +Edit ///etc/apache2/httpd.conf// (if you did a fresh install, you may already have these - search httpd.conf first)
87 87  
88 -search for rewrite//module, and above it, add a//
87 +Search for rewrite//module, and above it, add this line~://
89 89  
90 90  {{code}}
91 91  
... ... @@ -93,7 +93,7 @@
93 93  
94 94  {{/code}}
95 95  
96 -go to the very end and add
95 +Go to the very end and add:
97 97  
98 98  {{code}}
99 99  
... ... @@ -122,7 +122,7 @@
122 122  
123 123  {{/code}}
124 124  
125 -if you run "ps auxw grep httpd" you should see apache now running
124 +If you run //ps auxw grep httpd// you should see apache now running
126 126  
127 127  Create ///Library/LaunchDaemons/com.apple.webobjects.wotaskd.plist// with:
128 128  
... ... @@ -157,7 +157,7 @@
157 157  
158 158  {{/code}}
159 159  
160 - Create ///Library/LaunchDaemons/com.apple.webobjects.womonitor.plist// with:
159 +Create ///Library/LaunchDaemons/com.apple.webobjects.womonitor.plist// with:
161 161  
162 162  {{code}}
163 163  
... ... @@ -209,9 +209,10 @@
209 209  
210 210  = Developing with both WebObjects 5.4 and 5.3 =
211 211  
212 -The following can be done a couple ways, but this is just how I happened to have things setup in betas, so I kept it (it worked for me):
213 - Make a ///System/Library/Frameworks/WebObjects54// folder, and move the following frameworks from the 5.4 install into it:
211 +(Mike Schrag) The following can be done a couple ways, but this is just how I happened to have things setup in betas, so I kept it (it worked for me):
214 214  
213 +Make a ///System/Library/Frameworks/WebObjects54// folder, and move the following frameworks from the 5.4 install into it:
214 +
215 215  {{code}}
216 216  
217 217  JavaDTWGeneration.framework
... ... @@ -276,9 +276,11 @@
276 276  {{code}}
277 277  
278 278  bash-3.2# cat wo53
279 -for framework in `ls /System/Library/Frameworks/WebObjects53`; do rm /System/Library/Frameworks/$framework; ln \-sf /System/Library/Frameworks/WebObjects53/$framework /System/Library/Frameworks/$framework; done
279 +for framework in `ls /System/Library/Frameworks/WebObjects53`; do rm /System/Library/Frameworks/$framework; \
280 +ln -sf /System/Library/Frameworks/WebObjects53/$framework /System/Library/Frameworks/$framework; done
280 280  bash-3.2# cat wo54
281 -for framework in `ls /System/Library/Frameworks/WebObjects54`; do rm /System/Library/Frameworks/$framework; ln \-sf /System/Library/Frameworks/WebObjects54/$framework /System/Library/Frameworks/$framework; done
282 +for framework in `ls /System/Library/Frameworks/WebObjects54`; do rm /System/Library/Frameworks/$framework; \
283 +ln -sf /System/Library/Frameworks/WebObjects54/$framework /System/Library/Frameworks/$framework; done
282 282  
283 283  {{/code}}
284 284  
... ... @@ -287,3 +287,35 @@
287 287  Now go ahead and run wo53, which should now give you WO 5.3 framework symlinks.
288 288  
289 289  You may need to do a clean build of your projects in Eclipse If things are setup properly, you should not get any Java errors you didn't already have.
292 +
293 +== Alternative 5.3 Installation method ==
294 +
295 +The [[^woswitch]] script can be used as an alternative method to installing and using WO 5.3 for development, without the need to touch or move any of the installed WO 5.4 frameworks. This script will download and install the WebObjects 5.3.3 runtime into /Developer/WebObjects53 and maintain two copies of your ,,/Library/wobuild.properties so you can quickly switch WOLips development between the two different runtime versions.,,
296 +
297 +To use the script for the first time, ensure that you have WebObjects 5.4 installed, and have run WOLips at least once to create your ,,/Library/wobuild.properties file. Also ensure that the script has been set executable with ##chmod __x woswitch__##,,
298 +
299 +Then run it like this:
300 +
301 +{{noformat}}
302 +
303 +# woswitch 53
304 +
305 +{{/noformat}}
306 +
307 +This can take quite some time the first time as it downloads, extracts and sets the WO 5.3 runtime up. After this is done, switching between the two runtimes is almost instant.
308 +
309 +To switch between the two runtimes, quit WOLips and run
310 +
311 +{{noformat}}
312 +
313 +# ./woswitch 54
314 +or
315 +# ./woswitch 53
316 +
317 +{{/noformat}}
318 +
319 +Then run WOLips again.
320 +
321 +One thing to remember is that when you are installing frameworks they need to be installed into the appropriate location for the runtime you are targeting. For WO 5.4 you need to install them into ##/Library/WebObjects/Frameworks## and for WO 5.3 they need to go into ##/Developer/WebObjects53/Library/Frameworks##.
322 +
323 +Keep in mind that these changes are specific to WOLips and woproject only. If you run anything outside of WOLips you will also need manually to set ##NEXT//ROOT//##// appropriately.//