[ 
https://issues.apache.org/jira/browse/HUPA-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445441#comment-13445441
 ] 

okay_awright edited comment on HUPA-92 at 8/31/12 10:40 AM:
------------------------------------------------------------

Added fix (better solution than the one providedin the first comment): see the 
full thread over there 
http://stackoverflow.com/questions/1517290/problem-with-gwt-behind-a-reverse-proxy-either-nginx-or-apache
The solution provided by KC Berg has been implemented.
Example nginx configuration (for Apache Proxy see the thread linked above):
#The rest is not served by nginx and hidden (bogus location)
                location ~* /(.+\.(html?|ico|css|js|gif|jpe?g|png|jar|rpc)(\?.+)
?)$ {
                        include /usr/pkg/etc/nginx/buffered_proxy_options;
                        proxy_pass http://abhoth:8080/Hupa/$1;
                } 
                location /hupa/ {
                        include /usr/pkg/etc/nginx/unbuffered_proxy_options;
                        proxy_pass      http://abhoth:8080/Hupa/hupa/;
                        proxy_set_header        X-GWT-Module-Base        http://
abhoth:8080/Hupa/hupa/;
                }


Cheers.

P.S. Glassfish refuses to parse the original web.xml because it wasn't valid.

                
      was (Author: okay_awright):
    Added fix (better solution than the one providedin the first comment): see 
the full thread over there 
http://stackoverflow.com/questions/1517290/problem-with-gwt-behind-a-reverse-proxy-either-nginx-or-apache
The solution provided by KC Berg has been implemented.
Example nginx configuration (for Apache Proxy see the thread linked above):
#The rest is not served by nginx and hidden (bogus location)
                location ~* /(.+\.(html?|ico|css|js|gif|jpe?g|png|jar|rpc)(\?.+)
?)$ {
                        include /usr/pkg/etc/nginx/buffered_proxy_options;
                        proxy_pass http://abhoth:8080/Hupa/$1;
                } 
                location /hupa/ {
                        include /usr/pkg/etc/nginx/unbuffered_proxy_options;
                        proxy_pass      http://abhoth:8080/Hupa/hupa/;
                        proxy_set_header        X-GWT-Module-Base        http://
abhoth:8080/Hupa/hupa/;
                }


Cheers.

                  
> GWT cannot be used with reverse-proxy configurations
> ----------------------------------------------------
>
>                 Key: HUPA-92
>                 URL: https://issues.apache.org/jira/browse/HUPA-92
>             Project: JAMES Hupa
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.1
>            Reporter: okay_awright
>            Assignee: Manuel Carrasco MoƱino
>            Priority: Minor
>         Attachments: AbstractDispatchServlet2.java.diff, 
> GuiceStandardDispatchServlet2.java.diff, HupaDispatchServlet.java.diff, 
> web.xml.diff
>
>
> You cannot use Hupa in reverse-proxy configurations (e.g. 
> http://webmail.XXX.YYY instead of http://XXX.YYY:8080/hupa) because of the 
> current GWT serialization policy module.
> 2012-06-18 
> 19:18:37.621:INFO:hupa:Key[type=org.apache.hupa.server.servlet.HupaDispatchServlet,
>  annotation=[none]]: ERROR: The serialization policy file 
> '/34B97BC5A839DB00A78894501B928D96.gwt.rpc' was not found; did you forget to 
> include it in this deployment?
> 2012-06-18 
> 19:18:37.622:INFO:hupa:Key[type=org.apache.hupa.server.servlet.HupaDispatchServlet,
>  annotation=[none]]: WARNING: Failed to get the SerializationPolicy 
> '34B97BC5A839DB00A78894501B928D96' for module 'https://mail.ddcr.biz/hupa/'; 
> a legacy, 1.3.3 compatible, serialization policy will be used.  You may 
> experience SerializationExceptions as a result.
> Quick fix can be found here, and adapted:
> http://java.net/projects/shampoo/sources/source-code-repository/content/ShampooGWT/src/java/biz/ddcr/shampoo/server/service/helper/gwt/ContextGWTRPCServiceExporter.java?rev=199

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to