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>

index | next in thread | previous in thread | raw e-mail

> Timothy,
> 
> What I would preferrably see is (1) the download location for the distributon
> file and (2) detailed instructions on what one needs to do after downloading
> the distribution file. For example:
> 

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ıt 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), it
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/compile
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=/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 block
of Modules to make it a bit cleaner.  I donıt know what the "uncomment the
following two lines to enable CSE" is for, because I didn't see any lines to
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 it
out on the port (default: 8080), then restart apache to load the changes and
if everything's set up right, Apache will divert all requests that match the
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ıt 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ıs sufficent information to start a port process.  Any further
questions or comments, fire away.


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


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



home | help

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