Check ur url pattern it seems incomplete...
On Thu, Jul 21, 2011 at 11:21 PM, ph09 <[email protected]> wrote:
> Hello,
>
> sry I am newbie to this Topic. I have searched the whole day for a
> solution, but I can't find the problem.
> I've tried a lot, without any bettering. Hope you can help me.
>
> When I tried to call a RPC Service, I get always this Message:
> [WARN] No file found for: /kuss_projekt/SpeicherService
>
> Thats my source code:
>
> web.xml:
> <web-app>
>
> <servlet>
> <servlet-name>SpeicherService</servlet-name>
> <servlet-class>de.fhdo.kuss.server.SpeicherServiceImpl</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>SpeicherService</servlet-name>
> <url-pattern>/SpeicherService</url-pattern>
> </servlet-mapping>
>
> <!-- Default page to serve -->
> <welcome-file-list>
> <welcome-file>Kuss_Projekt.html</welcome-file>
> </welcome-file-list>
>
> </web-app>
>
> -
>
> Kuss_Projekt.gwt.xml:
> <module rename-to='kuss_projekt'>
> <!-- 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.clean.Clean' />
> <!--<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 -->
>
> <!-- Specify the app entry point class. -->
> <entry-point class='de.fhdo.kuss.client.Kuss_Projekt' />
>
> <!-- Specify the paths for translatable code -->
> <source path='client' />
> <source path='shared' />
>
> </module>
>
> -
>
> Speicherservice:
> @RemoteServiceRelativePath("SpeicherService")
> public interface SpeicherService extends RemoteService {
>
> String getName(String name);
>
> public static class Util {
> private static SpeicherServiceAsync instance;
> public static SpeicherServiceAsync getInstance(){
> if (instance == null) {
> instance = GWT.create(SpeicherService.class);
> }
> return instance;
> }
> }
> }
>
> -
>
> SpeicherServiceAsync:
> public interface SpeicherServiceAsync {
>
> void getName(String name, AsyncCallback<String> callback);
>
> }
>
> -
>
> SpeicherServiceImpl:
> public class SpeicherServiceImpl extends RemoteServiceServlet implements
> SpeicherService {
>
> @Override
> public String getName(String name) {
> return("Server meldet sich " + name);
> }
> }
>
> -
>
> Test():
> public void test() {
> AsyncCallback<String> callback = new AsyncCallback<String>() {
>
> @Override
> public void onFailure(Throwable caught) {
> // TODO Auto-generated method stub
> }
>
> @Override
> public void onSuccess(String result) {
> Window.alert(result);
> }
> };
>
> SpeicherService.Util.getInstance().getName("test",callback);
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/JeNzul1toOEJ.
> 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.
>
--
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.