Eclipse with GWT plug-in: unable to download for Chrome/Firefox - java

So, I'm trying to set up a project using GWT with Eclipse Mars.2, I'm following the intructions in the GWT Eclipse config page, but when it comes time to run in development mode, my browser says it doesn't have the GWT Developer Plugin. Problem arises when I try to install it, as Firefox only has support for this plugin until FF26(and I'm on 47), and Chrome has no support for NPAPI plugins anymore, and so I can't download this plugin from the google store.
I don't really know how to go on from here, is there another way to install the GWT plugin, or is there an alternative for it? Thanks.

devmode has been deprecated for quite a while now, and GWT 2.7's DevMode defaults to using superdevmode. devmode will actually be removed entirely after GWT 2.8.
SuperDevMode can be used starting with GWT 2.5 but is really usable only from GWT 2.7, where it's also easier to use (just refresh the page, like in legacy devmode).
So, you should upgrade to GWT 2.7 if you haven't already, and use SuperDevMode from now on.

Related

Eclipse Luna, Google Web Kit - Create GWT RemoteService

Previously, we were using eclipse Galileo for our GWT project. Now, we want to upgrade and using eclipse Luna.
Problem 1:- In eclipse Galileo we use to get option related to Google Web Kit like shown in the following image, through which we use to create the implementation class i.e server class along with on client side we use to get the related service and serviceasync interfaces.
We are not getting this option in eclipse Luna. If we can get help from where do we create GWT Remoteservice from Luna.If there is no direct such option than how to create such classes?
We are using Luna and I've never seen those options. We always just create the three files manually. The tricky part is adding it to the web.xml file but since it sounds like you have existing code you can use those as examples.
You must install the GWT plugin. When you upgrade eclipse to a new major version, plugins have to be reinstalled.
See this site for GWT plugin details.

Class java.beans.PropertyChangeListener not supported by the GWT

I am porting a GWT application from GWT-Ext to SmartGWT. Previously, it used java.beans.PropertyChangeEvent and java.beans.PropertyChangeListener. We recently upgraded to GWT2.4. Am I missing a library? In Netbeans, it is underlined yellow and the hint says
Class java.beans.PropertyChangeListener not supported by the GWT
GWTx svn indicates that it was last changed in 2009.
Your best bet is to try recompiling GWTx source code with GWT 2.4 or 2.5 by taking a checkout of the source code from http://gwtx.googlecode.com/svn/trunk/
( This would help validate whether that jar is compatible latest GWT architecture).

GWT 2.3 dev mode - Hosted mode JSP compilation appears to not use java 1.5 compatibility

Unable to compile class for JSP
Generated servlet error: #DefaultMessage("Last Updated:
{0,date,medium} {0,time, HH:mm:ss (z)}") ^^^^^^^^^^^^^^^ Syntax
error, annotations are only available if source level is 1.5
I've got such errors for all 1.5+ features like enums, annotations etc. during trying to open my gwt module in web browser in dev mode. Compilation process goes well. And my modules work in production/deployment mode. The error appears all over the project only when I open open my module in dev mode.
Compiler compliance level in eclipse is set to 1.6.
This error is the same as Issue 3557 BUT this is old issue for GWT 1.5-1.6 and I'm using GWT 2.3. Also I'm only one GWt developer in my project so I cannot compare my settings/copy eclipse project from someone's workspace.
My waring/errors perspective output is clean, no connected messages with this problem. I've also tried to recheckout from repository and recreate my project in eclipse - but the situation is the same.
Also I've got another problem which I think may be connected with this one.
As you suggested yourself this is a very old GWT issue with the embedded development server.
To get around this
you could use your own server (see -noserver option)
use one of the suggested workarounds in the issue(I used to write my own java class for brining up jetty with java 1.6 as the default compiler

How to install jetty with eclipse on Mac

I am a newbie w.r.t. jetty and RESTful API's.
I want to create REST services using Jetty and wants to use embedded jetty with eclipse.
Can anyone suggest me any HowTo for installing Jetty/ Jetty plugins with Eclipse in Mac OS.
Regards,
If you're looking for an Eclipse plugin that will allow you to start your web app in Jetty via the Debug/Run menus, you may want to take a look at the run-jetty-run plugin.
If you happen to be using Maven, there's a Maven plugin you can use to start your app in Jetty as well. This can be configured to run via a launcher in Eclipse or can be launched via the command line.
Edit - Added more info about the jetty-maven-plugin:
If you're just talking about local development, then you don't have to download Jetty separately for use with the Maven plugin. The Maven plugin handles the download of the dependencies that you need by simply running mvn jetty:run. This will start your web app in Jetty (by default) at http://localhost:8080. If you use this, then there's really no need for the Eclipse plugin, either. As far as versions go, these are the available versions. I'd recommend sticking with a fairly recent version unless you have a need to use an older version of Jetty (it looks like the most recent version is a release candidate--8.0.0.RC0).
There's also an example of usage in a project on Github that I just found, but you may want to update the plugin version used.

Missing Plugin GWT error in Eclipse

I'm trying to run an existing GWT project in Eclipse as a Web Application. This runs on other people's PCs, and I used a setup document common to us all to install Eclipse and GWT. I consistently got the error:
Google Error
Not Found
The requested URL /missing-plugin/ was not found on this server.
So far, I have verified that the GWT SDK is installed, and that the Google Plugin for Eclipse 3.5 is installed. I uninstalled just the Google Plugin, and then everything Google, and reinstalled, with no luck. at this point, after poking around a lot, all the Google stuff is installed, but the "Run as Web Application" option is completely gone. I've googled this, but no luck so far.
Any ideas?
As of GWT 2 (or there about), a new browser plugin is required for developer mode. You can get it here: http://gwt.google.com/samples/MissingPlugin/MissingPlugin.html

Categories