gpt4 book ai didi

tomcat - Reslet 与 GWT 和 Tomcat 错误

转载 作者:行者123 更新时间:2023-11-28 23:54:19 26 4
gpt4 key购买 nike

我在启动时收到此错误我正在使用 GWT 2.0.3 和 Reslet RC3

type Exception report 

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet adapter threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)


root cause

java.lang.NoSuchMethodError: org.restlet.Client.handle(Lorg/restlet/Request;)Lorg/restlet/Response;
org.restlet.ext.servlet.ServerServlet.createComponent(ServerServlet.java:423)
org.restlet.ext.servlet.ServerServlet.getComponent(ServerServlet.java:763)
org.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:881)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)

我的 web XML 如下:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>

<context-param>
<param-name>org.restlet.clients</param-name>
<param-value>CLAP FILE WAR</param-value>
</context-param>

<servlet>
<servlet-name>adapter</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param>
<param-name>org.restlet.application</param-name>
<param-value>com.tdc.Propspace.server.TestServerApplication</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>adapter</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

</web-app>

有什么想法会导致这种情况吗?

最佳答案

看起来不同版本或版本的 ReSTLet JAR 混在一起了。

关于tomcat - Reslet 与 GWT 和 Tomcat 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2785889/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com