Re: Deployment with 5.3?
Re: Deployment with 5.3?
- Subject: Re: Deployment with 5.3?
- From: Joe Little <email@hidden>
- Date: Mon, 1 Aug 2005 17:41:24 -0700
This is what I've written up on the subject. Reminder, you must have a
valid copy of OSX Server 10.4 and use its license key. Also, remember
to qualify for yourself how the license is written on whether this is
truly legal to use WO on other platforms. Again, its pretty obvious
that the Sales info (hey, it works on any J2SE platform!) and its
license (one copy per OSX system) seem to conflict. I used Wonder
2.0's Apache 2 WO Adaptor...
The instructions...
WebObjects 5.x
WebObjects relies on Java 1.4.2. One first needs to install a suitable
JDK or JRE and make sure java is in the path. I used this link:
http://dag.wieers.com/packages/j2re/ on Fedora releases, and used the
RedHat provided java-1.4.2-ibm for RHEL4.
The WebObjects Runtime itself is a MacOSX package, which is fact just
a directory of multiple files. You'll either need to copy the full
WebObjectsRuntime.pkg directory to some temporary place, or at least
get the Archive.pax.gz file included therein. This package is included
on the XCode Development 2.1 DVD (or greater) or in the MacOSX 10.4
Server WebObjects 5.3 update (linked page). If you acquire the later,
you'll need to mount the disk-image file on an OSX box to extract its
WebObjects5.3ServerUpdate.pkg and the underlying Archive.pax.gz there.
Both files work for deployment, but a license of MacOSX Server 10.4 is
required to be correctly licensed for 5.3 Deployment.
The pax utility is available on linux. To see the contents of the file, run:
pax -zf WebObjectsRuntime.pkg/Contents/Archive.pax.gz
To install, run these commands, with the WebObjectsRuntime.pkg in /root:
mkdir -p /opt/Apple
cd /opt/Apple
pax -zrf /root/WebObjectsRuntime.pkg/Contents/Archive.pax.gz
Any further updates can be done in a similar way, using pax to
overwrite any changed files in your installation directory.
Under /opt/Apple/Library/WebObjects/lib you'll find
JavaWebObjects.jar. If you have the jar command installed, you can
edit the jar's Resources/License.key and place the version from a OSX
Server there. In most cases, you'll just use the JavaWebObjects.jar
from the server to ensure license compliance.
To start WebObjects, you'll need the provided "webobjects" script
(NOTE: This is a modified OSX WebObjects script, or a UNIX script from
5.2 deployment) in init.d, enabled for the interested run levels. Use
"chkconfig --add webobjects" from within /etc/init.d to add it. You'll
also need to make two symbolic links:
cd /opt/Apple
ln -sf /opt/Apple/System/Library/Frameworks /opt/Apple/Library
ln -sf /opt/Apple/System/Library/PrivateFrameworks /opt/Apple/Library
A "/etc/init.d/webobjects start" should now correctly start
WebObjects. All log entries go to /var/log/webobjects.log. You may
need to edit logrotate to handle these logs as well. You'll also have
the JavaMonitor service running on port 56789. This should be
restricted by iptables or similar to trusted hosts or subnets.
We will next build the Adaptor. You'll need gcc to proceed at this
point, so install that if you don't already have it installed. You'll
also need separate source code for Apache2, which can be DLed from
here (Wonder 2.0 URL)
I placed the package in /opt/Apple/src (after creating the directory).
You'll also need /usr/sbin/apxs, so install httpd-devel or similar if
necessary.
Some changes are necessary. First, edit Wonder/Adaptors/make.config
and set "OS == LINUX" near the top, and step down into the file to the
LINUX definition section and copy/paste the RedHat 9 values into the
LINUX segment. Next, edit Wonder/Adaptors/Apache2/Makefile and add
"-I/usr/include/apr-0 " to the INCLUDES line near the top. Then
proceed with a "make" in the Wonder/Adaptors/Apache2 directory, which
will make and install the Adaptor for Apache2.
In the same directory you'll find an apache.conf. Move that to
/etc/httpd/conf.d/webobjects.conf, edit /etc/httpd/conf/httpd and
place this in the file:
<Location /Apps/./>
SetHandler WebObjects
</Location>
and then edit the webobjects.conf file, making sure that you change
the WebObjectsDocumentRoot, likely to "/var/www/html". Also change the
WebObjectsAlias to be "/Apps/WebObjects" to avoid any conflict with
other cgi-bin scripts. At this point, you can restart apache and go to
"http://hostname/Apps/WebObjects/test" -- or any made up name other
than "test" to see a bold statement about applications not being
found. This indicates that the WebObjects application serving is now
running.
On 8/1/05, Hunter Hillegas <email@hidden> wrote:
> Are you saying that you somehow got 5.3 onto Linux?
>
> How did you do that? Extract all the files from the OS X Server
> package and manually upgrade your Linux server?
>
> On Aug 1, 2005, at 12:35 PM, Joe Little wrote:
>
> > FYI: Succesfully deployed our app using WebObjects Adaptor on both OSX
> > and Linux for 5.3 for testing. We haven't upgraded the primary systems
> > to 5.3 yet.
> >
> >
> > On 8/1/05, David Sargent <email@hidden> wrote:
> >
> >> We have a test site on deployment hardware/software configuration and
> >> hope to have a final release deployment out this week on OS X. Just
> >> working out some final things.
> >>
> >> David
> >>
> >>
> >>
> >> On Aug 1, 2005, at 9:27 AM, Jim Zajkowski wrote:
> >>
> >>
> >>> Does anyone, anywhere, have a WO5.3 app deployed? Either to OS X
> >>> Server or, say, Linux?
> >>>
> >>> Thanks,
> >>>
> >>> --Jim
> >>>
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They will be ignored.
> >>> Webobjects-dev mailing list (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>> 40holicow.com
> >>>
> >>> This email sent to email@hidden
> >>>
> >>>
> >>
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> Webobjects-dev mailing list (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >> 40gmail.com
> >>
> >> This email sent to email@hidden
> >>
> >>
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > 40mac.com
> >
> > This email sent to email@hidden
> >
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden