Tuesday, February 23, 2021

Re: GWT 2.9, java 11, tomcat 10.0.2 - standard gwt example having RPC error, 404

Indeed, this is a result of the Jakarta EE fiasco.

From https://tomcat.apache.org/download-10.cgi:
"Users of Tomcat 10 onwards should be aware that, as a result of the move from Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse Foundation, the primary package for all implemented APIs has changed from javax.* to jakarta.*. This will almost certainly require code changes to enable applications to migrate from Tomcat 9 and earlier to Tomcat 10 and later."

So, yes, Tomcat 10 (servlet 3) is definitely not a drop-in replacement for Tomcat 9 or earlier (servlet 2.x)
On Tuesday, February 23, 2021 at 8:57:09 AM UTC+1 Michel Pikkaart wrote:
I solved my problem. I installed tomcat on my Debian server and everything works.....when I checked I installed Tomcat version 9 with JDK 11. 
There are major versions difference between Tomcat 9 and 10 on the Servlet SpecJSP, SpecEL, SpecWebSocket, SpecAuthentication and (JASIC) Spec. See http://tomcat.apache.org/whichversion.html
My guess GWT won't work on the most modern specs of Tomcat 10.
I could find info on gwtproject site about these specifications or I overlooked this kind of info.

gr Michel

Op dinsdag 23 februari 2021 om 05:53:01 UTC+1 schreef Craig Mitchell:
It looks like you've done everything correctly to me.   Maybe try naming your war ROOT.war, so the RPC post will go directly to /banana/greet (no fruit), removing any possible errors with tomcats war mappings.

On Tuesday, 23 February 2021 at 4:03:02 am UTC+11 m.conr...@gmail.com wrote:

On Mon, Feb 22, 2021 at 8:49 AM 'Michel Pikkaart' via GWT Users <google-we...@googlegroups.com> wrote:
Thank you for reading. I tried for serveral days but I cannot find why this is going wrong.

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.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.9.0//EN"
<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"/>

<?xml version="1.0" encoding="UTF-8"?>

Java interface..
package local.appletree.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
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-tool...@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.

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/da7cfccb-0e4c-46bf-b7d7-fc6a06cce764n%40googlegroups.com.

No comments:

Post a Comment