gwt-eclipse-plugin icon indicating copy to clipboard operation
gwt-eclipse-plugin copied to clipboard

Wildfly

Open masterdany88 opened this issue 7 years ago • 12 comments

Is this plugin works with wildfly servver?

masterdany88 avatar Dec 06 '16 05:12 masterdany88

Looks like there is a server runtime for wildfly so it should work with running with that. If it doesn't let me know. The goal is configure a server run time, turn on GWT facet for the client, and start the server. If you start the server with a GWT facet on the client project, a GWT Development Mode SDM launcher is created. It should have a -launcherDir pointing to the exploded war directory (war output path) to the server runtime.

Something I found. http://www.mastertheboss.com/jboss-server/wildfly-8/configuring-eclipse-to-use-wildfly-8

branflake2267 avatar Dec 06 '16 15:12 branflake2267

It doesn't work on Red Hat JBoss EAP 7.0.

masterdany88 avatar Dec 06 '16 18:12 masterdany88

Same on wildfy: image Web server starts but SDM not.

masterdany88 avatar Dec 06 '16 18:12 masterdany88

Ok. It works. I just forgot to check sync option in gwt facet tab in project properties. I've made even a screen cast for newbies (like me few days ago): https://www.youtube.com/watch?v=K_YISQ6D5Q8&feature=youtu.be https://youtu.be/K_YISQ6D5Q8

masterdany88 avatar Dec 06 '16 19:12 masterdany88

Nice job!

branflake2267 avatar Dec 06 '16 19:12 branflake2267

You can share this video on Your page.

masterdany88 avatar Dec 06 '16 19:12 masterdany88

"exploded war directory (war output path) to the server runtime." What do You mean by that? I've tried yesterday. But I was getting 404 on gwt js *nocache.js file. Should I somehow configure Web deployment tab in eclipse project preferencies?

masterdany88 avatar Dec 07 '16 15:12 masterdany88

my happines was to fast. I've tested tutorial project: https://github.com/errai/errai-tutorial and it runs and deploy nicely, but unfortunatelly that is is. After refreshing page there are no changes visible.

masterdany88 avatar Dec 07 '16 18:12 masterdany88

When you start a server a GWT Development Mode launcher is created if the sync facet on the client project is checked. Is that being created? And if so, does it create a -launcherDir property with a path to the war output directory, or directory to the where the wildfly server directory is hosted? The looks like this -launcherDir /path/to/where/hosted/content/is/war/output/path. What program args do you have in the launcher that was created?

branflake2267 avatar Dec 09 '16 15:12 branflake2267

Program argument: -logLevel INFO -port 9876 -launcherDir /opt/wildfly/wildfly-10.0.0.Final/bin pl.korbeldaniel.erpe.App VM arguments: -Xmx1g

masterdany88 avatar Jan 17 '17 16:01 masterdany88

what should be correct launcherDir? Maybe gwt plugin sets dev mode wrong? Can You help? I struggle with it for so long :(

masterdany88 avatar Jan 17 '17 17:01 masterdany88

Ok. I've partially figure it out. I've changed manually launchdir like follow:

-launcherDir /opt/wildfly/wildfly-10.0.0.Final/standalone/deployments/erpe-server-0.0.1-SNAPSHOT.war/ -logLevel INFO -port 9876 pl.korbeldaniel.erpe.App

SDM sees now changes and recompile project. Problem is that widlfy server is also redeploy in the same time. (He see changes also, cause launchdir is also deployment path). How to figure this out? How it is been done with apache?

masterdany88 avatar Jan 17 '17 18:01 masterdany88