Hi Feltros
Did you manage to solve this problem as I have exactly the same issue.
Everything works absolutely fine on my machine, then I move the entire
build folder to a server, and then:
com.google.gwt.user.client.rpc.StatusCodeException:
Not Found
The requested URL /dpb24/gwtTest/gwtOutput/com.dan.HelloWorld/
databaseservice was not found on this server.
Apache/1.3.41 Server at people.bath.ac.uk Port 80
I too use eclipse, and the issue arrives:
service.login(formData, new AsyncCallback<String>() {
public void
onFailure(Throwable caught) {
MessageBox.alert(caught.toString());
//MessageBox.alert("Error", "Error while trying to login");
}
public void
onSuccess(String s) {
MessageBox.alert("Success", "Now Logged In");
initialPanel.hide();
//createComponentMain(s);
mainView(s);
}
});
All the server is doing is connecting to mysql database using
public String login(Map formData) throws Exception{
Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:mysql://...
All I did was add the mysql-connector-java-5.1.7-bin.jar to the
eclipse build path and all works fine on my machine.
The contents of my web.xml is as follows:
<?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">
<display-name>
WorkingWithGwtExt</display-name>
<servlet>
<servlet-name>DatabaseService</servlet-name>
<servlet-class>
com.dan.server.DatabaseServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DatabaseService</servlet-name>
<url-pattern>/databaseservice</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
Any help from anyone would be most appreciated
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---