Tuesday, June 11, 2024

Need help getting CodeServer config back to working state

Hello, for some reason my codeserver/server jetty setup has stopped working, and I can't seem to get it back. I'm feeling more confused than usual, so I hope someone can help me out.
Have a bunch of projects using the old gwt plugins which work fine, but my new project is using the new tbroyer setup and that's what has stopped working.

So, if I create and run the multimodule-example app, what happens when you start the codeserver is that /gwt/codeserver is where stuff is compiled, and right away output to be used by the webserver is put in /gwt/launcherDir.

But for me, when I start codeserver I can see that it compiles right away, and the output ends up in /gwt/codeserver/module/compile-1 as expected. However, nothing is created in the launcherDir! So there's nothing for the webserver to use.

I have looked at the archetype-project, and i can't see anything wrong compared to my setup...

If anyone would care to look at it and see if there's something obvious, or give some hints as to what i can look for to see why it's not producing the output, i'd be grateful. Details follow below:

In my multimodule project, the clientmodule is called "webclient" and the server is called "webapp". I am starting both things standing in the root directory.

plugin config, in webclient.pom:
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
    <artifactId>gwt-maven-plugin</artifactId>
    <configuration>
        <moduleName>com.mymodule.App</moduleName>
        <moduleShortName>nw</moduleShortName>
        <classpathScope>compile</classpathScope>
    </configuration>
</plugin>

plugin-config, in the root pom:
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<inherited>false</inherited>
<configuration>
    <devmodeArgs>
        <arg>-noserver</arg>
    </devmodeArgs>
    <!-- this is just to make lombok annotations work-->
    <jvmArgs>
        <arg>-javaagent:/Users/mathias/.m2/repository/org/projectlombok/lombok/1.18.32/lombok-1.18.32.jar=ECJ</arg>
    </jvmArgs>
</configuration>
</plugin>


i start the codeserver with:

mvn gwt:codeserver -pl webclient -am -P web

this is the relevant (i think) console output, there seems to be nothing suspicious? :

[INFO] Super Dev Mode starting up
[INFO]    workDir: /Users/mathias/.projects/myproject/target/gwt/codeserver
[INFO]    [WARN] Deactivated PrecompressLinker
[INFO] 16:09:38.226 [main] DEBUG org.eclipse.jetty.util.log - Logging to Logger[org.eclipse.jetty.util.log] via org.eclipse.jetty.util.log.Slf4jLog
[INFO] 16:09:38.238 [main] INFO org.eclipse.jetty.util.log - Logging initialized @899ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO] 16:09:38.243 [main] DEBUG org.eclipse.jetty.http.PreEncodedHttpField - HttpField encoders loaded: [org.eclipse.jetty.http.Http1FieldPreEncoder]
[INFO]    Loading Java files in com.mymodule.App.
[INFO]    Module setup completed in 2124 ms

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6e2eafc2-bc7f-4893-a7b9-4a62e34a64den%40googlegroups.com.

No comments:

Post a Comment