Discussion:
Jetty version is outdated
p***@yale.edu
2018-06-21 20:44:13 UTC
Permalink
Jetty 9.2 has ended its life in Jan 2018. Please, the gurus of GWT, upgrade
it to the latest version 9.4 or explain clearly how to change the default
configuration in IntelliJ.

Jetty 9.4, by the way has been available since 2016.

Thanks,
Peter
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Lothar Kimmeringer
2018-06-22 09:59:13 UTC
Permalink
Hi,
Post by p***@yale.edu
Jetty 9.2 has ended its life in Jan 2018. Please, the gurus of GWT,
upgrade it to the latest version 9.4
I'm confused. According to
http://www.gwtproject.org/terms.html
***@t is used. Same for the Eclipse GWT Plugin according to
http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/servers/Servers.html
Post by p***@yale.edu
or explain clearly how to change the default configuration in IntelliJ.
The IntelliJ-GWT-Plugin is developed by JetBrains accoring to
http://gwt-plugins.github.io/documentation/gwt-intellij-plugin/GettingStarted.html
I think you should ask there.


Cheers, Lothar
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Jens
2018-06-22 11:44:38 UTC
Permalink
I assume you have everything (client, shared server code) in the same
project in IntelliJ. Then IntelliJ has likely already detected the Web
Facet for your project. If not you have to add that Web Facet in the
Project Structure configuration screen in IntelliJ. Make sure that
Deployment Descriptor (web.xml) and Web Resource Directory (path to war
folder) is correctly configured in the Web Facet.

Once you have done that you can create an artifact in the Project Structure
configuration screen in IntelliJ. Choose Web Application (exploded) -> From
Modules and select your GWT project. Then select the created artifact,
select the Output Layout tab and remove GWT compiler output if IntelliJ has
added it to the artifact automatically. If you don't do that, IntelliJ will
do a real GWT compile each time you build the artifact. This is undesired
if you use SuperDevMode during development. Also note the artifact output
directory, you need that in your GWT / SuperDevMode run configuration and
add the folder as DevMode parameter -war <folder of your exploded war
artifact>. Once you do that and restart SuperDevMode, it will create a
<module>.nocache.js file in your exploded war and copy all GWT public
resources to it.

Next install/activate the Jetty integration plugin in IntelliJ. Create a
new Jetty -> Local run configuration and at the top right click the
configure button to add an application server. Select the unzipped jetty
distribution you have downloaded and create the server. In the run
configuration you have a deployment tab which allows you to add the
artifact to jetty. At the bottom in the Before launch section you could
also add build artifact task so that IntelliJ builds your artifact each
time you start Jetty, however this is optional. If IntelliJ asks you to add
the JMX module to Jetty then do it.

Now you should be able to launch SuperDevMode, then launch Jetty, and your
app should be deployed on your custom jetty server. If you use GWT-RPC you
might want to add -Dgwt.codeserver.port<port> to your JVM parameters of the
Jetty run configuration, so that the GWT-RPC server part can download
SourceMaps from SuperDevMode code server.

-- J.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Gershkovich, Peter
2018-06-22 15:10:39 UTC
Permalink
Thank you! Much appreciated.

It is, clearly, a pain in a tochas and an upgrade to the latest Jetty in the GWT default Superdev mode would be a better option.
Miss the time when debugging was done using the Firefox GWT plugin where you can just work with the code in the IDE.

Peter


On Jun 22, 2018, at 7:44 AM, Jens <***@gmail.com<mailto:***@gmail.com>> wrote:

I assume you have everything (client, shared server code) in the same project in IntelliJ. Then IntelliJ has likely already detected the Web Facet for your project. If not you have to add that Web Facet in the Project Structure configuration screen in IntelliJ. Make sure that Deployment Descriptor (web.xml) and Web Resource Directory (path to war folder) is correctly configured in the Web Facet.

Once you have done that you can create an artifact in the Project Structure configuration screen in IntelliJ. Choose Web Application (exploded) -> From Modules and select your GWT project. Then select the created artifact, select the Output Layout tab and remove GWT compiler output if IntelliJ has added it to the artifact automatically. If you don't do that, IntelliJ will do a real GWT compile each time you build the artifact. This is undesired if you use SuperDevMode during development. Also note the artifact output directory, you need that in your GWT / SuperDevMode run configuration and add the folder as DevMode parameter -war <folder of your exploded war artifact>. Once you do that and restart SuperDevMode, it will create a <module>.nocache.js file in your exploded war and copy all GWT public resources to it.

Next install/activate the Jetty integration plugin in IntelliJ. Create a new Jetty -> Local run configuration and at the top right click the configure button to add an application server. Select the unzipped jetty distribution you have downloaded and create the server. In the run configuration you have a deployment tab which allows you to add the artifact to jetty. At the bottom in the Before launch section you could also add build artifact task so that IntelliJ builds your artifact each time you start Jetty, however this is optional. If IntelliJ asks you to add the JMX module to Jetty then do it.

Now you should be able to launch SuperDevMode, then launch Jetty, and your app should be deployed on your custom jetty server. If you use GWT-RPC you might want to add -Dgwt.codeserver.port<port> to your JVM parameters of the Jetty run configuration, so that the GWT-RPC server part can download SourceMaps from SuperDevMode code server.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com<mailto:google-web-toolkit+***@googlegroups.com>.
To post to this group, send email to google-web-***@googlegroups.com<mailto:google-web-***@googlegroups.com>.
Visit this group at https://groups.google.com/group/google-web-toolkit<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgoogle-web-toolkit&data=02%7C01%7Cpeter.gershkovich%40yale.edu%7C96c4cfcfd17d4e6b3dae08d5d8358d0f%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636652646870461534&sdata=anGslIQfaSL4A1H3%2FXYcrhF0BOz6JxoSYswKTVa25%2BU%3D&reserved=0>.
For more options, visit https://groups.google.com/d/optout<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Cpeter.gershkovich%40yale.edu%7C96c4cfcfd17d4e6b3dae08d5d8358d0f%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636652646870471534&sdata=3%2FhlGC7pYXNmCIqR4FMCh2dN70pNui%2B4SeEbkMqr%2Fis%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Loading...