...
Code Block |
---|
apache22_enable="YES" |
1718. Run the following command to launch Apache:
...
You should now have a working web server and WebObjects deployment environment. Try to open your browser and access http://<your-server-name>/cgi-bin/WebObjects/app.woa
and you should see the error "The requested application was not found on this server." generated by the WebObjects adaptor.
Project Wonder
To install Project Wonder, assuming you performed all the previous steps and checked out Wonder from GitHub, do the following steps logged in as your username (not root!):
1. Install the port devel/apache-ant
if not yet installed.
2. Run the following command:
Code Block |
---|
mkdir -p "~/Library/Application Support/WOLips/"
|
3. On that directory, create a file named wolips.propertipes
with the following content, adjusted to your paths:
Code Block |
---|
#Wed Sep 17 01:33:31 WEST 2008
wo.system.root=/usr/local/apple
wo.user.frameworks=/home/<username>/Library/Frameworks
wo.system.frameworks=/usr/local/apple/Library/Frameworks
wo.bootstrapjar=/usr/local/apple/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
wo.network.frameworks=
wo.api.root=
wo.network.root=
wo.extensions=/usr/local/apple/Local/Library/WebObjects/Extensions
wo.user.root=/home/<username>
wo.local.frameworks=/usr/local/apple/Local/Library/Frameworks
wo.apps.root=/usr/local/apple/Local/Library/WebObjects/Applications
wo.local.root=/usr/local/apple/Local
wo.systemroot=/usr/local/apple
wo.wosystemroot=/usr/local/apple
wo.wolocalroot=/usr/local/apple/Local
wo.localroot=/usr/local/apple/Local
wo.server.root=/usr/local/www/apache22/data/WebObjects
|
4. Create /usr/local/www/apache22/data/WebObjects
directory with write permission for group wheel
(or whatever group you are on).
5. Run the following command:
Code Block |
---|
chmod -R g+w /usr/local/apple/Local/Library
|
Note that you can use more restrict permissions than the ones showed here. This should be only considered as an example.
6. cd
into the Wonder directory.
7. Run the commands:
Code Block |
---|
ant frameworks
ant frameworks.install
|
This will compile and install Wonder in your system, including the web server resources of Wonder frameworks, like Ajax.