Changes for page WO 5.4 Getting Started
Last modified by D Tim Cummings on 2013/06/14 16:27
From version 62.1
edited by Pascal Robert
on 2007/11/29 14:04
on 2007/11/29 14:04
Change comment:
There is no comment for this version
To version 48.1
edited by jricker
on 2008/08/22 12:19
on 2008/08/22 12:19
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. probert1 +XWiki.jricker - Content
-
... ... @@ -4,9 +4,9 @@ 4 4 5 5 Download Xcode 3 from [[ADC>>http://developer.apple.com/leopard/devcenter/]], the WebObjects frameworks are included in this package. You will have to make a custom install and select //WebObjects// in the package list since WebObjects is not part of the default installation. 6 6 7 -Install [[Eclipse 3.3. 1.1>>http://www.eclipse.org/downloads/download.php?file=//eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-SDK-3.3.1.1-macosx-carbon.tar.gz]] (yes that's an extra.1) which fixes thepermgen space bug from 3.3.17 +Install [[Eclipse 3.3.2>>http://download.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/index.php]] 8 8 9 -[[Install>>WOL:Install WOLips with Eclipse Update Manager]] WOLips from the [[nightly>>http://webobjects.mdimension.com/wolips/nightly]] buildserver9 +[[Install>>WOL:Install WOLips with Eclipse Update Manager]] WOLips from the [[stable>>http://webobjects.mdimension.com/wolips/stable]] build server. ([[nightly>>http://webobjects.mdimension.com/wolips/nightly]] only works with Eclipse 3.4, not recommended yet). 10 10 11 11 Start Eclipse and switch to the WOLips perspective. To achieve this, open the //Window// menu, select //Open Perspective// and select //Other...//. 12 12 ... ... @@ -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 Panel83 +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, adda//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 add95 +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 running124 +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 - 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 / 5.4 development 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.sh 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.sh 54 314 +or 315 +# ./woswitch.sh 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 to manually set ##NEXT//ROOT//##// appropriately.//