Gwt platform, Error 404 dispatch not found, remote procedure call.

144 views
Skip to first unread message

ро ор

unread,
Oct 2, 2014, 7:46:12 AM10/2/14
to gwt-pl...@googlegroups.com

Hello everyone

 

Perhaps it can be easy newbie question for most of you. But for me it’s really difficult, because I’m in the web programming.

I’m going through this manual about gwt platform http://uptick.com.au/content/getting-started-gwt-platform-part-2

But I have encountered with a problem.

When I start MyGwtpApp – it starts, but if you press the button “send” – the error appears:

Sending name to the server:

GWTP
%20User

Server replies:

An error occured: 404

HTTP ERROR
: 404

NOT_FOUND

RequestURI=/dispatch/


I find this https://code.google.com/p/gwt-platform/issues/detail?id=257 , but there is no solution there.

I don’t understand how to fix it, I don’t even understand how to debug it.

So please, help me, I will be glad if you give me any piece of advice. 

Kasoma Fredrick

unread,
Oct 2, 2014, 7:56:42 AM10/2/14
to gwt-pl...@googlegroups.com
post me yo web xml configuration
and yo dispatch xml

--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Wallis

unread,
Oct 2, 2014, 8:05:35 AM10/2/14
to gwt-pl...@googlegroups.com
Hi po op

Welcome to GWTP.  I don't think Kasoma's advice is helpful in this instance.

I've checked out the sample app from the tutorial and I'm guessing that you're having trouble because it's a bit out of date but I'll see if I can get it working.

If you're running eclipse Luna, you can use the GWTP plugin (http://arcbees.github.io/gwtp-eclipse-plugin/) and it's create project wizard to create a good sample app to try out. It's very new and we're working on the documentation so if you have trouble with it ask a question here and we'll use your question to make it better.





--

Richard Wallis

unread,
Oct 2, 2014, 8:21:13 AM10/2/14
to gwt-pl...@googlegroups.com
Ok I tried the sample app, as suspected it's very dated so I recommend not using it as a base.

The project created by the eclipse plugin does not have a sample dispatch call at the moment.  I'll add that later this afternoon.  But if you're new to GWTP it's probably best to first work out how the Presenters bind together before worrying about dispatching things.  You can use the New Presenter wizard in the plugin to get a sense of the different types of presenters and how they work together.

If you're trying to learn about dispatchers you can check out https://github.com/rdwallis/alice/ and see how the FetchChapterAction, FetchChapterResponse and FetchChapterHandler objects are wired together and called from the dispatcher.

ро ор

unread,
Oct 2, 2014, 10:15:19 AM10/2/14
to gwt-pl...@googlegroups.com

Thanks for the answers.

 

The thing is it’s my test to become java intern. And it’s is my only chance for the moment. So despite I think it is very strange task for the employment, I have to make it work.

The test is to make 7 steps:

http://uptick.com.au/content/serendipity-working-gwt-platform-and-smartgwt

but I can’t make first step “Create a GWTP starter project” because of the 404 error.

I have used eclipse 4.4 (luna), and kepler (4.3) and have taken the same results.

I installed google plugin from this place https://developers.google.com/eclipse/docs/getting_started?hl=ru

I also have tried different versions of GWT SDK. MyGwtpApp works the way I have described above with GWT SDK 2.1.0, 2.1.1. The application don’t work at all with GWT versions: 2.0.4 or less, 2.2.0 or more.

 

Probably I need to use old versions of Eclipse and Google Plugin. If you know that, tell me, please.

 

To Kasoma Fredrick

 

The file is located au.org.upstick.mygwtpapp

MyGwtpApp.gwt.xml

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

<module rename-to='mygwtpapp'>

 
<!-- Inherit the core Web Toolkit stuff.                        -->

 
<inherits name='com.google.gwt.user.User'/>

   
<!-- Inherit the default GWT style sheet.  You can change       -->

 
<!-- the theme of your GWT application by uncommenting          -->

 
<!-- any one of the following lines.                            -->

 
<inherits name='com.google.gwt.user.theme.standard.Standard'/>

 
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->

 
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

 
<!-- Other module inherits                                      -->

 
<inherits name='com.gwtplatform.mvp.Mvp' />

 
<inherits name='com.gwtplatform.dispatch.Dispatch' />

 
<!-- Specify the app entry point class.                         -->

 
<entry-point class='au.org.uptick.mygwtpapp.client.MyGwtpApp'/>

 
<!-- Specify the paths for translatable code                    -->

 
<source path='client'/>

 
<source path='shared'/>

 
<!-- Set user agents                                                                        -->

 
<set-property name="user.agent" value="gecko1_8"/>      

 
<!-- In any real-world application, you will define at least    -->

 
<!-- one locale in addition to the default locale.                      -->

 
<extend-property name="locale" values="en"/>    

 
<define-configuration-property name="gin.ginjector"

     
is-multi-valued="false" />

 
<set-configuration-property name="gin.ginjector"

     
value="au.org.uptick.mygwtpapp.client.gin.MyGinjector" />

</module>


 

Com.gwt.platform.dispatch

Dispatch.gwt.xml

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

<!--

   Copyright 2010 Gwt-Platform

   Licensed under the Apache License, Version 2.0 (the "License");

   you may not use this file except in compliance with the License.

   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software

   distributed under the License is distributed on an "AS IS" BASIS,

   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

   See the License for the specific language governing permissions and

   limitations under the License.

-->


<module>

 
<!-- Inherit the core Web Toolkit stuff.                        -->

 
<inherits name='com.google.gwt.user.User'/>

 
<!-- Specify the paths for translatable code                    -->

 
<source path='client'/>

 
<source path='shared'/>

</module>

Richard Wallis

unread,
Oct 2, 2014, 10:27:02 AM10/2/14
to gwt-pl...@googlegroups.com
I'm guessing at this but the 404 error may be a relative path problem:

In DispatchServletModule replace "/mygwtpapp/" with "/" and see if that fixes your issue.

ро ор

unread,
Oct 2, 2014, 10:47:53 AM10/2/14
to gwt-pl...@googlegroups.com
Thank you a lot. It worked.
Reply all
Reply to author
Forward
0 new messages