Saturday, December 14, 2024

Re: Confused about RPC setup

HI Neil,

the sourcecode is necessary for the GWT compilation from java to javascipt/html. Either the class to be compiled must be inside the 'client' part of the module setup - so in the packages that define the client code. Or if it is a dependency from another module/package, the source code needs to be available for the GWT compiler. So it needs a sources.jar during compilation. Runtime these are not required.
Also take care that whatever sources you include for the GWT compile only uses supported java code constructs that are supported in the GWT compile.

rg,

Leon..

Op zaterdag 14 december 2024 om 17:05:24 UTC+1 schreef Neil Aggarwal:
Hello all:

I am trying to create stubs for RPC, but I am getting these errors from
the
GWT compiler:

[INFO] Compiling module com._3dmathpuzzles.play.Play
[INFO] Tracing compile failure path for type
'com._3dmathpuzzles.play.client.GetPuzzleService'
[INFO] [ERROR] Errors in
'file:/C:/OneDrive/Dev/3DMathPuzzlesWeb/src/main/java/com/_3dmathpuzzles/p
lay/client/GetPuzzleService.java'
[INFO] [ERROR] Line 15: No source code is available for type
com.propfinancing.puzzle.Puzzle; did you forget to inherit a required
module?
[INFO] Tracing compile failure path for type
'com._3dmathpuzzles.play.client.GetPuzzleServiceAsync'
[INFO] [ERROR] Errors in
'file:/C:/OneDrive/Dev/3DMathPuzzlesWeb/src/main/java/com/_3dmathpuzzles/p
lay/client/GetPuzzleServiceAsync.java'
[INFO] [ERROR] Line 13: No source code is available for type
com.propfinancing.puzzle.Puzzle; did you forget to inherit a required
module?
[INFO] Tracing compile failure path for type
'com._3dmathpuzzles.play.server.GetPuzzleServiceImpl'
[INFO] [ERROR] Errors in
'file:/C:/OneDrive/Dev/3DMathPuzzlesWeb/src/main/java/com/_3dmathpuzzles/p
lay/server/GetPuzzleServiceImpl.java'
[INFO] [ERROR] Line 13: No source code is available for type
com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to
inherit a required module?
[INFO] [ERROR] Line 19: No source code is available for type
com.propfinancing.puzzle.Puzzle; did you forget to inherit a required
module?
[INFO] [ERROR] Errors in
'file:/C:/OneDrive/Dev/3DMathPuzzlesWeb/src/main/java/com/_3dmathpuzzles/p
lay/client/GetPuzzleService.java'
[INFO] [ERROR] Line 15: No source code is available for type
com.propfinancing.puzzle.Puzzle; did you forget to inherit a required
module?
[INFO] Finding entry point classes
[INFO] [ERROR] Hint: Check that the type name
'com.propfinancing.puzzle.Puzzle' is really what you meant
[INFO] [ERROR] Hint: Check that your classpath includes all required
source roots

My class com.propfinancing.puzzle.Puzzle is in a jar file on the
classpath. I added a Puzzle.gwt.xml with this content:

<module>
<inherits name="com.google.gwt.user.User"/>
<entry-point class="com.propfinancing.puzzle.Puzzle"/>
<source path=""/>
</module>

And made sure it is included in the jar.

The error about RemoveServiceServlet is strange since it is part of GWT.
I am not sure what I am doing wrong
on that.

I have been reading the docs and tutorials, but am not figuring this out.
I appreciate any guidance you all can offer.

Thank you,
Neil

--
Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
We offer 30 year loans on single family houses!

--
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 visit https://groups.google.com/d/msgid/google-web-toolkit/e6aea4e6-c321-4c10-bb44-2e7e727796dan%40googlegroups.com.

No comments:

Post a Comment