Error in Hosted Mode When Connecting to a Remote Server

Without SmartGWT I’m able to aim the host mode browser at a remote server, but when I include any calls to SmartGWT it fails with the following:

[ERROR] Unable to load module entry point class com.[redacted].client.[redacted] (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Undefined value
 line: 53
 sourceURL: jar:file:/Developer/smartgwt-1.0b1/smartgwt.jar!/com/smartgwt/client/widgets/BaseWidget.java
	at com.smartgwt.client.widgets.BaseWidget.init(Native Method)
	at com.smartgwt.client.widgets.BaseWidget.<clinit>(BaseWidget.java:48)
	at com.[redacted].client.[redacted].onModuleLoad([redacted].java:29)

Everything works fine in hosted mode with SmartGWT if I don’t have it connect to a remote server.

If this is a configuration problem, I’m hoping someone can point me in the right direction. Otherwise, any guidance would be appreciated.

Thanks.

Do you have the following entry in your module

<inherits name="com.smartgwt.SmartGwt"/>

The helloworld sample under smartgw/samples/helloworld has a complete standalone project with scripts to compile and run in the hosted model

Yup. Hosted mode works fine when I’m using the local tomcat server.

The problem comes in when I switch to using a remote server. So, hosted mode works when I use:

-out www com.[redacted].[redacted]/[redacted].html;

Or when I use the following without any calls to SmartGWT:

-noserver -out www http://[redacted].com:9000/www/[redacted].html

As soon as I add a call to SmartGWT (with the latter), I received the error listed above.

Thanks.

With some help from an associate, I’ve figure this out.

The problem was that I hadn’t deployed the compiled JavaScript and HTML to the remote server.