Wednesday, April 20, 2016

Re: SDM not running any more!

Fixed after removing the following lines in my pom.xml

<dependency>
           
<groupId>com.google.gwt</groupId>
           
<artifactId>gwt-user</artifactId>
           
<version>${gwtversion}</version>
       
</dependency>
       
<dependency>
           
<groupId>com.google.gwt</groupId>
           
<artifactId>gwt-dev</artifactId>
           
<version>${gwtversion}</version>
           
<scope>provided</scope>
       
</dependency>

this caused the problem (on GWT 2.8.0-SNAPSHOT) that jetty version 9 was used instead of version 8.


Am Mittwoch, 20. April 2016 12:50:26 UTC+2 schrieb marian lux:
Note: I use Eclipse (4.5.2) with GWT Plugin.

Am Mittwoch, 20. April 2016 12:49:03 UTC+2 schrieb marian lux:
When I try tor get SDM on my GWT project running, I always get this output on console:

Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 0.0.0.0, -launcherDir, /home/marian/workspace_oha_mgwt/oha/target/oha-1.0-SNAPSHOT, -logLevel, INFO, at.mlux.oha]
Super Dev Mode starting up
   workDir
: /tmp/gwt-codeserver-4503114881501533286.tmp
   
[WARN] Deactivated PrecompressLinker
2016-04-20 12:42:24 INFO  log:186 - Logging initialized @3880ms
   
Loading Java files in at.mlux.oha.
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jetty.server.AbstractConnector: method <init>()V not found
    at org
.eclipse.jetty.server.nio.AbstractNIOConnector.<init>(AbstractNIOConnector.java:30)
    at org
.eclipse.jetty.server.nio.SelectChannelConnector.<init>(SelectChannelConnector.java:82)
    at com
.google.gwt.dev.shell.jetty.JettyLauncher.getConnector(JettyLauncher.java:803)
    at com
.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:729)
    at com
.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632)
    at com
.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054)
    at com
.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
    at com
.google.gwt.dev.DevMode.main(DevMode.java:413)
   
Module setup completed in 4594 ms
java
.lang.NoSuchMethodError: org.eclipse.jetty.server.AbstractConnector: method <init>()V not found
    at org
.eclipse.jetty.server.nio.AbstractNIOConnector.<init>(AbstractNIOConnector.java:30)
    at org
.eclipse.jetty.server.nio.SelectChannelConnector.<init>(SelectChannelConnector.java:82)
    at com
.google.gwt.dev.codeserver.WebServer.start(WebServer.java:119)
    at com
.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:128)
    at com
.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:91)
    at com
.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:50)
    at sun
.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java
.lang.reflect.Method.invoke(Method.java:498)
    at com
.google.gwt.dev.shell.SuperDevListener$1.run(SuperDevListener.java:84)


No difference which GWT version I am using. 2.7.0 or 2.8.0-beta1.
GWT compile works.

I think the jetty version is wrong but how to fix this?
I can add my pom if desired.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment