The gwt.xml is for the gwt framework & is used, I believe, during the
compilation phase so that the compiler generates the appropriate RPC
calls & knows how to compile your code.
How are you planning on running your app in hosted mode through
compiled javascript deployed in tomcat? Contradiction. Either you
run in hosted mode where GWT uses javascript magic to communicate with
special wrapper code that interfaces the browser with your code
running in a real JVM, or you trully compile the code into javascript
& have the browser execute the code natively.
The servlet mapping has absolutely nothing to do with the above
(except for it having to match up with the client code). It informs
the application server (Tomcat in your example) how to configure the
server-side code.
So what you've done in your example is redirected all HTTP
communication targetted at your server to GWTShellServlet. What you
probably want is:
<servlet>
<servlet-name>shell</servlet-name>
<servlet-
class>vCarePortal.server.DiscussionBoardServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>shell</servlet-name>
<url-pattern>DicussionBoard/DiscussionBoardServices</url-pattern>
</servlet-mapping>
the url-pattern, I believe, should be modulename/path-set-up-in-client-code
I haven't used the old tomcat set up in a long time, so your mileage
may vary (but the above seems right & pretty close to the 1.6
configuration).
On Sun, Apr 5, 2009 at 5:37 AM, Cryssyenddo <[email protected]> wrote:
>
> Do you mean this part?:
>
> <servlet>
> <servlet-name>shell</servlet-name>
> <servlet-
> class>com.google.gwt.dev.shell.GWTShellServlet</servlet-class>
> </servlet>
>
> I was wondering if changed these mapping, would be able to test run my
> GWT app in hosted mode?
>
>
> On the other hand, I thought i just need to point to my RPC class in
> my module xml as in like eg. my module name is DiscussionBoard, so i
> did this in my "DicussionBoard.gwt.xml":
>
> <module>
>
> <!-- Inherit the core Web Toolkit stuff.
> -->
> <inherits name='com.google.gwt.user.User'/>
>
> <!-- Specify the app entry point class.
> -->
> <entry-point class='vCarePortal.client.DiscussionBoard'/>
>
> <!-- Specify the remote services path
> -->
> <servlet path="/DiscussionBoardServices"
> class="vCarePortal.server.DiscussionBoardServiceImpl" />
>
> <!-- Specify the application specific style sheet.
> -->
> <stylesheet src='DiscussionBoard.css' />
>
>
>
> </module>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---