Hi gerry,
The most likely cause for this problem is that your hosted mode launch
configuration is referring to the old GWTShell instead of the new HostedMode
class to start hosted mode. You should double-check that the launch config
includes the GWT 1.7.0 JARs on the classpath and uses
com.google.gwt.dev.HostedMode as the main class instead of
com.google.gwt.dev.GWTShell.

Let us know if that solves the issue.

Hope that helps,
-Sumit Chandel

On Fri, Jul 31, 2009 at 8:51 AM, gerry <[email protected]> wrote:

>
> Hello all,
> I can't workaround this problem for days, and I have read the
> documentation and the getting started example and searched this forum
> but I still can't find a solution.
>
> When I try to run my application in hosted mode i get this:
> Cannot find resource 'something' in the public path of module
> 'queryinterface'
>
> And on the development shell:
> [TRACE] The development shell servlet received a request for
> 'something' in module 'queryinterface.gwt.xml'
> [WARN] Resource not found: something; (could a file be missing from
> the public path or a <servlet> tag misconfigured in module
> queryinterface.gwt.xml ?)
>
> My web.xml file looks like this:
> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org
> .....
>  <!-- Servlets -->
>  <servlet>
>    <servlet-name>MyServiceImpl</servlet-name>
>    <servlet-class>com.diplomatiki.mypackage.server.MyServiceImpl</
> servlet-class>
>  </servlet>
>
>  <servlet-mapping>
>    <servlet-name>MyServiceImpl</servlet-name>
>    <url-pattern>/queryinterface/something</url-pattern>
>  </servlet-mapping>
>
> </web-app>
>
> on the server side, the service is:
> package com.diplomatiki.mypackage.client;
>
> import .....;
>
> @RemoteServiceRelativePath("something")
> public interface MyService extends RemoteService {
>
>        public String myMethod(String s);
>        public String myMethod2 (String Prefixes, String query) ;
> }
>
> and my module .gwt.xml file is:
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><module rename-
> to="queryinterface">
>
>        <!-- Inherit the core Web Toolkit stuff.                  -->
>        <inherits name="com.google.gwt.user.User"/>
>
>        <!-- Inherit the GWTExt Toolkit library configuration.    -->
>        <inherits name="com.gwtext.GwtExt"/>
>
>        <!-- Specify the app entry point class.                   -->
>        <entry-point
> class="com.diplomatiki.mypackage.client.SparqlInterface"/
> >
>
>        <!--<servlet path="/something"
> class="com.diplomatiki.mypackage.server.MyServiceImpl"/> -->
>
>        <stylesheet src="js/ext/resources/css/ext-all.css"/>
>        <script src="js/ext/adapter/ext/ext-base.js"/>
>        <script src="js/ext/ext-all.js"/>
>
> </module>
>
> But when I add the line
> <servlet path="/something"
> class="com.diplomatiki.mypackage.server.MyServiceImpl"/> on the
> module, everything works fine
> But why do I have to do this, since I have istalled gwt 1.7.0? I
> created the project on eclipse as a dynamic web project and I also
> used the gwt-ext library.
>
> Please help, I can't think of anything.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to