Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Servlet映射在使用spring4gwt库时指定未知的Servlet名称_Spring_Servlets_Gwt_Mapping - Fatal编程技术网

Servlet映射在使用spring4gwt库时指定未知的Servlet名称

Servlet映射在使用spring4gwt库时指定未知的Servlet名称,spring,servlets,gwt,mapping,Spring,Servlets,Gwt,Mapping,我试图使用spring4gwt-0.0.1.jar库集成GWT和Spring,但出现以下错误: Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name springGwtRemoteServiceServlet at org.apache.catalina.core.StandardContext.addServletMapping(StandardConte

我试图使用spring4gwt-0.0.1.jar库集成GWT和Spring,但出现以下错误:

Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name springGwtRemoteServiceServlet
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3275)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3254)
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1430)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1344)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
My web.xml

    <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         id="WebApp_ID" version="2.5">

    <display-name>TelephoneBook</display-name>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring/application-config.xml</param-value>
    </context-param>

    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>    

    <servlet>
        <servlet-name>springGwtRemoteServiceServlet</servlet-name>
        <servlet-class>org.spring4gwt.server.SpringGwtRemoteServiceServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>>springGwtRemoteServiceServlet</servlet-name>
        <url-pattern>/TelephoneBook/springGwtServices/*</url-pattern>
    </servlet-mapping>

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

</web-app>

电话簿
上下文配置位置
类路径:spring/application-config.xml
org.springframework.web.context.ContextLoaderListener
springGwtRemoteServiceServlet
org.spring4gwt.server.SpringGwtRemoteServiceServlet
1.
>springGwtRemoteServiceServlet
/电话簿/SpringWtServices/*
TelephoneBook.html

怎么了?提前谢谢

这里
>springGwtRemoteServiceServlet
你有一个
太多了。这是一个复制错误吗?(在开始servlet名称标记后

没错!我怎么可能没有注意到?非常感谢!没错!我怎么可能没有注意到?非常感谢!