WebObjects Developer Quick Start Guide

Version 27.1 by Kieran Kelleher on 2009/12/06 12:51

Warning
Incomplete Page

This is a Work in Progress page and is incomplete. Come back at a later date. (kieran)

Who is this Guide for?

This guide is for you if

  1. You are new to WebObjects
  2. You are not new to software development and using the terminal in OS X
  3. You use a Mac with OS X 10.6 Snow Leopard or higher
  4. You just want to get started developing WebObjects "the right way"™

Introduction

  • WebObjects itself consists of the application runtime software
  • Eclipse with the WOLips plugins are the de facto standard WebObjects development tools
  • Support is provided by the very helpful and extremely intelligent ;-) community. So, sign up for the various developer mailing lists right away.

First Install XCode

XCode is not used the develop WebObjects applications, but XCode installation includes software for development in general, such as command line tools, that are useful

Next Install and Configure WebObjects

Install WebObjects using the Apple WebObjects 5.4.3 Installer dmg if you want "standard" install paths.

Then open terminal and perform the "extra" stuff you need to do to get things complete. you will need to do all this as 'root', hence the sudo s at the start.

Replace the apache adaptor with the Snow Leopard one

sudo -s

cd /System/Library/WebObjects/Adaptors/Apache2.2
mv mod_WebObjects.so mod_WebObjects.so.obsolete
curl -C - -O http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/10.6/mod_WebObjects.so
Configure Apache to use the WebObjects Adaptor

cd /etc/apache2
cp httpd.conf httpd.conf.backup
echo "Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf" >> httpd.conf
apachectl restart
Install launchd tasks to keep WebObjects running always

cd /Library/LaunchDaemons
curl -C - -O http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.wotaskd.plist
curl -C - -O http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.womonitor.plist

launchctl load com.apple.webobjects.wotaskd.plist

Configure WebObjects

Install and Configure WebObjects Development Tools

Hello World

Where to go from here

  • Install a database