Hi Luca, First of all you should try to update your "servlet api" version to 2.4
To to so remove the DTD and put this as your web.xml root: <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> Reference: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3527523d5d0cbdf4/b775ccb036438d62 On Fri, Oct 10, 2008 at 12:48 PM, Lukiep <[EMAIL PROTECTED]> wrote: > > Hi, I'm trying to deploy my application in Apache Tomcat. > > I generated the file and classes but when I put their in the Tomcat > directory (WebInf/lib e classes) the servlet doesn't work. > > My web.xml is > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web > Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> > <web-app id="WebApp_ID"> > <display-name>MatrioSCA</display-name> > <servlet> > <servlet-name>MatrioscaCore</servlet-name> > <servlet-class> > it.kiepsiol.webproj.server.MatrioscaCoreImpl</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>MatrioscaCore</servlet-name> > <url-pattern>/MatrioscaCore</url-pattern> > </servlet-mapping> > <welcome-file-list> > <welcome-file>MatrioSCA.html</welcome-file> > </welcome-file-list> > </web-app> > > The home page is MatrioSCA.html > > the folder structure is (in webapps/MatrioscaCore): > / all HTML and JS file > /WEB-INF/lib/ GWT-Servlet.jar and other JAR file > /WEB-INF/classes/it/kiepsiol/webproj/server/ MatrioscaCoreImpl.class > (the servlet) > > The project work in GWT Hosted browser but not in tomcat, always > "Login Fallito". > > The function in GWT code is: > > public static void sendLogin(String xmlString){ > MatrioscaCoreAsync instance = (MatrioscaCoreAsync) > GWT.create(MatrioscaCore.class); > ServiceDefTarget target = (ServiceDefTarget) instance; > String moduleURL = GWT.getModuleBaseURL() + "MatrioscaCore"; > target.setServiceEntryPoint(moduleURL); > AsyncCallback callBack = new AsyncCallback(){ > > > public void onFailure(Throwable arg0) { > com.google.gwt.user.client.Window.alert("Login Fallito"); > } > > > public void onSuccess(Object arg0) { /*Cod of the right > program */ } > > }; > instance.sendRequest(xmlString, callBack); > } > > Which is the problem? > Thanks Luca > > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---