I have build a standard Tomcat v10.0.2 server. I have setup my Eclipse with java jdk 11 and using GWT 2.9.0
I Generated the sample code of GWT 2.9.0 with java jdk 11. I compile this succes fully. I deployed the war file to the tomcat server, but then it give me a RPC 404 error.
According to the tutorials which I read on http://gwtproject.org/ this should all be in the right place, right coded...still I got the a 404 error on a RPC call.. which means the service isn't there where it suppose to be.
Could somebody please point me in the right direction...
I already tried. <url-pattern>/local.appletree.Banana/greet</url-pattern> but I have a rename-to in the gwt.xml so banana should be allright.
Thank you in advance Michel.
Banana.gwt.xml
WEB.XML
According to the tutorials which I read on http://gwtproject.org/ this should all be in the right place, right coded...still I got the a 404 error on a RPC call.. which means the service isn't there where it suppose to be.
Could somebody please point me in the right direction...
I already tried. <url-pattern>/local.appletree.Banana/greet</url-pattern> but I have a rename-to in the gwt.xml so banana should be allright.
Thank you in advance Michel.
Banana.gwt.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.9.0//EN"
"http://gwtproject.org/doctype/2.9.0/gwt-module.dtd">
<module rename-to='banana'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
<entry-point class='local.appletree.client.Banana'/>
<source path='client'/>
<source path='shared'/>
<add-linker name="xsiframe"/>
</module> WEB.XML
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee">
<servlet>
<servlet-name>greetServlet</servlet-name>
<servlet-class>local.appletree.server.GreetingServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>greetServlet</servlet-name>
<url-pattern>/banana/greet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Banana.html</welcome-file>
</welcome-file-list>
</web-app>
Java interface..
Java interface..
package local.appletree.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/976b7279-2e77-4842-b96e-efd4c2ee4797n%40googlegroups.com.
No comments:
Post a Comment