To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.
Download Xcode 3 from ADC, 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.
Install Eclipse 184.108.40.206 (yes that's an extra .1) which fixes the permgen space bug from 3.3.1
Start Eclipse and switch to the WOLips perspective. To achieve this, open the Window menu, select Open Perspective and select Other....
In the perspective choices, select WOLips and click Ok.
If you don't switch to the WOLips perspective, you won't be able to create new WebObjects projects.
You are now ready to create projects or importing the examples.
Apple has converted their WebObjects examples in the Eclipse format, but no documentation is provided on how to import them into Eclipse. The examples are in /Developer/Examples/JavaWebObjects.
The first step is: install Eclipse and WOLips
Some examples needs Derby, an embedded Java database (OpenBase is not included with WO anymore). To install the databases, you have to do:
Now, you can import the examples into Eclipse. Start Eclipse, select File -> Import,
and select General -> Existing Projects into Workplace.
On the next page, select Select root directory and browse your disk to /Developer/Examples/JavaWebObjects. You should see a list of projects to import. Deselect the second javaeoutil project, or else you won't be able to import the projects.
After the importation is done, you should see the projects in the WO Package Explorer. If you see the projects in Package Explorer (without "WO" in the name), that means that you are using the Java perpective instead of the WOLips perpective. Switch the perpective to WOLips.
Now, you need to fix the examples, because the build path is pointing to the source projects of the WO frameworks, source that nobody outside Apple has access to :-)For each project, right-click on each project, select Build Path -> Configure Build Path...
Click on the Projects tab, select the references to the WO frameworks that have the Warning icon and click Remove.
Click on the Libraries tab, click the Add Library button. Select WebObjects Frameworks and click Next.
Click System, open the triangle next to System and make sure that JavaEOAccess, JavaEOControl, JavaFoundation, JavaWebObjects, JavaWOExtensions and JavaXML are selected. For SchoolToolsClient, you also need to add JavaWebServicesSupport and JavaWebServicesClient to the build path. For the SchoolToolsServer, you need to add JavaWebServicesSupport.
After you corrected the build path on a project, the project will rebuild itself and the errors shoud dissapear.
JavaBusinessLogic and RelatedLinks requires Apache Derby, but the path to Derby's JAR is wrong. Remove the JAR from the build path, click Add External JARs..., browse your disk up to /Developer/Examples/JavaWebObjects/Databases/db-derby-10.2.2.0-bin/lib and select derby.jar. The build path should look like this:
Voilà! You finally can run the examples.
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.
Make sure Web Sharing is enabled in the Sharing panel in System Preferences (note: 10.5 comes with Apache 2.2 as the default).
Edit /etc/apache2/httpd.conf (if you did a fresh install, you may already have these - search httpd.conf first)
Search for rewrite_module, and above it, add this line:
Go to the very end and add:
Search for "Directory /" and comment out the Order and Deny lines:
If you run ps auxw | grep httpd you should see apache now running
Create /Library/LaunchDaemons/com.apple.webobjects.wotaskd.plist with:
Create /Library/LaunchDaemons/com.apple.webobjects.womonitor.plist with:
Start the launchd daemons :
If you run "ps auxw | grep java" you should see wotaskd and java monitor now running. You should be able to connect to Monitor by this URL:
(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):
Make a /System/Library/Frameworks/WebObjects54 folder, and move the following frameworks from the 5.4 install into it:
Make a /System/Library/Frameworks/WebObjects53 folder, and move the following frameworks from your old 5.3 install into it (I tar'd these up from 5.3 before upgrading, but you can download 5.3 and extract these from the pkg, or POSSIBLY install them with the actually installer ... YMMV on that one)
I then use the following two scripts to be able to switch between using 5.3 and 5.4 system wide:
At this point, you should have NO WO frameworks in /System/Library/Frameworks -- they should be in subfolders.
Now go ahead and run wo53, which should now give you WO 5.3 framework symlinks.
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.
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.
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
Then run it like this:
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.
To switch between the two runtimes, quit WOLips and run
Then run WOLips again.
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
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