Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 10:57:04 -0600
From:      Timothy Kettering <timster@blackcore.com>
To:        FreeBSD-Java <java@FreeBSD.org>
Subject:   Re: Resin 2.0.5 with JDK1.3.1p6 and FreeBSD 4.4-STABLE
Message-ID:  <B89BD480.530A%timster@blackcore.com>
In-Reply-To: <200202221618.g1MGIu381706@zaphod.euronet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
> Timothy,
>=20
> What I would preferrably see is (1) the download location for the distrib=
uton
> file and (2) detailed instructions on what one needs to do after download=
ing
> the distribution file. For example:
>=20

Ok, I did the install late last night when I was all bleary eyed and trying
to get my site back up, but heres my best recollection.  BTW, Resin is not
completely free.  It has a free developer and deployment license, but there
are some conditions that would require payment to Caucho.  I don=B9t know how
that affects the decision to make a port.

Resin site is at http://www.caucho.com

Resin 2.0.5 distribution is at:
http://www.caucho.com/download/resin-2.0.5.tar.gz

To run Resin as a standalone server (it can serve regular http requests), i=
t
can be expanded, configuration files diddled with, and run wherever it is.
No compiling or anything is necessary.  It defaults to port 8080.  The
scripts to start and stop resin are found in

resin-2.0.5/bin/httpd.sh (start | stop | restart)
- the restart option seems to be wonky, it restarts too fast and ends up
clashing over the port before the old resin process has exited.  Doing a
'stop' then 'start' works better.

Now to configure with Apache.

The location of resin is more important in this case.  The configure/compil=
e
of the DSO that Resin offers will assume the location where Resin is
currently at is where you intend to have Resin.  Then when you do 'make
install' - it will update the httpd.conf file with the location of the
resin.conf file.  But I'm straying...

1) ./configure --with-apxs=3D/path/to/apxs
2) make
3) make install

Like I mentioned before Resin will append to the bottom of httpd.conf file
those lines (below).  I moved the LoadModules and AddModules up to the bloc=
k
of Modules to make it a bit cleaner.  I don=B9t know what the "uncomment the
following two lines to enable CSE" is for, because I didn't see any lines t=
o
be uncommented.  *shrug*

#
# Caucho Servlet Engine Configuration
#
# Uncomment the following two lines to enable CSE

LoadModule caucho_module /home/httpd/libexec/mod_caucho.so
AddModule mod_caucho.c
<IfModule mod_caucho.c>
  CauchoConfigFile /path/to/resin-2.0.5/conf/resin.conf
</IfModule>

After that's done, you just need to start up Resin using the script, test i=
t
out on the port (default: 8080), then restart apache to load the changes an=
d
if everything's set up right, Apache will divert all requests that match th=
e
configuration setup in resin.conf.  Then after that, its just a matter of
diddling with the resin.conf file to set it up with your stuff.

I would imagine that the defaults for resin.conf would be different than
what the freebsd ports sets em up (default apache directory, etc).  But
however, I don=B9t build apache from ports, I use my own custom builds, so I
can't really help in that area.

Looking in the resin.conf file, I would say the important thing to match up
with the default ports setup would be:


  <!--
     - The root file directory of the server.  Apache users will change
     - this to /usr/local/apache/htdocs and IIS users will change it
     - to d:\inetpub\wwwroot
    -->
  <app-dir>docs</app-dir>  // this is the default directory


Hope that=B9s sufficent information to start a port process.  Any further
questions or comments, fire away.


--=20
Tim Kettering
http://www.blackcore.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B89BD480.530A%timster>