How to deploy a GWT application for Tomcat

I searched this site to answer this question and could not find a solution. what I did is that I just compress the military directory in my GWT eclipse application project and then rename it to .war, then drag it to the tomcat webapps folder. when I launch the web application, the first screen displays successfully, but when I call the servlet inside my src code, it gives me a resource not found by the tomcat server. I'm sure I added an entry for the servlet in the web.xml file and the application worked fine when I ran it in eclipse gwt dev mode. something prevents my servlets (standard servlets, not GWT RPC servlets) from being found and executed by tomcat. what could be the reason?


UPDATE

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>

  <!-- Servlets -->

  <servlet>
        <servlet-name>OAuth</servlet-name>
        <servlet-class>org.goauth.server.OAuthServlet</servlet-class>

    </servlet>
    <servlet-mapping>
        <servlet-name>OAuth</servlet-name>
        <url-pattern>/goauth/oauth</url-pattern>
    </servlet-mapping>
     <servlet>
        <servlet-name>OAuthCallback</servlet-name>

        <servlet-class>org.goauth.server.OAuthCallbackServlet</servlet-class>

    </servlet>
    <servlet-mapping>
        <servlet-name>OAuthCallback</servlet-name>
        <url-pattern>/goauth/callback</url-pattern>
    </servlet-mapping>
    <servlet>
        <servlet-name>service</servlet-name>

        <servlet-class>org.goauth.server.OAuthServiceImpl</servlet-class>

    </servlet>
    <servlet-mapping>
        <servlet-name>service</servlet-name>
        <url-pattern>/goauth/service</url-pattern>
    </servlet-mapping>
    <servlet>
        <servlet-name>OAuthConfirm</servlet-name>
        <servlet-class>org.goauth.server.OAuthConfirmServlet</servlet-class>

    </servlet>
    <servlet-mapping>
        <servlet-name>OAuthConfirm</servlet-name>
        <url-pattern>/goauth/confirm</url-pattern>
    </servlet-mapping>
  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>GOAuth.html</welcome-file>
  </welcome-file-list>    
</web-app>

Error

tomcate :

HTTP Status 404 - /goauth/oauth

type Status report

message /goauth/oauth

description The requested resource (/goauth/oauth) is not available.
Apache Tomcat/6.0.20
+5
3

: URL- : "/goauth/OAuth" gwt eclipse dev, tomcat. , url, , :

String href = GWT.getHostPageBaseURL()+"goauth/OAuth";

tomcat url, url GWT.getHostPageBaseURL().

+4

/Goauth/OAuth to/OAuth

0
source

All Articles