dev@glassfish.java.net

Re: Problem in running two JRoR applications on GF V3 trunk

From: Changshin Lee <iasandcb_at_gmail.com>
Date: Fri, 19 Oct 2007 03:11:51 +0900

2007. 10. 19, ¿ÀÀü 3:02, Jerome Dochez ÀÛ¼º:

> Changshin Lee wrote:
>> Hi all,
>>
>> I built GF V3 from the current CVS and deployed two JRoR
>> applications, springbook and mosn. When I first call
>>
>> http://127.0.0.1:8080/mosn
>>
>> then, it's ok, but call it again, then
>>
>> Template is missing
>>
>> Missing template /home/sysop/www/labs/projects/springbook/app/views/
>> pages/show.rhtml
>>
>> You can check out this behavior by invoking http://labs.openmaru.com/mosn/pages/541239
>> twice with your browser.
> yes I am able to reproduce your problem connecting to the above url.
> Just to confirm, this template is supposed to be only used in the
> springbook RoR app, right ? the mosn application should not be
> requesting that template ?

Actually both are instances from SpringBook, of which source code is
available at http://labs.openmaru.com/hg/springbook (Mercurial). In
addition, there is no show.rhtml in app/views/pages in SpringBook.

Thanks,

ias

P.S. http://labs.openmaru.com uses Apache to connect requests to GF
V3. Here's the relevant configuration in Apache 2.2:

   ProxyRequests Off
   ProxyPreserveHost On

  <Proxy *>
      Order deny,allow
          Allow from all
          </Proxy>

          ProxyPass /mosn http://127.0.0.1:8080/mosn
          ProxyPassReverse /mosn http://127.0.0.1:8080/mosn
          ProxyPass /springbook http://127.0.0.1:8080/springbook
          ProxyPassReverse /springbook http://127.0.0.1:8080/springbook
          SetEnv force-proxy-request-1.0 1
          SetEnv proxy-nokeepalive 1

          <Location /mosn>
              Order allow,deny
                  Allow from all
                  </Location>
          <Location /springbook>
              Order allow,deny
                  Allow from all
                  </Location>


>
>
> thx
>>
>> It seems that GF V3 has some problem in dealing with routing
>> requests to multiple JRoR applications.
>>
>> Note that if this problem is resolved, I can use GF V3 to run a
>> live web site :-)
>>
>> Cheers,
>>
>> ias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>