Problems with Eclipse Oxygen and GWT Plugin

960 views
Skip to first unread message

JP

unread,
Jul 7, 2017, 5:31:00 AM7/7/17
to GWT Users
Hello,

I have installed Eclipse Oxygen Release Java EE IDE for Web Developers (64 bit) and found GWT Eclipse Plugin 3.0.0 in the Marketplace.

After successfully installation of the plugin, I tried to create a new GWT Web Application Project without sampe code. The result was an error "Creation of element failed".

I tried another project creation, this time with sample code. It worked! However, when I tried to add a GWT module, I got another error (extract from log file):

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.ClassCastException: org.eclipse.jdt.internal.core.JarEntryFile cannot be cast to org.eclipse.core.resources.IFile
    at com.google.gwt.eclipse.core.modules.AbstractModule.getShortName(AbstractModule.java:294)
    at com.google.gwt.eclipse.core.modules.AbstractModule.getQualifiedName(AbstractModule.java:272)
    at com.google.gwt.eclipse.core.modules.ModuleJarResource.getQualifiedName(ModuleJarResource.java:1)
    at com.google.gwt.eclipse.core.modules.AbstractModule.getSimpleName(AbstractModule.java:342)
    at com.google.gwt.eclipse.core.modules.ModuleJarResource.getSimpleName(ModuleJarResource.java:1)
    at com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:220)
    at com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:1)
...

How can I create a module? Is there a way around this error?

Kind regards,

JP

Juan Pablo Gardella

unread,
Jul 7, 2017, 9:23:15 AM7/7/17
to GWT Users
I'm using https://github.com/gwt-plugins/gwt-eclipse-plugin without problems. Try with this.



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

JP

unread,
Jul 10, 2017, 5:33:57 AM7/10/17
to GWT Users
Hello Juan,

thanks for your reply. Unfortunately I had this version installed already. Perhapy you have another hint?

Kind regards,

JP


Am Freitag, 7. Juli 2017 15:23:15 UTC+2 schrieb Juan Pablo Gardella:
I'm using https://github.com/gwt-plugins/gwt-eclipse-plugin without problems. Try with this.



On Fri, 7 Jul 2017 at 06:30 JP <isj...@gmail.com> wrote:
Hello,

I have installed Eclipse Oxygen Release Java EE IDE for Web Developers (64 bit) and found GWT Eclipse Plugin 3.0.0 in the Marketplace.

After successfully installation of the plugin, I tried to create a new GWT Web Application Project without sampe code. The result was an error "Creation of element failed".

I tried another project creation, this time with sample code. It worked! However, when I tried to add a GWT module, I got another error (extract from log file):

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.ClassCastException: org.eclipse.jdt.internal.core.JarEntryFile cannot be cast to org.eclipse.core.resources.IFile
    at com.google.gwt.eclipse.core.modules.AbstractModule.getShortName(AbstractModule.java:294)
    at com.google.gwt.eclipse.core.modules.AbstractModule.getQualifiedName(AbstractModule.java:272)
    at com.google.gwt.eclipse.core.modules.ModuleJarResource.getQualifiedName(ModuleJarResource.java:1)
    at com.google.gwt.eclipse.core.modules.AbstractModule.getSimpleName(AbstractModule.java:342)
    at com.google.gwt.eclipse.core.modules.ModuleJarResource.getSimpleName(ModuleJarResource.java:1)
    at com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:220)
    at com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:1)
...

How can I create a module? Is there a way around this error?

Kind regards,

JP

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

Rodolfo Raya

unread,
Jul 10, 2017, 10:31:39 AM7/10/17
to google-we...@googlegroups.com
Hi,

Try installing Eclipse for Java Developers instead of the Java EE IDE for Web Developers.

You can add all Java EE plugins and GWT to the base IDE. That combination works well for me.

Regards,
Rodolfo M. Raya

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

JP

unread,
Sep 28, 2017, 8:14:59 AM9/28/17
to GWT Users
Hello Rodolfo,

many thanks for your reply.

I tried it with a fresh Java Developer Edition and GWT plugin installation. Unfortunately I still get the same error when trying to create a new GWT Project without sample code. When closing the creation dialog box I get the message "Errors occurred while refreshing resources with the local file system.
  The project description file (.project) for 'GWTTest' is missing.  This file contains important information about the project.  The project will not function properly until this file is restored."

Perhaps this may help!?

Kind regards,

JP
Rodolfo M. Raya

To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

Williame

unread,
Sep 28, 2017, 10:23:10 AM9/28/17
to GWT Users
Have you tried converting the project to faceted form and enabling the gwt and "Dynamic web module" facets?   If you do don't forget to edit the "Dynamic web module" when you select it with the link eclipse displays of "additional configuration" setting the web content folder to "war" instead of "WebContent" or your project will run but serve content from an empty folder.

-W
Reply all
Reply to author
Forward
0 new messages