简体   繁体   中英

Problems with migrating a system with JBoss EAP 6.3 Standalone + Apache for Wildfly 15 Domain + Apache with modcluster

I'm in the process of migrating a system that uses JBoss EAP 6.3 Standalone + Apache to an environment that uses Wildfly 15 + Apache with modcluster, and I'm having some difficulties to make the system work correctly in this new scenario.

After all settings have been made, I performed the deployment of this .war file for testing and I was able to access the Hello Wolrd page normally, but once I've deployed my application, whenever I try to access it through the browser, the page goes into an infinite loop of requests displaying a 500 error. It is important to say that my application is evidently more complex, since it uses sessions, cookies, redirection of requests, among other things, and I believe the configuration I did in apache for this new scenario is incorrect, still missing some adjustments.

Here is the Apache configuration for the old scenario using JBoss EAP 6.3 Standalone, note that it's pretty simple:

<VirtualHost *:80>
    ProxyPreserveHost On
    TimeOut 1800
    ServerName test.app.net.br
    ProxyPass /server-status !
    ProxyPass / http://127.0.0.1:8080/app/
    ProxyPassReverse / http://127.0.0.1:8080/app/
    ProxyPassReverseCookiePath / /
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 192.168.0.0/23
    </Location>
</VirtualHost>

And here's the configuration I tried to do in Apache modecluster to work with Wildfly 15:

<IfModule manager_module>
    Listen 192.168.8.91:8080
    ManagerBalancerName appcluster
    <VirtualHost 192.168.8.91:8080>
        <Directory />
            Require all granted
        </Directory>

        KeepAliveTimeout 60
        MaxKeepAliveRequests 0

        ProxyPass / balancer://appcluster
        ProxyPassReverse / balancer://appcluster
        ProxyPassReverseCookiePath / /

        AdvertiseFrequency 5
        EnableMCPMReceive On
    </VirtualHost>
</IfModule>

So any hint or help that helps me understand what is missing to make my system work in this new scenario is welcome. Thanks.

经过大量研究,我能够找出问题所在...问题在于与我与该应用程序一起使用的Wildfly版本不兼容,并且由于我没有太多时间来找出问题我所缺少的是,我决定使用JBoss的较旧版本EAP 6.4。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM