Is anywhere support for gwtSdkFirstInClasspath in super dev mode recompile?

Answered

I have added gwtp-dispatch-rest in my project and now on GWT app page when I tried to compile gwt error appeared:

Adding '46' new generated units
Resolving com.gwtplatform.dispatch.rest.client.core.com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment
Found type 'com.gwtplatform.dispatch.rest.client.core.com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment'
[WARN] Unable to resolve method method memberInject_Key$type$com$gwtplatform$dispatch$rest$client$core$DefaultCookieManager$_annotation$$none$$
Resolving com.gwtplatform.dispatch.rest.client.gin.com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment
Found type 'com.gwtplatform.dispatch.rest.client.gin.com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment'
[WARN] Unable to resolve method method com$gwtplatform$dispatch$rest$client$gin$RestDispatchAsyncModule_getGlobalHeaderParams_methodInjection
Computing all possible rebind results for 'com.gwtplatform.dispatch.rest.client.core.DefaultCookieManager'
Rebinding com.gwtplatform.dispatch.rest.client.core.DefaultCookieManager
Checking rule <replace-with class='com.google.gwt.place.shared.PlaceHistoryHandler.DefaultHistorian'/>
[ERROR] Errors in 'jar:file:/C:/m2p/com/gwtplatform/gwtp-dispatch-rest/1.5.3/gwtp-dispatch-rest-1.5.3.jar!/com/gwtplatform/dispatch/rest/client/core/parameters/ClientHttpParameter.java'
[ERROR] Line 19: The import java.util.AbstractMap.SimpleEntry cannot be resolved
[ERROR] Line 109: SimpleEntry cannot be resolved to a type
[ERROR] Unable to find type 'com.gwtplatform.dispatch.rest.client.core.DefaultCookieManager'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] Errors in 'gen/com/gwtplatform/dispatch/rest/client/core/com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment.java'
[ERROR] Line 169: Failed to resolve 'com.gwtplatform.dispatch.rest.client.core.DefaultCookieManager' via deferred binding
[ERROR] Errors in 'jar:file:/C:/m2p/com/gwtplatform/gwtp-dispatch-rest/1.5.3/gwtp-dispatch-rest-1.5.3.jar!/com/gwtplatform/dispatch/rest/client/core/parameters/ClientHttpParameter.java'
[ERROR] Line 19: The import java.util.AbstractMap.SimpleEntry cannot be resolved
[ERROR] Line 109: SimpleEntry cannot be resolved to a type
[ERROR] Compiler returned false

Maven gwt-maven-plugin works correctly with property gwtSdkFirstInClasspath=true. When its value is false the same error appears at compilation time from console. When I tried use "Generate GWT Compile Report..." same error appeared.

Is anywhere fix or workaround for this behaviour?

3 comments
Comment actions Permalink

Hello Evgenii,

gwtSdfFirstInClasspath parameter of gwt-maven-plugin isn't supported by IDEA, so order of libraries in classpath is exactly the same as listed in "Project Structure / Libraries" window.

Could you please try to move your "gwt-user.jar" and "gwt-dev.jar" to the top of that list? Does it help?

1
Comment actions Permalink

Hello Ivan,

Yes, moving gwt-user.jar to the top of dependencies and upgrading version of gwt to 2.7.0 helped us.

It is very strange thing that maven gwt plugin compiles our project as 2.6.0 version when gwtSdkFirstInClasspath is false and as 2.7.0 when gwtSdkFirstInClasspath is true.

Biggest thanks!

0
Comment actions Permalink

You're welcome!

I agree, it's kind of a strange behavior. Even more strange is that "gwtSdfFirstInClasspath" is marked as deprecated in "gwt-maven-plugin". Looks like they do not believe that this is a reliable thing.

Thank you for a quick response, I appreciate it!

0

Please sign in to leave a comment.