Changing localWorkers to 1 didn't fix the issue (tried increasing them 
gradually as well). *build.log* doesn't show anything:
```
Public resources found in...
Translatable source found in...
Persistent unit cache dir set to: /home/ahumaidat/sourcegit/ds/gwt-unitCache
Opening cache file: 
/home/ahumaidat/sourcegit/ds/gwt-unitCache/gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-0000018681BB19A8
Looking for previously cached Compilation Units in 
/home/ahumaidat/sourcegit/ds/gwt-unitCache
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-000001867EC1D3D6
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-000001867EC29ADF
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-000001867ECC816B
Loaded 0 units from cache file: 
gwt-unitCache-7b9fbb59f8661539c34f46974ce5fb573aac79fc-C90BB3B791D3293DB8D5BA1AB0A974D4-000001867ED36467
Compiling module com.automation.core.ds
```

On Friday, February 24, 2023 at 5:45:34 AM UTC+3 Jonathan Baxter wrote:

> Try changing localWorkers to 1?
>
> On Thursday, February 23, 2023 at 9:14:03 AM UTC-5 Alaa Humaidat wrote:
>
>> I'm working on upgrading an  app that uses GWT and embedded jetty server 
>> from java 8 to java 11. The app was working fine with jetty 9, GWT 2.10.0 
>> before the upgrade. After upgrading to java 11- Jetty 11, the compilation 
>> for GWT got stuck.
>>
>> I removed all unused dependencies, upgraded existing ones to their latest 
>> version (compatible with Java11), tried to increase Xmx and Xss for the 
>> compilation target, and tried to add workers, but nothing worked.
>>
>> I used `jstack` to check the processes threads, which showed a deadlock 
>> (result attached).
>>
>> Below is the ant target I'm using to build GWT:
>>
>> ```
>> <target name="compile.gwt" description="build applications" 
>> depends="compile">
>>         <java jvm="${home}/apps64/java11/bin/java" failonerror="true"
>>               classname="com.google.gwt.dev.Compiler"
>>               fork="true"
>>               output="build.log">
>>             <classpath>
>>                 <path refid="local.class.path"/>
>>             </classpath>
>>             <jvmarg line="-Xmx1024M"/>
>>             <jvmarg line="-Xss16M"/>
>>             <arg value="-style"/>
>>             <arg value="DETAILED"/>
>>             <arg value="-localWorkers"/>
>>             <arg value="16"/>
>>             <arg value="-logLevel"/>
>>             <arg value="DEBUG"/>
>>             <arg value="-optimize"/>
>>             <arg value="5"/>
>>             <arg value="com.automation.core.ds"/>
>>         </java>
>>     </target>
>> ```
>>
>> How can I fix that?
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/7ff1c2ac-644a-4348-be85-c001f1f22888n%40googlegroups.com.

Reply via email to