Re: [Resin-interest] Resin 3.1.1 httpd is failing to bind to *

2007-06-07 Thread Andy Duplain
Sounds to me like you need to have your DHCP Server reserve that IP address
for box.  That way everyone knows what IP address it will be assigned and
will make everything easier.  This is simply done by associating the MAC
address of box with the IP address...

Andy

On Wed, Jun 06, 2007 at 01:41:30PM -0400, Sam wrote:
  Date: Sat, May 26, 2007 at 11:26:24AM +
  Subject: [Resin-interest] Resin 3.1.1 httpd is failing to bind to *
 
  Hi,
  
  I'm trying out Resin 3.1.1 (Open Source) on a Damn Small Linux system
  (DSL 3.3, with default hostname box) configured as a DHCP client.
  When my /etc/hosts file contains the line
  
  192.168.0.15 box
  
  (where 192.168.0.15 is the address handed out by the DHCP server),
  everything works as expected (in resin.conf, I have http address=*
  port=80/). However, if I comment out that line in /etc/hosts [so
  that gethostbymame() or InetAddress.getLocalHost() would fail], Resin
  fails to bind to the address, despite specifying *. The watchdog
  stops Resin because of a socket accept timeout. Is this a known
  problem, or am I doing something wrong? I don't believe anything is
  wrong with the rest of the config - my unit tests
  work fine with that /etc/hosts line left uncommented.
  
  Clearly, I can't have the line in /etc/hosts in a deployment (I mean
  non-development) environment, since on the next DHCP lease renewal,
  the DHCP server might dole out a different address.
 
 Do you have a line like this in /etc/hosts?
 
 127.0.0.1   localhost
 
 -- Sam
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

-- 
trojanfoe


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] 3.1.1: webapp directory cannot be the same as hostroot directory?

2007-05-24 Thread Andy Duplain
On Wed, May 16, 2007 at 05:09:03PM +0100, Andy Duplain wrote:
 On Wed, May 16, 2007 at 11:02:44PM +0800, Liao Xuefeng wrote:
  i use:
  
  host id=localhost root-directory=.
web-app id=/ root-directory=E:/path/to/dir/
   /host 
  
  and Resin 3.1.1 works.
 
 Not sure that would work - the idea being that the root directories for
 both hosts are outside of resin-home and so need to be specified
 as something other than . .

Actually that was exactly the answer and it is now working perfectly - many
thanks Liao.

Cheers,
Andy



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] 3.1.1: webapp directory cannot be the same as host root directory?

2007-05-16 Thread Andy Duplain
Hi, I am using virtual hosting to host 2 sites via resin 3.  Each host is
configured something like this:

host id=localhost
  root-directoryE:/path/to/dir/root-directory
  web-app id=/ root-directory=E:/path/to/dir/
/host

This works fine in Resin 3.1.0, but in 3.1.1 I am getting a complaint that
the web-app root directory cannot be the same as the host directory.  This
was the only way I could find to get .jsp files served correctly outside of
a dedicated web-app, so how do I do it right in 3.1.1?

Cheers,
Andy


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] 3.1.1: webapp directory cannot be the same as hostroot directory?

2007-05-16 Thread Andy Duplain
On Wed, May 16, 2007 at 11:02:44PM +0800, Liao Xuefeng wrote:
 i use:
 
 host id=localhost root-directory=.
   web-app id=/ root-directory=E:/path/to/dir/
  /host 
 
 and Resin 3.1.1 works.

Not sure that would work - the idea being that the root directories for
both hosts are outside of resin-home and so need to be specified
as something other than . .

Cheers,
Andy



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest