Child pages
  • Deploying on FreeBSD 8.2 and WebObjects 5.4.3

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. As root, create the /usr/local/apple directory:

Code Block

mkdir /usr/local/apple

3. Run the following command to install the WebObjects frameworks in the directory just created:

Code Block

java -jar WOInstaller.jar 5.4.3 /usr/local/apple

4. Edit /etc/rc.conf and add the following lines:

Code Block

## WebObjects ##
JavaMonitor_enable="YES"
wotaskd_enable="YES"

5. Run the following commands to create needed directories and set correct permissions:

Code Block

mkdir /var/run/webobjects/
mkdir /var/log/webobjects/
chmod ugo+x /usr/local/apple/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd
chmod ugo+x /usr/local/apple/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor
chgrp www /usr/local/apple/Local/Library/WebObjects/Configuration/
chgrpchmod g+w /usr/local/apple/Local/Library/WebObjects/Configuration/

...

7. Run the following commands to start wotaskd and JavaMonitor. After running this commands, your system should be running wotaskd and JavaMonitor. You can verify that by running top or ps. Also, you should take the time now to configure JavaMonitor, including setting the administration password.

Code Block

/usr/local/etc/rc.d/wotaskd start
/usr/local/etc/rc.d/JavaMonitor start

8. We need to checkout Project Wonder to obtain a copy of the Apache adaptor source. To do that, cd to a work directory, and run the following command. This will checkout Project Wonder from GitHub.

Code Block

git clone https://github.com/wocommunity/wonder.git

9. Inside the Project Wonder directory, navigate to the Utilities/Adaptors directory:

Code Block

cd Utilities/Adaptors

10. Edit the make.config file, and set the OS to FreeBSD by changing the following line:

Code Block

# Set the platform you are building on
ADAPTOR_OS = FreeBSD

11. Run the gmake command on that directory. Note that you have to run gmake and not make. Also, do not change directory to Apache2.2. The command should be run on the Utilities/Adaptors directory.

Code Block

gmake

12. After successful compilation, enter Utilities/Adaptors/Apache2.2 directory and install the module on Apache:

Code Block

cd Apache2.2
apxs -i -a -n WebObjects mod_WebObjects.la

...

  • Change None to All in the Allow line of the following configuration section:
Code Block

<Directory />
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>
  • Comment out the following line and section, if you want to use the default /cgi-bin/WebObects URL for the WebObjects module:
Code Block

#   ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
Code Block

#<Directory "/usr/local/www/apache22/cgi-bin">
#    AllowOverride None
#    Options None
#    Order allow,deny
#    Allow from all
#</Directory>

15. Assuming you're still in Wonder's Utilities/Adaptors/Apache2.2 directory (cd to it if you left it in the previous step), copy the following file to the Apache configuration directory:

Code Block

cp apache.conf /usr/local/etc/apache22/Includes/wo.conf

...

  • Comment out the LoadModule line, as the module is already loaded by httpd.conf.
  • Set WebObjectsDocumentRoot to /usr/local/www/apache22/data:
Code Block

WebObjectsDocumentRoot /usr/local/www/apache22/data

17. Edit /etc/rc.conf again and add the following lines:

Code Block

apache22_enable="YES"

18. Run the following command to launch Apache:

Code Block

/usr/local/etc/rc.d/apache22 start

...

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

...

5. Run the following command:

Code Block

chmod -R g+w /usr/local/apple/Local/Library

...

7. Run the commands:

Code Block

ant frameworks
ant frameworks.install

...