adn*_*ems 1 java eclipse gwt jetty maven
通过eclipse插件启动应用程序时出现以下异常:“运行方式”>“带有码头的GWT开发模式”
环境:
-GWT
SDK 2.8-
春季启动1.5.3.RELEASE-
码头9.4.4
-GWT Eclipse插件3.0.0
堆栈跟踪:
11:50:51,971 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:50:51,971 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
11:50:51,971 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4c292313 - Registering current configuration as safe fallback point
Loading Java files in com.mycompany.fonems.webapp.Fonemswebapp.
Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Module setup completed in 6335 ms
The code server is ready at http://127.0.0.1:9876/
Code server started in 6.611 s ms
Linking modules
Bootstrap link for command-line module 'com.mycompany.fonems.webapp.Fonemswebapp'
Linking module 'fonemswebapp'
Invoking Linker Cross-Site-Iframe
Ignoring the following script tags in the gwt.xml file
sc/skins/Simplicity/load_skin.js
sc/modules/ISC_Core.js
sc/modules/ISC_Foundation.js
sc/modules/ISC_Containers.js
sc/modules/ISC_Grids.js
sc/modules/ISC_Forms.js
sc/modules/ISC_RichTextEditor.js
sc/modules/ISC_Calendar.js
sc/modules/ISC_DataBinding.js
sc/skins/Enterprise/load_skin.js
[WARN] /isomorphic/skins/Enterprise/skin_styles.css
java.lang.NoSuchMethodError: **org.eclipse.jetty.server.Request.getUri()Lorg/eclipse/jetty/http/HttpURI;
at com.google.gwt.dev.shell.jetty.JettyLauncher$JettyRequestLogger.log(JettyLauncher.java:130)
at org.eclipse.jetty.server.HttpChannel.onCompleted(HttpChannel.java:620)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:435)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)
[WARN] ERROR dispatch failed
java.lang.NoSuchMethodError: org.eclipse.jetty.server.Request.getUri()Lorg/eclipse/jetty/http/HttpURI;
at com.google.gwt.dev.shell.jetty.JettyLauncher$JettyRequestLogger.log(JettyLauncher.java:130)
at org.eclipse.jetty.server.HttpChannel.onCompleted(HttpChannel.java:620)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:435)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)
Suppressed: java.lang.IllegalStateException: s=COMPLETED i=false a=NOT_ASYNC
at org.eclipse.jetty.server.HttpChannelState.onError(HttpChannelState.java:769)
at org.eclipse.jetty.server.HttpChannel.handleException(HttpChannel.java:515)
at org.eclipse.jetty.server.HttpChannelOverHttp.handleException(HttpChannelOverHttp.java:463)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:451)
... 11 more
GET /recompile/fonemswebapp
Job com.mycompany.fonems.webapp.Fonemswebapp_1_0
starting job: com.mycompany.fonems.webapp.Fonemswebapp_1_0
Compiling module com.mycompany.fonems.webapp.Fonemswebapp
Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Unification traversed 598 fields and methods and 167 types. 0 are considered part of the current module and 5 had all of their fields and methods trave
rsed.
Compiling 1 permutation
Compiling permutation 0...
Linking per-type JS with 0 new/changed types.
Source Maps Enabled
Compile of permutations succeeded
Compilation succeeded -- 2,605s
Linking into C:\Temp\gwt-codeserver-6157501051682194907.tmp\com.mycompany.fonems.webapp.Fonemswebapp\compile-2\war\fonemswebapp; Writing extras to C:\Temp\g
wt-codeserver-6157501051682194907.tmp\com.mycompany.fonems.webapp.Fonemswebapp\compile-2\extras\fonemswebapp
Invoking Linker Cross-Site-Iframe
Ignoring the following script tags in the gwt.xml file
sc/skins/Simplicity/load_skin.js
sc/modules/ISC_Core.js
sc/modules/ISC_Foundation.js
sc/modules/ISC_Containers.js
sc/modules/ISC_Grids.js
sc/modules/ISC_Forms.js
sc/modules/ISC_RichTextEditor.js
sc/modules/ISC_Calendar.js
sc/modules/ISC_DataBinding.js
sc/skins/Enterprise/load_skin.js
Link succeeded
Linking succeeded -- 2,776s
6,914s total -- Compile completed
[WARN] /images/logoREC.jpg
java.lang.NoSuchMethodError: org.eclipse.jetty.server.Request.getUri()Lorg/eclipse/jetty/http/HttpURI;
at com.google.gwt.dev.shell.jetty.JettyLauncher$JettyRequestLogger.log(JettyLauncher.java:130)
at org.eclipse.jetty.server.HttpChannel.onCompleted(HttpChannel.java:620)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:435)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)
Run Code Online (Sandbox Code Playgroud)
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- POM file generated with GWT webAppCreator -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.natixis.fonems.webapp</groupId>
<artifactId>Fonemswebapp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>com.natixis.fonems.webapp.Fonemswebapp</name>
<parent> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.3.RELEASE</version>
</parent>
<properties>
<!-- Setting maven.compiler.source to something different to 1.8
needs that you configure the sourceLevel in gwt-maven-plugin since
GWT compiler 2.8 requires 1.8 (see gwt-maven-plugin block below) -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- Don't let your Mac use a crazy non-standard encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<smartgwt.version>3.1</smartgwt.version>
<natixis.drh.version>2.0.0</natixis.drh.version>
<natixis.drh.rmi.version>02.10.01</natixis.drh.rmi.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- ensure all GWT deps use the same version (unless overridden) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt</artifactId>
<version>2.8.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.natixis.fonems</groupId>
<artifactId>fonems-fwk-server-common</artifactId>
<version>0.0.104-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.natixis.fonems</groupId>
<artifactId>fonems-refonte-dao</artifactId>
<version>0.0.104-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>javax.el-api</artifactId>
<groupId>javax.el</groupId>
</exclusion>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>xercesImpl</artifactId>
<groupId>xerces</groupId>
</exclusion>
<exclusion>
<artifactId>apache-jsp</artifactId>
<groupId>org.eclipse.jetty</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt</artifactId>
<version>${smartgwt.version}</version>
</dependency>
<dependency>
<groupId>com.smartgwt</groupId>
<artifactId>smartgwt-skins</artifactId>
<version>${smartgwt.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>natixis.drh</groupId>
<artifactId>newncauth</artifactId>
<version>${natixis.drh.version}</version>
</dependency>
<dependency>
<groupId>natixis.drh</groupId>
<artifactId>natixis.droits-habilitations.rmi</artifactId>
<version>${natixis.drh.rmi.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes" update them in DevMode -->
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<!-- GWT Maven Plugin-->
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-6</version>
<executions>
<execution>
<goals>
<goal>import-sources</goal>
<goal>compile</goal>
<goal>import-test-sources</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<moduleName>com.natixis.fonems.webapp.Fonemswebapp</moduleName>
<moduleShortName>Fonemswebapp</moduleShortName>
<failOnError>true</failOnError>
<!-- GWT compiler 2.8 requires 1.8, hence define sourceLevel here if you use
a different source language for java compilation -->
<sourceLevel>1.8</sourceLevel>
<!-- Compiler configuration -->
<compilerArgs>
<!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -->
<arg>-compileReport</arg>
<arg>-XcompilerMetrics</arg>
</compilerArgs>
<!-- DevMode configuration -->
<warDir>${project.build.directory}/${project.build.finalName}</warDir>
<classpathScope>compile+runtime</classpathScope>
<!-- URL(s) that should be opened by DevMode (gwt:devmode). -->
<startupUrls>
<startupUrl>Fonemswebapp.html</startupUrl>
</startupUrls>
<!-- <webappDirectory>${outputFolder}</webappDirectory> -->
</configuration>
</plugin>
<!-- Skip normal test execution, we use gwt:test instead -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
Run Code Online (Sandbox Code Playgroud)
依赖树:
--- maven-dependency-plugin:2.10:tree (default-cli) @ Fonemswebapp ---
com.mycompany.fonems.webapp:Fonemswebapp:war:1.0-SNAPSHOT
+- com.mycompany.fonems:fonems-fwk-server-common:jar:0.0.104-SNAPSHOT:compile
| +- commons-configuration:commons-configuration:jar:1.9:compile
| | \- commons-logging:commons-logging:jar:1.1.1:compile
| +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
| +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
| | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
| +- joda-time:joda-time:jar:2.9.9:compile
| +- org.apache.commons:commons-lang3:jar:3.1:compile
| +- commons-io:commons-io:jar:2.4:compile
| +- commons-lang:commons-lang:jar:2.6:compile
| +- commons-collections:commons-collections:jar:3.2.2:compile
| +- org.springframework:spring-tx:jar:4.3.8.RELEASE:compile
| +- org.springframework:spring-context:jar:4.3.8.RELEASE:compile
| | +- org.springframework:spring-aop:jar:4.3.8.RELEASE:compile
| | \- org.springframework:spring-expression:jar:4.3.8.RELEASE:compile
| +- javax.xml.bind:jaxb-api:jar:2.2.12:compile
| +- javax.validation:validation-api:jar:1.1.0.Final:compile
| +- com.google.guava:guava:jar:18.0:compile
| +- commons-betwixt:commons-betwixt:jar:0.8:compile
| | +- commons-beanutils:commons-beanutils-core:jar:1.7.0:compile
| | \- commons-digester:commons-digester:jar:2.1:compile
| +- net.sf.dozer:dozer:jar:5.4.0:compile
| +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
| +- uk.org.lidalia:sysout-over-slf4j:jar:1.0.2:compile
| +- org.slf4j:slf4j-api:jar:1.7.25:compile
| \- ch.qos.logback:logback-classic:jar:1.1.11:compile
| \- ch.qos.logback:logback-core:jar:1.1.11:compile
+- com.mycompany.fonems:fonems-refonte-dao:jar:0.0.104-SNAPSHOT:compile
| +- com.zaxxer:HikariCP:jar:2.5.1:compile
| +- org.lazyluke:log4jdbc-remix:jar:0.2.7:compile
| +- com.mycompany.fonems:fonems-config:jar:0.0.104-SNAPSHOT:compile
| +- com.mycompany.fonems:fonems-refonte-model:jar:0.0.104-SNAPSHOT:compile
| | +- org.jvnet.jaxb2_commons:jaxb2-basics-runtime:jar:0.6.4:compile
| | +- openaccess:comFidessaInf:jar:3.0.1:compile
| | +- org.springframework.boot:spring-boot-starter-validation:jar:1.5.3.RELEASE:compile
| | | +- org.springframework.boot:spring-boot-starter:jar:1.5.3.RELEASE:compile
| | | | +- org.springframework.boot:spring-boot:jar:1.5.3.RELEASE:compile
| | | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.5.3.RELEASE:compile
| | | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.3.RELEASE:compile
| | | | | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
| | | | | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
| | | | \- org.yaml:snakeyaml:jar:1.17:runtime
| | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.14:compile
| | | \- org.hibernate:hibernate-validator:jar:5.3.5.Final:compile
| | | \- com.fasterxml:classmate:jar:1.3.3:compile
| | \- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.3.RELEASE:compile
| | +- org.springframework.boot:spring-boot-starter-aop:jar:1.5.3.RELEASE:compile
| | | \- org.aspectj:aspectjweaver:jar:1.8.10:compile
| | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.5.3.RELEASE:compile
| | +- org.hibernate:hibernate-core:jar:5.0.12.Final:compile
| | | +- antlr:antlr:jar:2.7.7:compile
| | | \- org.jboss:jandex:jar:2.0.0.Final:compile
| | +- org.springframework.data:spring-data-jpa:jar:1.11.3.RELEASE:compile
| | | +- org.springframework.data:spring-data-commons:jar:1.13.3.RELEASE:compile
| | | \- org.springframework:spring-orm:jar:4.3.8.RELEASE:compile
| | \- org.springframework:spring-aspects:jar:4.3.8.RELEASE:compile
| +- org.springframework:spring-core:jar:4.3.8.RELEASE:compile
| +- org.springframework:spring-test:jar:4.3.8.RELEASE:compile
| +- org.springframework:spring-jdbc:jar:4.3.8.RELEASE:compile
| +- org.springframework:spring-beans:jar:4.3.8.RELEASE:compile
| +- org.hsqldb:hsqldb:jar:2.3.3:compile
| +- commons-dbcp:commons-dbcp:jar:1.4:compile
| | \- commons-pool:commons-pool:jar:1.6:compile
| +- com.oracle:ojdbc7:jar:12.1.0.2:compile
| \- de.jpdigital:hibernate5-ddl-maven-plugin:jar:1.0.0:compile
| +- org.apache.ma
java.lang.NoSuchMethodError 当我们调用不在类中退出的方法时出现。
与运行该方法时所使用的方法不同,您很可能已针对缺少该方法的该方法的不同版本编译了一个类。
在您的情况下,正在类中调用getUri()方法,而org.eclipse.jetty.server.Request该类在版本9中不再存在。在版本9中,它被称为getHttpURI()。
http://www.eclipse.org/jetty/javadoc/current/org/eclipse/jetty/server/Request.html
| 归档时间: |
|
| 查看次数: |
6410 次 |
| 最近记录: |