Wednesday, April 27, 2011

Re: 2.2 plugin with 1.7 app hostmode does not work

Hi,
I found my problem.
FYI for anyone facing this in the future.

I created a new GWT compile run configuration in eclipse.
The compiler output for a 1.71. project is set by default to 'www' .
For the GWT 2.2 plug it expects the output to be set to 'war' which
makes sense, since this is the new project format.

Changing this setting to 'war' was important.

Also, by default, if you Run as..."Web Application" it will set
the '-codeServerPort' argument in the run configuration for your 1.7
project.
This argument must be deleted for a 1.7.1 project, since GWT 1.7
doesn't recognize this param.

Aloha,
Mike.


On Apr 26, 3:01 pm, mdwarne <mike.wa...@gmail.com> wrote:
> Hi,
>
> I am using the GWT 2.2 plugin in Eclipse 3.6 on Mac OSX.   I have an
> existing project that was developed in GWT 1.7.1   I verified that the
> sdk version is 1.7.1 in the eclipse project properties.
>
> 1st problem:
> When I try to start the project in hosted mode,  I immediately get an
> error in the console:
> "Unknown argument: -codeServerPort"
>
> I next tried removing the argument "-codeServerPort" from the run
> configuration in eclipse.
> Now the hosted mode browser will start. but...
>
> 2nd problem:
> The hosted mode browser is displayed with a blank page.
> It seems like hosted mode plugin is not loading my application?
>
> Running the app in a normal safari browser works ok.  But I really
> miss  the hosted mode debugger :(
>
> Any suggestions?
>
> Thanks,
> Mike.
> ( I can't convert to GWT 2.x because I am depending on a third party
> gwt library that isn't 2.x compatible)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment