PDA

View Full Version : Service Interface Compile Error on upgrade to B4



larvelljones
6 Jun 2008, 11:36 AM
This seems like the same error as http://extjs.com/forum/showthread.php?p=177723.

clmanager : personal/clmanager/src/clmanager.gxt> ./gwt-compile.sh
[ERROR] Errors in 'file:/Users/deuce/dev/src/personal/clmanager/src/clmanager.gxt/src/main/java/net/deuce/clmanager/gwt/main/client/MessageTemplateService.java'
[ERROR] Line 26: Failed to resolve 'net.deuce.clmanager.gwt.main.client.MessageTemplateService' via deferred binding
[ERROR] Cannot proceed due to previous errors
[ERROR] Build failed

Interesting that the class it cannot resolve is itself.

Here's that service interface. This worked prior to upgrading.. :(


public interface MessageTemplateService extends RemoteService {

public MessageTemplateResponse createMessageTemplate(MessageTemplateModel mtm) throws Exception;
public ServiceResponse deleteMessageTemplate(long id) throws Exception;
public ServiceResponse updateMessageTemplate(MessageTemplateModel mtm) throws Exception;

public MessageTemplateResponse getMessageTemplates() throws Exception;

/**
* Utility class for simplifying access to the instance of async service.
*/
public static class Util {
private static MessageTemplateServiceAsync instance;
public static MessageTemplateServiceAsync getInstance(){
if (instance == null) {
instance = (MessageTemplateServiceAsync) GWT.create(MessageTemplateService.class);
ServiceDefTarget target = (ServiceDefTarget) instance;
target.setServiceEntryPoint(GWT.getModuleBaseURL() + "MessageTemplateService");
}
return instance;
}
}
}Also, here's the compile script. Anything look wonked?


export GWT_HOME=/Users/deuce/dev/gwt-mac-1.5.0

CL="src/main/java:src/main/resources:.:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-mac.jar:/Users/deuce/.m2/repository/gwttk/gwttk/0.2.3/gwttk-0.2.3.jar:/Users/deuce/.m2/repository/gxt/gxt/1.0-beta4/gxt-1.0-beta4.jar:/Users/deuce/.m2/repository/net/deuce/gwtwidgets/1.0-SNAPSHOT/gwtwidgets-1.0-SNAPSHOT.jar"

java -Xmx512m -cp "$CL" com.google.gwt.dev.GWTCompiler -logLevel ERROR -style DETAILED -out "target/clmanager" net.deuce.clmanager.gwt.main.Main