Have you set up your web.xml file properly for deployment? Search group for web.xml for loads of posts about that if not, otherwise post your web.xml for help.
On Jan 24, 4:49 am, Feltros <[email protected]> wrote: > Some help would be much appreciated. > > On Jan 17, 6:25 am, Feltros <[email protected]> wrote: > > > Overview: > > Having uploaded all the compiled files (which run fine in hosted and > > compiled modes on my PC) to an Apache server, the front side no longer > > seems able to reach the server side servlets (and their mappings as > > stated in the main .gwt.xml file). > > > Points to make clear firstly: > > The server cannot be at fault, my colleague has implemented his own > > GWT project on exactly the same server using server side code and it > > runs perfectly. We have looked over every millimetre of code and the > > directory structures etc and they match perfectly so I am assuming its > > something I do in the compiling phase or something to do with my build > > path? > > > Secondarily, I do not have a project-compile.cmd or project-shell.cmd > > or project.launch file since I was creating a GXT (its a widget > > library) application and was compiling/running through eclipse > > (possibly incorrectly hence why things haven't worked?) > > > Mappings are as such: > > <servlet path="/service" class="com.BTI.server.ServerImpl" /> > > <servlet path="/albumUpload" class="com.BTI.server.AlbumUpload" /> > > <servlet path="/picture" class="com.BTI.server.Picture" /> > > > The problem reveals itself when I do the following: > > service = (ServerAsync) Registry.get("server"); > > service.fillUserData(unfilled, new AsyncCallback<UserData>(){ > > > public void onFailure(Throwable caught) { > > LoginDialog.this.retry("Server error"); > > Info.display("Error",caught.getMessage()); > > } > > public void onSuccess(UserData result) { > > //Other things > > }}); > > > Now I am receiving the error (onFailure(Throwable caught)): > > The requested URL /myDomain/MyProject/www/com.BTI.Root/service was not > > found on this server. > > > From what I can tell, any calls to com.BTI.root/* go to the tomcat > > directory and are then mapped to > > com.google.gwt.dev.shell.GWTShellServlet by web.xml under tomcat/ > > webapps/ROOT/WEB-INF so if it handles the client side script running > > fine then why does it fail for the server side? > > > Do I need the gwt-servlet.jar to be included to get servlets to run? > > Is there some special case for this jar? I've read multiple documents > > on how it needs to be in web-inf/lib for servlets to run, but this is > > not the case on my colleagues project which works fine. > > > My classpath/buildpath: > > jre > > /src > > /bin > > GWT1.5.3 (gwt-user.jar and gwt-dev-windows.jar) > > GXT1.2.1 > > Commons-IO > > Commons-fileupload > > MysqlConnector > > > Basically it would appear my servlets aren't being initialised or > > correctly mapped to. Has anyone else encountered this problem and know > > a solution? > > > Could it be that my server side is having trouble finding one of its > > imports (such as the mysqlconnector - which is the only import used in > > the login handler which is giving me all the trouble at the moment)? > > > Thanks kindly to anyone who can help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
