Я делаю некоторые обновления о старом проекте GWT, переходя к javaee 7, gwt 2.7 и т. Д. Однажды из требований нужно перейти к последней Eclipse IDE, Марсу, из старой Juno. Хорошо, я собираюсь обновить весь материал. Теперь я использую java ee 7 и gwt 2.5.1, и я просто обновляюсь от Eclipse Juno до Mars. Все было хорошо, я установил IDE и рабочее пространство. Я могу успешно скомпилировать свои проекты GWT с помощью компиляции GWT. Я спотыкаюсь на странную ошибку, когда пытаюсь запустить/отладить эти проекты. Когда я запускаю мой GWT проект, я вернулся этот стек ошибок:Eclipse Mars и GWT
[WARN] Server class 'com.myapp.libs.client.gwt.server.PassThroughFilter' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/sviluppo/wsmars-r210/MyLibs2.0.0/mylibs.web/target/classes/' to the web app classpath for this session
For additional info see: file:/C:/sviluppo/gwtsdk/gwt-2.5.1/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'com.myapp.libs.client.exception.ServerDelegateException' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/sviluppo/wsmars-r210/MyApp2.0.0/myapplibs.ejb/target/classes/' to the web app classpath for this session
For additional info see: file:/C:/sviluppo/gwtsdk/gwt-2.5.1/doc/helpInfo/webAppClassPath.html
[WARN] Server resource 'log4j.properties' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Users/SIGMA6/.m2/repository/org/jboss/jbossts/jbossjts/4.16.2.Final/jbossjts-4.16.2.Final.jar' to the web app classpath for this session
For additional info see: file:/C:/sviluppo/gwtsdk/gwt-2.5.1/doc/helpInfo/webAppClassPath.html
log4j:WARN No appenders could be found for logger (com.myapp.libs.client.gwt.server.PassThroughFilter).
log4j:WARN Please initialize the log4j system properly.
[WARN] Server class 'com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/Users/SIGMA6/.m2/repository/com/allen-sauer/gwt/log/gwt-log/3.1.8/gwt-log-3.1.8.jar' to the web app classpath for this session
For additional info see: file:/C:/sviluppo/gwtsdk/gwt-2.5.1/doc/helpInfo/webAppClassPath.html
[WARN] Server class 'com.myapp.shared.utility.StrMD5' could not be found in the web app, but was found on the system classpath
[WARN] Adding classpath entry 'file:/C:/sviluppo/wsmars-r210/JSharedP1.2.0.2/target/classes/' to the web app classpath for this session
For additional info see: file:/C:/sviluppo/gwtsdk/gwt-2.5.1/doc/helpInfo/webAppClassPath.html
[WARN] /MyApp.jsp
java.lang.IllegalStateException
at org.apache.jasper.JspCompilationContext.<init>(JspCompilationContext.java:132)
at org.apache.jasper.servlet.JspServletWrapper.<init>(JspServletWrapper.java:96)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
at com.myapp.libs.client.gwt.server.PassThroughFilter.doFilter(PassThroughFilter.java:403)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
[ERROR] 500 - POST /MyApp.jsp?gwt.codesvr=127.0.0.1:9997&idSlot=000000001&SID=d2c9ebf6d218c4a5a66aa31f7ca7fd4f43 (127.0.0.1) 3439 bytes
Request headers
Host: 127.0.0.1:8888
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: JSESSIONID=1wyeek4kpnx2v
Connection: keep-alive
Referer: http://127.0.0.1:8888/startup.html?gwt.codesvr=127.0.0.1:9997
Content-Type: application/x-www-form-urlencoded
Content-Length: 125
Response headers
Set-Cookie: JSESSIONID=f7432bsuk10z;Path=/
Content-Type: text/html; charset=iso-8859-1
Content-Length: 3439
Я использую затмение Марс, GWT 2.5.1, JavaEE 7. Конечно, я что-то неправильно настроил, но не могу угадать, что.
ОБНОВЛЕНИЕ: Я забыл упомянуть: это проект maven (версия 3.3.3).
'org.mortbay.jetty' - Jetty 6 (или старше). Это поддерживает до Servlet 2.5, часть спецификации JEE5, а не JEE7. –