On 1 oct, 14:24, Florian <[email protected]> wrote:
> Hi,
> I wanted to finally move from 1.5.3 to the newest version of GWT and
> start using the eclipse plugin but so far I have only had lots of
> problems...

You don't have to switch to 1.6 or 1.7 to start using the Eclipse plug-
in (though of course, using the latest version is still better...
well, 1.6 wasn't worth it –some bugs making it unusable in practice–
but 1.7 definitely is)

> I tried to follow the guidelines 
> at:http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#Upgra...
> but even the first point gives me problems. If I try to use -
> startupUrl parameter I either get a linker error (if I use my old Java
> Application run configuration with the modifications mentioned in the
> release notes) or he tells me that he doesn't recognize the -
> startupUrl parameter...
> But its just a warning so I guess I can ignore that for now.
>
> The <module rename-to='testapp'> part worked well in my small test
> application but in our current project it wont even go so far and
> create the directory.
>
> The following picture shows my Eclipse workspace with all the
> directories and error messages:
> <img src="ftp://ftp.psi.ch/psi/idok/gwt17.png"; />

1. your "console" tab says you're still using GWTShell, not
HostedMode, hence the issue the -startUrl argument
2. why are your gwt.xml in your war folder?
3. why are your HTML and CSS files in your war/WEB-INF folder?
(I assume the war/tomcat has been created by GWTShell)
4. er, the war folder should really be at the root of the project !

> It think my problem is that I dont know exactly what to put into the
> run configuration. I ended up using an automatically generated GWT
> project created by the GWT Eclipse plugin wizard as an example.
> So the run configuration looks like that:
>
> Browsers: URL: IdokSearchTwikiInclude.html
> Aviable Modules: IdokSearchTwikiInclude - ch.psi.idok.twiki
> Working Directory: Other: /idok/sites/psi/java/ch/psi/idok/gwt/twiki/
> war
>
> But the difference is that if I click on the "Browse" button after the
> "Browsers: URL:" nothing shows up, while in the test project I could
> select the html file.

Only *.html files located in the war/ folder are listed (excluding war/
WEB-INF/**)

> Can anybody give me some tips on how to make it work?
> I think I managed to port all the files to the new structure but who
> knows..

1. create war folder with war/WEB-INF/web.xml
2. copy everything from your public/ subpackages into war (well,
unless those things that you actually have to keep in public, because
they're reusable resources; for example, because you're including your
CSS from your gwt.xml, you should keep your CSS into public while
moving the HTML into war) and update the <script src=""/> in your HTML
pages to include the module name (or its rename-to="" name)
3. add the GWT facet to your eclipse project (if you already added it,
first remove it, then add it again)
4. You're done, you can use the "run as > web application" to launch
HostedMode (the plugin will choose HostedMode vs. GWTShell because
there is a war folder)
5. port your Listeners to Handlers and upgrade your widgets to no
longer use sinkEvents/onBrowserEvent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to