Vaadin on Wildfly (linux)

Hi *,

I try to deploy a app on wildfly (wildfly-14.0.1.Final). Local (Win 10) all works fine. But when I deploy on stagesystem (linux), I get a 404 and just the page.

There are no error while deploying the war file.

It’s the same version on both systems. Just the start, of course, is different:
Win 10: With netbeans or standalone.bat
Linux: ./standalone.sh &

The rest is the same.

Other, non vaadin, JEE apps work like expected.

Has someone encountered this problem before?

Greetz,
Lars
17415485.jpg

The network output:


17415502.jpg

Add:

The wildfly is behind a proxy, my ReWriteRule:

RewriteEngine on
RewriteRule   ^(.*)  http://localhost:8080/$1 [P]

And there is more confusion:

If I deploy a vaadin app on a specific path, like “/example”, I can reach it by mydomain.com/example/.

If I change the ReWriteRule to:

RewriteEngine on
RewriteRule   ^(.*)  http://localhost:8080/example/$1 [P]

I can’t reach it by mydomain.com.

If I deploy a non vaadin app, like https://github.com/kumar-shantanu/wildfly-demo-war, with a specific path and change the ReWriteRule to it’s path, I reach it.

Just vaadin apps I can’t reach over the root path.

Does vaadin need some specific ReWriteRule? If yes, what?

Sry, it was not a vaadin problem. The solution:

ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/

and in the standalone(-full).xml

#Set the proxy forwarding for TLS behind an proxy
/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=proxy-address-forwarding, value=true)