Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Error in org.eclipse.jetty.servlet.ServletHolder

    Hi Team,


    Compiling GWT application built with SmartGWT- 13.0, Spring- 6.0.0, Java - 17.0.5, Eclipse Jetty - 11.0.15 , Apache maven - 3.8.3, GWT - 2.10.0, javax servlet - 4.0.1 and getting below error after the jetty server launch

    [INFO] --- gwt-maven-plugin:2.10.0:debug (default-cli) @ abc ---
    [WARNING] The artifact xml-apis:xml-apis:jar:2.0.2 has been relocated to xml-apis:xml-apis:jar:1.0.b2
    [INFO] starting debugger on port 8000 in suspend mode
    [INFO] create exploded Jetty webapp in C:\Projects\abc\target\abc-1.3
    [INFO] Listening for transport dt_socket at address: 8000
    [INFO] Super Dev Mode starting up
    [INFO] workDir: C:\Users\E78527~1\AppData\Local\Temp\1\gwt-codeserver-17807342164149539180.tmp
    [INFO] Loading Java files in xxx.yyy.zzz.abc.ABC.
    [INFO] Ignored 80 units with compilation errors in first pass.
    [INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    [INFO] Module setup completed in 18317 ms
    [ERROR] java.lang.NoSuchMethodError: 'void org.eclipse.jetty.servlet.ServletHolder.<init>(javax.servlet.Servlet)'
    [ERROR] at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:130)
    [ERROR] at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:162)
    [ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
    [ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
    [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    [ERROR] at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
    [ERROR] at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
    [ERROR] at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:666)
    [ERROR] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:785)
    [ERROR] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:551)
    [ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:888)
    [ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:705)
    [ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:432)



    Result of mvn dependency:tree

    [INFO] Scanning for projects...
    [INFO]
    [INFO] -----------------------< xxx.yyy.zzz:abc >-----------------------
    [INFO] Building abc 1.3
    [INFO] --------------------------------[ war ]---------------------------------
    [WARNING] The POM for com.isomorphic.smartgwt.power:smartgwt-power:jar:13.0 is missing, no dependency information available
    [WARNING] The POM for com.isomorphic.smartgwt.power:isomorphic-sql:jar:13.0 is missing, no dependency information available
    [WARNING] The POM for com.isomorphic.smartgwt.power:isomorphic-core-rpc:jar:13.0 is missing, no dependency information available
    [WARNING] The POM for com.isomorphic.smartgwt.power:isomorphic-spring:jar:13.0 is missing, no dependency information available
    [WARNING] The POM for com.isomorphic.smartgwt.power:isomorphic-tools:jar:13.0 is missing, no dependency information available
    [INFO]
    [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ abc ---
    [WARNING] The artifact xml-apis:xml-apis:jar:2.0.2 has been relocated to xml-apis:xml-apis:jar:1.0.b2
    [INFO] xxx.yyy.zzz:abc:war:1.3
    [INFO] +- xerces:xercesImpl:jar:2.8.1:compile
    [INFO] | \- xml-apis:xml-apis:jar:1.3.03:compile
    [INFO] +- org.springframework:spring-web:jar:6.0.0:compile
    [INFO] | +- org.springframework:spring-beans:jar:6.0.0:compile
    [INFO] | +- org.springframework:spring-core:jar:6.0.0:compile
    [INFO] | | \- org.springframework:spring-jcl:jar:6.0.0:compile
    [INFO] | \- io.micrometer:micrometer-observation:jar:1.10.0:compile
    [INFO] | \- io.micrometer:micrometer-commons:jar:1.10.0:compile
    [INFO] +- org.springframework:spring-webmvc:jar:6.0.0:compile
    [INFO] | +- org.springframework:spring-aop:jar:6.0.0:compile
    [INFO] | \- org.springframework:spring-expression:jar:6.0.0:compile
    [INFO] +- org.springframework:spring-oxm:jar:6.0.0:compile
    [INFO] +- org.springframework:spring-context-support:jar:6.0.0:compile
    [INFO] +- org.springframework:spring-context:jar:6.0.0:compile
    [INFO] +- org.springframework.security:spring-security-web:jar:6.0.0:compile
    [INFO] +- org.springframework.security:spring-security-config:jar:6.0.0:compile
    [INFO] +- org.springframework.security:spring-security-core:jar:6.0.0:compile
    [INFO] | \- org.springframework.security:spring-security-crypto:jar:6.0.0:compile
    [INFO] +- org.springframework:spring-aspects:jar:6.0.0:compile
    [INFO] | \- org.aspectj:aspectjweaver:jar:1.9.9.1:compile
    [INFO] +- org.springframework:spring-orm:jar:6.0.0:compile
    [INFO] | +- org.springframework:spring-jdbc:jar:6.0.0:compile
    [INFO] | \- org.springframework:spring-tx:jar:6.0.0:compile
    [INFO] +- org.springframework.security:spring-security-acl:jar:6.0.0:compile
    [INFO] +- org.springframework.security.extensions:spring-security-saml2-core:jar:1.0.10.RELEASE:compile
    [INFO] | +- com.narupley:not-going-to-be-commons-ssl:jar:0.3.20:compile
    [INFO] | | +- org.bouncycastle:bcprov-ext-jdk15on:jar:1.60:compile
    [INFO] | | \- commons-httpclient:commons-httpclient:jar:3.1:compile
    [INFO] | +- org.apache.santuario:xmlsec:jar:1.5.8:compile
    [INFO] | +- org.apache.velocity:velocity-engine-core:jar:2.0:compile
    [INFO] | | \- org.apache.commons:commons-lang3:jar:3.5:compile
    [INFO] | +- org.bouncycastle:bcpkix-jdk15on:jar:1.64:compile
    [INFO] | +- org.bouncycastle:bcprov-jdk15on:jar:1.64:compile
    [INFO] | +- org.opensaml:opensaml:jar:2.6.6:compile
    [INFO] | | +- org.opensaml:openws:jar:1.5.6:compile
    [INFO] | | | \- org.opensaml:xmltooling:jar:1.4.6:compile
    [INFO] | | \- joda-time:joda-time:jar:2.2:compile
    [INFO] | +- org.owasp.esapi:esapi:jar:2.2.0.0:compile
    [INFO] | | +- com.io7m.xom:xom:jar:1.2.10:compile
    [INFO] | | \- org.apache-extras.beanshell:bsh:jar:2.0b6:compile
    [INFO] | \- xalan:xalan:jar:2.7.2:compile
    [INFO] | \- xalan:serializer:jar:2.7.2:compile
    [INFO] +- org.gwtproject:gwt-servlet:jar:2.10.0:runtime
    [INFO] +- org.gwtproject:gwt-codeserver:jar:2.10.0:provided
    [INFO] +- org.gwtproject:gwt-dev:jar:2.10.0:provided
    [INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:provided
    [INFO] | +- org.ow2.asm:asm:jar:9.2:compile
    [INFO] | +- org.ow2.asm:asm-util:jar:9.2:provided
    [INFO] | | +- org.ow2.asm:asm-tree:jar:9.2:compile
    [INFO] | | \- org.ow2.asm:asm-analysis:jar:9.2:compile
    [INFO] | +- org.ow2.asm:asm-commons:jar:9.2:compile
    [INFO] | +- colt:colt:jar:1.2.0:provided
    [INFO] | +- com.ibm.icu:icu4j:jar:63.1:provided
    [INFO] | +- tapestry:tapestry:jar:4.0.2:provided
    [INFO] | \- net.sourceforge.htmlunit:htmlunit:jar:2.55.0:provided
    [INFO] | +- org.apache.commons:commons-text:jar:1.9:provided
    [INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.13:provided
    [INFO] | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.55.0:provided
    [INFO] | +- net.sourceforge.htmlunit:neko-htmlunit:jar:2.55.0:provided
    [INFO] | +- net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.10.0:provided
    [INFO] | +- commons-net:commons-net:jar:3.8.0:provided
    [INFO] | +- org.brotli:dec:jar:0.1.2:provided
    [INFO] | \- com.shapesecurity:salvation2:jar:3.0.0:provided
    [INFO] +- org.gwtproject:gwt-user:jar:2.10.0:provided
    [INFO] | +- com.google.jsinterop:jsinterop-annotations:jar:2.0.0:provided
    [INFO] | \- org.w3c.css:sac:jar:1.3:provided
    [INFO] +- junit:junit:jar:4.12:test
    [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:runtime
    [INFO] +- org.mockito:mockito-all:jar:1.10.19:test
    [INFO] +- org.powermock:powermock-module-junit4:jar:1.7.0:test
    [INFO] | \- org.powermock:powermock-module-junit4-common:jar:1.7.0:test
    [INFO] +- org.powermock:powermock-api-mockito:jar:1.7.0:test
    [INFO] | +- org.powermock:powermock-api-mockito-common:jar:1.7.0:test
    [INFO] | | \- org.powermock:powermock-api-support:jar:1.7.0:test
    [INFO] | \- org.mockito:mockito-core:jar:1.10.19:compile
    [INFO] | \- org.objenesis:objenesis:jar:2.1:compile
    [INFO] +- org.powermock:powermock-core:jar:1.7.0:compile
    [INFO] | +- org.powermock:powermock-reflect:jar:1.7.0:compile
    [INFO] | \- org.javassist:javassist:jar:3.21.0-GA:compile
    [INFO] +- org.jacoco:org.jacoco.agent:jar:runtime:0.8.8:compile
    [INFO] +- org.apache.velocity:velocity-tools:jar:2.0:compile
    [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
    [INFO] | +- commons-digester:commons-digester:jar:1.8:compile
    [INFO] | +- commons-chain:commons-chain:jar:1.1:compile
    [INFO] | +- commons-validator:commons-validator:jar:1.3.1:compile
    [INFO] | +- dom4j:dom4j:jar:1.1:compile
    [INFO] | +- sslext:sslext:jar:1.2-0:compile
    [INFO] | +- org.apache.struts:struts-core:jar:1.3.8:compile
    [INFO] | | \- antlr:antlr:jar:2.7.2:compile
    [INFO] | +- org.apache.struts:struts-taglib:jar:1.3.8:compile
    [INFO] | +- org.apache.struts:struts-tiles:jar:1.3.8:compile
    [INFO] | \- org.apache.velocity:velocity:jar:1.6.2:compile
    [INFO] +- javax.validation:validation-api:jar:1.0.0.GA:test
    [INFO] +- javax.validation:validation-api:jar:sources:1.0.0.GA:test
    [INFO] +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
    [INFO] +- com.sun.mail:javax.mail:jar:1.6.2:compile
    [INFO] | \- javax.activation:activation:jar:1.1:compile
    [INFO] +- javax.xml.parsers:jaxp-api:jar:1.4.5:compile
    [INFO] +- javax.servlet:javax.servlet-api:jar:4.0.1:provided
    [INFO] +- jakarta.servlet:jakarta.servlet-api:jar:5.0.0:compile
    [INFO] +- jakarta.servlet.jsp:jakarta.servlet.jsp-api:jar:3.1.0:provided
    [INFO] +- cglib:cglib:jar:2.2:compile
    [INFO] | \- asm:asm:jar:3.1:compile
    [INFO] +- commons-lang:commons-lang:jar:2.5:compile
    [INFO] +- commons-logging:commons-logging:jar:1.1.3:compile
    [INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
    [INFO] | \- commons-pool:commons-pool:jar:1.5.4:compile
    [INFO] +- net.sf.jt400:jt400:jar:6.7:compile
    [INFO] +- com.google.code.gson:gson:jar:1.7.2:compile
    [INFO] +- net.sf.gwt-widget:gwt-sl:jar:1.3-RC1:compile
    [INFO] | \- cglib:cglib-nodep:jar:2.1_3:compile
    [INFO] +- com.isomorphic.smartgwt.power:smartgwt-power:jar:13.0:provided
    [INFO] +- com.isomorphic.smartgwt.power:isomorphic-sql:jar:13.0:compile
    [INFO] +- com.isomorphic.smartgwt.power:isomorphic-core-rpc:jar:13.0:compile
    [INFO] +- com.isomorphic.smartgwt.power:isomorphic-spring:jar:13.0:compile
    [INFO] +- org.apache.poi:poi-ooxml:jar:3.15:compile
    [INFO] | +- org.apache.poi:poi:jar:3.15:compile
    [INFO] | +- org.apache.poi:poi-ooxml-schemas:jar:3.15:compile
    [INFO] | | \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
    [INFO] | | \- stax:stax-api:jar:1.0.1:compile
    [INFO] | \- com.github.virtuald:curvesapi:jar:1.04:compile
    [INFO] +- com.microsoft.sqlserver:sqljdbc4:jar:4.0:compile
    [INFO] +- org.slf4j:slf4j-api:jar:1.7.26:compile
    [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.26:runtime
    [INFO] +- org.apache.logging.log4j:log4j-core:jar:2.17.1:compile
    [INFO] | \- org.apache.logging.log4j:log4j-api:jar:2.17.1:compile
    [INFO] +- org.apache.logging.log4j:log4j-1.2-api:jar:2.17.1:compile
    [INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.17.1:compile
    [INFO] +- org.apache.logging.log4j:log4j-web:jar:2.17.1:compile
    [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
    [INFO] +- org.apache.commons:commons-collections4:jar:4.1:compile
    [INFO] +- javax.servlet:jsp-api:jar:2.3:provided
    [INFO] +- org.eclipse.jetty:jetty-jndi:jar:11.0.15:provided
    [INFO] +- org.eclipse.jetty:jetty-plus:jar:11.0.15:provided
    [INFO] | \- jakarta.transaction:jakarta.transaction-api:jar:2.0.0:provided
    [INFO] +- org.eclipse.jetty:jetty-client:jar:11.0.15:compile
    [INFO] | +- org.eclipse.jetty:jetty-io:jar:11.0.15:compile
    [INFO] | \- org.eclipse.jetty:jetty-alpn-client:jar:11.0.15:compile
    [INFO] +- org.eclipse.jetty:jetty-util:jar:11.0.15:compile
    [INFO] +- org.eclipse.jetty:jetty-server:jar:11.0.15:compile
    [INFO] | +- org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api:jar:5.0.2:compile
    [INFO] | \- org.eclipse.jetty:jetty-http:jar:11.0.15:compile
    [INFO] +- org.eclipse.jetty:jetty-webapp:jar:11.0.15:compile
    [INFO] | \- org.eclipse.jetty:jetty-xml:jar:11.0.15:compile
    [INFO] +- org.eclipse.jetty:jetty-servlets:jar:11.0.15:compile
    [INFO] +- org.eclipse.jetty:jetty-annotations:jar:11.0.15:compile
    [INFO] | \- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile
    [INFO] +- org.eclipse.jetty:jetty-servlet:jar:11.0.15:compile
    [INFO] | \- org.eclipse.jetty:jetty-security:jar:11.0.15:compile
    [INFO] +- commons-io:commons-io:jar:2.2:compile
    [INFO] +- org.json:json:jar:20090211:compile
    [INFO] +- org.seleniumhq.selenium:selenium-server:jar:2.35.0:test
    [INFO] | +- mx4j:mx4j-tools:jar:3.0.1:test
    [INFO] | +- net.jcip:jcip-annotations:jar:1.0:test
    [INFO] | +- org.seleniumhq.selenium:selenium-java:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-android-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-iphone-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-support:jar:2.35.0:test
    [INFO] | | \- org.webbitserver:webbit:jar:0.4.14:test
    [INFO] | | \- io.netty:netty:jar:3.5.2.Final:test
    [INFO] | +- org.yaml:snakeyaml:jar:1.8:test
    [INFO] | \- commons-codec:commons-codec:jar:1.6:compile
    [INFO] +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.35.0:test
    [INFO] | +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.35.0:test
    [INFO] | | +- org.seleniumhq.selenium:selenium-api:jar:2.35.0:test
    [INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.2.1 provided
    [INFO] | | | \- org.apache.httpcomponents:httpcore:jar:4.2.1:provided
    [INFO] | | +- com.google.guava:guava:jar:14.0:test
    [INFO] | | +- net.java.dev.jna:jna:jar:3.4.0:test
    [INFO] | | \- net.java.dev.jna:platform:jar:3.4.0:test
    [INFO] | \- org.apache.commons:commons-exec:jar:1.1:test
    [INFO] +- net.docubase:db_rheatoolkit:jar:5.2.3:compile
    [INFO] +- com.bnpparibas.bp2s.xpl:xpl-framework:jar:5.0.0-SNAPSHOT:compile
    [INFO] | +- org.jibx:jibx-run:jar:1.3.1:compile
    [INFO] | | \- xpp3:xpp3:jar:1.1.3.4.O:compile
    [INFO] | \- org.jibx:jibx-extras:jar:1.3.1:compile
    [INFO] | \- org.jdom:jdom:jar:1.1.3:compile
    [INFO] +- commons-jxpath:commons-jxpath:jar:1.3:compile
    [INFO] +- oro:oro:jar:2.0.8:compile
    [INFO] +- com.liferay:org.apache.velocity:jar:1.6.4.LIFERAY-PATCHED-1:compile
    [INFO] +- commons-fileupload:commons-fileupload:jar:1.3.2:compile
    [INFO] +- org.apache.xalan:xalan:jar:2.7.1-1.jbossorg:compile
    [INFO] +- org.quartz-scheduler:quartz:jar:2.2.0:compile
    [INFO] | \- c3p0:c3p0:jar:0.9.1.1:compile
    [INFO] +- org.quartz-scheduler:quartz-jobs:jar:2.2.0:compile
    [INFO] +- com.bnpparibas.bp2s.lam:lam:war:5.2:compile
    [INFO] \- com.isomorphic.smartgwt.power:isomorphic-tools:jar:13.0:compile


    Could you please help me to solve this error?


    Thanks in advance

    #2
    Kalaibharathi,

    GWT Super Dev Mode is only responsible for client side code. org.eclipse.jetty.servlet.ServletHolder is a server class.

    Best regards
    Blama

    Comment


      #3
      Hi,

      Could you please provide me with the details of the team that can help us to resolve this issue?

      And additionally we are also getting the below errors after the launch of jetty server

      [ERROR] java.lang.NoSuchMethodError: 'void org.eclipse.jetty.server.ServerConnector.setSoLingerTime(int)'
      [ERROR] at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:126)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:162)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      [ERROR] at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
      [ERROR] at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
      [ERROR] at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:666)
      [ERROR] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:810)
      [ERROR] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:551)
      [ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913)
      [ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
      [ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:432)


      [ERROR] java.lang.NoClassDefFoundError: org/eclipse/jetty/util/Trie
      [ERROR] at com.google.gwt.dev.codeserver.WebServer.<clinit>(WebServer.java:90)
      [ERROR] at com.google.gwt.dev.codeserver.SourceHandler.<clinit>(SourceHandler.java:63)
      [ERROR] at com.google.gwt.dev.codeserver.Recompiler.loadModule(Recompiler.java:500)
      [ERROR] at com.google.gwt.dev.codeserver.Recompiler.initWithoutPrecompile(Recompiler.java:204)
      [ERROR] at com.google.gwt.dev.codeserver.Outbox.maybePrecompile(Outbox.java:89)
      [ERROR] at com.google.gwt.dev.codeserver.Outbox.<init>(Outbox.java:61)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.makeOutboxTable(CodeServer.java:192)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:151)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
      [ERROR] at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      [ERROR] at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:112)
      [ERROR] at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:91)
      [ERROR] at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:666)
      [ERROR] at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:810)
      [ERROR] at com.google.gwt.dev.DevMode.doStartup(DevMode.java:551)
      [ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913)
      [ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706)
      [ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:432)
      [ERROR] Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.Trie
      [ERROR] at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
      [ERROR] at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
      [ERROR] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
      [ERROR] ... 22 more

      Any idea how to resolve the above mentioned errors?

      Thanks

      Comment


        #4
        Same problem. Serverclass that is not meant for feeding it to GWT. What are you staying to start? Your own existing project or the BuiltInDS sample? What IDE?

        Comment


          #5
          In #1 you say „Compiling GWT application“, but the server log looks like you are starting super development mode.
          Do you want to develop and change-reload, which is what SuperDevMode is for or compile to package it and run later on the Webserver?

          Comment


            #6
            IDE which we're using is Eclipse IDE for Java EE 2022-03. We are getting those errors after the launch of jetty server and i have attached the image of it. And we want to compile and run the application on the webserver.
            Attached Files

            Comment


              #7
              For compile and package and then run in your webserver you don't need Jetty. But you are using SuperDevMode, which is for developing. So your answer is not really clear.
              Is this an existing project or the BuiltInDS sample? If an existing project, why don't you try with BuiltInDS first and then search for differences in classpath, startup, etc?
              BuiltInDS with Eclipse and the GWT Eclipse Plugin is really straight forward.

              Best regards
              Blama

              Comment


                #8
                It is an existing maven project. Once we run "gwt:debug", we will get the following as the result.

                [INFO] --- gwt-maven-plugin:2.10.0:debug (default-cli) @ abc ---
                [INFO] starting debugger on port 8000 in suspend mode
                [INFO] create exploded Jetty webapp in C:\Projects\abc\target\abc-1.3
                [INFO] Listening for transport dt_socket at address: 8000

                After this jetty server will be launched and then Super Dev Mode will start up.
                We are getting the below mentioned errors after this point

                [ERROR] java.lang.NoSuchMethodError: 'void org.eclipse.jetty.server.ServerConnector.setSoLingerTime(int)'

                [ERROR] java.lang.NoClassDefFoundError: org/eclipse/jetty/util/Trie

                [ERROR] java.lang.NoSuchMethodError: 'void org.eclipse.jetty.servlet.ServletHolder.<init>(javax.servlet.Servlet)'


                Thanks

                Comment


                  #9
                  Hi Kalaibharathi

                  I don't know about your project, but the root cause is that you tell Super Dev Mode, which is only for client side code, to also compile server side code.
                  Super Dev Mode turns your Java into Javascript. As you only need some JDK classes, it does not (and can not) compile everything. See here.

                  Read about Super Dev Mode on the GWT page and especially how you tell it what to compile/serve.
                  In the Super Dev Mode startup it should somewhere mention your .gwt.xml file.

                  Also try to compare your project to the BuiltInDS sample.

                  Best regards
                  Blama

                  Comment

                  Working...
                  X