MAC OS Lion: Hosted mode compilation succeed when Service class was renamed to ServiceFoo

16 views
Skip to first unread message

Miroslav Genov

unread,
Aug 18, 2011, 10:11:45 AM8/18/11
to google-we...@googlegroups.com
Hello, 
I'm encountering strange issue when using GWT 2.4 RC1. When I compile my app (from Intellij IDEA) the code is compiled to JS and everything is working like a charm. The problem occurs when I try to use the hosted mode browser. Here is the error that is printed in the hosted mode console:

  ERROR: Errors in 'file:/Users/mgenov/Workspaces/idea/evoadm-current/src/com/evo/adm/service/shared/ServiceProxy.java'. 
      ERROR: Line 4: Only a type can be imported. com.evo.adm.service.server.Service resolves to a package. 
      ERROR: Line 13: Service cannot be resolved to a type. 
    ERROR: Unable to find type 'com.evo.adm.contract.client.history.ContractHistoryViewWidget.ContractHistoryViewBinder'. 
      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. 

Here is the package structure: 

service.server.Service
service.shared.ServiceProxy

also my module contains source definition for the shared folder. 


When I rename Service class to ServiceFoo, the page is displayed correctly in hosted mode too. Does anyone have an idea what can cause this issue? 

On the latest version of linux everything is working like a charm. 

Miroslav Genov

unread,
Aug 18, 2011, 10:12:42 AM8/18/11
to google-we...@googlegroups.com
ops, forgot to mention the distribution name - ubuntu

Miroslav Genov

unread,
Aug 18, 2011, 10:41:49 AM8/18/11
to google-we...@googlegroups.com
Now I just moved the Service class in the parent package ( service.Service ) and hosted mode is working like a charm. 
Reply all
Reply to author
Forward
0 new messages