ripper234
ripper234

Reputation: 229988

Failing to compile Maven GWT project

Note - I will really appreciate a quick and complete answer to this question. I can't offer a bounty yet because I just published this question a few hours ago, but if someone answers this question fully, I will issue a total bounty of 150 (100 from me + 50) and award it to them.

I have tried to work my way through the GWT Archtype, but failed. Currently, I'm getting an error finding entry point class, when doing "mvn clean package"

INFO] auto discovered modules [org.test.TestGwt]
INFO] Compiling module org.test.TestGwt
INFO]    Finding entry point classes
INFO]       [ERROR] Unable to find type 'org.test.MyEntryPoint'
INFO]          [ERROR] Hint: Previous compiler errors may have made this type unavailable

I uploaded the source code to my dropbox, would appreciate your help. This is a very stripped down project, it only contains the bare essentials - please help me figure out a working example.

My goal is to get mvn gwt:run to work, and to get a deployable war that actually works.

Upvotes: 2

Views: 1263

Answers (1)

Hilbrand Bouwkamp
Hilbrand Bouwkamp

Reputation: 13519

the property:

<source path="org/test"/>

refers to the path relative to your TestGwt.gwt.xml file itself. Also don't put server side code in your code base because GWT tries to compile it to JavaScript and will fail because it contains classes not available to compile.

I suggest you add 2 folders to you package structure:

org.test.client
org.test.server 

Leave the TestGwt.gwt.xml file in the org/test folder.

and change the gwt.xml to:

<source path="client"/>

Upvotes: 4

Related Questions