Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij GWT debug configuration

How can I override the default server intellij's GWT debug configuration ? Intellij takes a Jetty as default server but I want it to use a jboss server.

I tried with the Jetty server, But I've got something like a authentication error ...

enter image description here

Does someone know either how to override the default server, or why I get this kind of error using Jetty ?

like image 488
gnos Avatar asked Jun 08 '17 13:06

gnos


People also ask

How do I get to the run debug configuration in IntelliJ?

From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . on the toolbar or press Alt+Insert . The list shows the run/debug configuration templates.

How do I use Super Dev Mode in GWT?

Starting with GWT 2.7, Dev Mode launches Super Dev Mode automatically. Just start Dev Mode and reload the page, and it will recompile automatically when necessary.


1 Answers

I did not tested it with JBoss, but using a Tomcat as a server it works well:

  1. compile your GWT project
  2. create a new web application project and add the compiled GWT artefacts , the html and css files to that project
  3. create a running configuration for Tomcat and add the newly created web project to that server and start it
  4. create a GWT running configuration with the following Dev Mode parameters: -noserver -port 8080 (if you use Tomcat, for JBoss use the JBoss port for web application) and use as startpage: http://127.0.0.1:[WebApplicationPort]/[YourApplilcationHtml] (Depending on your application context in your Tomcat running configuration, the url can differ) and start it

This works for me.

Hope that helps.

like image 150
El Hoss Avatar answered Oct 23 '22 03:10

El Hoss