javax.servlet.UnavailableException:GWTCommandServiceImpl不是javax.servlet.Servlet

时间:2016-10-17 10:31:20

标签: java spring servlets gwt jetty

我在一个项目上工作并将GWT版本从2.3升级到2.7,因此将servlet-api从2.4升级到3.1,从3.0升级到4.3.3,将jetty从6升级到8或9等等。 (我使用maven 3.2.5和Java 1.7.0_71和Intellij)

<cglib.version>2.2</cglib.version>
<jasypt.version>1.7</jasypt.version>
<jstl.version>1.2</jstl.version>
<standard.taglibs.version>1.2.5</standard.taglibs.version>
<commons.io.version>2.0</commons.io.version>
<commons.logging.version>1.1.3</commons.logging.version>
<junit.version>4.10</junit.version>
<org.codehaus.groovy.version>1.8.9</org.codehaus.groovy.version>
<hibernate.version>4.3.7.Final</hibernate.version>
<hibernate.ehcache.version>4.3.7.Final</hibernate.ehcache.version>
<bonita-client.version>5.10.2</bonita-client.version>
<slf4j.version>1.7.1</slf4j.version>
<cxf.version>3.0.10</cxf.version>
<asm.version>5.0.4</asm.version>
<opensaml.version>2.6.4</opensaml.version>
<spring.version>4.3.3.RELEASE</spring.version>
<spring.security.version>4.1.3.RELEASE</spring.security.version>
<spring.security.cas.version>4.1.3.RELEASE</spring.security.cas.version>
<servlet.api.version>3.1.0</servlet.api.version>
<jetty.version>9.3.12.v20160915</jetty.version>
<maven.compiler.plugin.version>3.3</maven.compiler.plugin.version>
<gwt.test.utils.version>0.47</gwt.test.utils.version>
<gwt.test.utils.gxt.version>0.46</gwt.test.utils.gxt.version>
<jaxws.maven.plugin.version>2.4.1</jaxws.maven.plugin.version>

此外,在gwt.xml文件中有一个先前有效的servlet标记:

<servlet path='/CommandService' class='...GWTCommandServiceImpl' />

当我运行gwt服务器(DevMode)时,这显示异常

javax.servlet.UnavailableException: Servlet class GWTCommandServiceImpl is not a javax.servlet.Servlet

我的GWTCommandServiceImpl类:

public class GWTCommandServiceImpl implements GWTCommandService

和GWTCommandService:

@RemoteServiceRelativePath("CommandService")
@WebService
public interface GWTCommandService extends RemoteService

RemoteService is com.google.gwt.user.client.rpc.RemoteService

任何人都可以帮助我吗?

0 个答案:

没有答案