Re: Issue Running gwt:codeserver with JDK 17 in IntelliJ - "No project found" Error

108 views
Skip to first unread message
Message has been deleted
Message has been deleted

Thomas Broyer

unread,
Jul 11, 2025, 5:12:08 AMJul 11
to GWT Users


On Friday, July 11, 2025 at 8:32:07 AM UTC+2 arpanam...@gmail.com wrote:

Dear GWT Community,

We are currently in the process of upgrading our legacy GWT-based Maven WAR project to be compatible with JDK 17. While configuring Super Dev Mode using the gwt-maven-plugin (net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-2) in IntelliJ (Community Edition 2024.3.5), we are encountering an error when executing the gwt:codeserver goal.


What kind of changes have made so far? Where do you come from?
It looks like you possibly changing many things at once (including migrating from whatever you were using previously to the net.ltgt.gwt.maven:gwt-maven-plugin)
 
Environment:
  • JDK: 17 (C:\Program Files\Java\jdk-17\bin\java.exe)

  • Maven: 3.9.9

  • Plugin: net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-2


Any reason you're not using the latest version?
 
  • IDE: IntelliJ IDEA Community Edition 2024.3.5

  • GWT Mode: gwt:codeserver via IntelliJ Maven goal runner

Issue:

When attempting to run the following command (triggered via IntelliJ):

mvn gwt:codeserver

we receive the following error at the end of the build log:

You also have a bunch of warnings related to your dependencies that you'd want to fix. 

pgsql

[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-2:codeserver (default-cli) on project phoenix-main: No project found -> [Help 1]

The projects property can also be used to run the CodeServer on modules which are not gwt-app (e.g. war).

Defaults to all the gwt-app projects in the reactor.

You have a single project that has packaging=war.

Arpan Ameta

unread,
Jul 11, 2025, 6:56:13 AMJul 11
to google-we...@googlegroups.com
Hello Thomas,
We have migrated our application from version gwt 2.8.1 to 2.12.0 along with the JDK version updated to 17 and now deploying this to Wildfly 33.
Please find screen of different that clube into single war and main is the module. Please find the screenshot for the reference :



--
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-tool...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-web-toolkit/7d52c65c-de46-43fe-aab6-e2f461f8c0d6n%40googlegroups.com.
Screenshot 2025-07-11 162328.png
Screenshot 2025-07-11 162409.png
Screenshot 2025-07-11 162312.png

Thomas Broyer

unread,
Jul 11, 2025, 11:00:36 AMJul 11
to GWT Users
On Friday, July 11, 2025 at 12:56:13 PM UTC+2 arpanam...@gmail.com wrote:
Hello Thomas,
We have migrated our application from version gwt 2.8.1 to 2.12.0 along with the JDK version updated to 17 and now deploying this to Wildfly 33.

If that's all you changed, then I see no reason why gwt:codeserver would start failing if it worked before.

BUT note that gwt:codeserver needs to be run on your root project, not in the phoenix-main subproject.
Message has been deleted
Message has been deleted

Thomas Broyer

unread,
Jul 14, 2025, 6:34:55 AMJul 14
to GWT Users
I think I already said all that before:
  • You need to clean up your dependencies (org.codehaus.mojo:gwt-maven-plugin appears as a dependency‽ no need to declare plugin dependencies for the net.ltgt.gwt.maven:gwt-maven-plugin; many many many errors/warnings resolving your dependencies; you have both gwt-servlets and gwt-servlets-jakarta, this is likely a mistake)
  • You're still calling gwt:codeserver from within the phoenix-main subproject rather than the root project; while this can work, it's not the way it was designed to be used
  • I understand that the POMs shared here are partial, but the plugin isn't configured in the root project
  • Because your GWT app is in the same Maven project as your server-side code, with packaging=war, you need to configure the <projects> (in the root project, where you'll run gwt:codeserver)
Anyway, as previously said, this is unrelated to your version upgrades.

On Monday, July 14, 2025 at 11:00:27 AM UTC+2 arpanam...@gmail.com wrote:

Hi Thomas,

I hope you're doing well.

I wanted to inform you that we're still facing issues with the GWT :codeserver startup. Despite our previous efforts, the same error continues to occur, and we’ve been unable to get it resolved so far.

We’re currently looking into it further, but please let us know if you have any suggestions or insights that could help us move forward.

I’ll keep you updated on any progress from our side.

Also shared some input from our side which you suggested in this : https://github.com/tbroyer/gwt-maven-plugin/issues/21

Arpan Ameta

unread,
Jul 14, 2025, 6:38:39 AMJul 14
to GWT Users

Hi Thomas,

I wanted to inform you that we are currently facing an issue while starting the GWT :codeserver. The build is failing with the following error:

Error: Could not find or load main class com.google.gwt.dev.codeserver.CodeServer 
Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.codeserver.CodeServer

We're using gwt-maven-plugin:1.0-rc-9, and it seems the required gwt-dev classes are not being picked up during execution. We've checked the setup and dependencies, but the issue still persists.

Please let us know if you've encountered a similar issue before or have any suggestions on how to proceed.

Reply all
Reply to author
Forward
0 new messages