I think you need to (or, anyway, I need you to) take a step back and explain
what you are trying to achieve here.
Why do you need two projects? The usual reason is that you need to reuse
code and widgets from the included project in two or more others (e.g. you
are building a framework of some kind, or want to use some widgets you have
developed in more than one top-level project.

Ian

http://examples.roughian.com


2009/10/15 RSN <romeo.sanc...@gmail.com>

>
> I am kind of new with GWT, and I was hoping someone could clarify my
> following questions, or at least point me out to some light. Thanks
> for any help.
>
> The setting is as follows:
>
> - Eclipse 3.4.2 , GWT 1.7.1 and plugin.
>
> - Created two basic GWT modules with GWT Plugin under Eclipse. Both
> are just copies of the GreetService application that gets generated by
> default when you create a new GWT project using the plugin Wizard.
>
> The modules are:
> -Security
> -Main
>
> The Main module is going to inherit the Security one. So, I modified
> the Main.gwt.xml file to inherit the security module.
> <inherits name='org.security.Security'/>
>
> In addition to this, Eclipse complained about the build path for the
> Main module when I did this change. So, I had to add the Security
> module as a "Required project on the build path" of the Main module.
> This step removed any problems in compilation time.
>
> So, I proceed to run the Main module. When, I ran the project, only
> one single Hosted-mode browser window opened. And, these are the
> problems encountered:
>
> - The single browser window contained elements (buttons, textboxes,
> etc) from both of the modules. So, I could see all html elements in a
> single window.
>
> First questions:
> Is this the desired behavior?
> Can we open more than one browser window, one per each module that has
> an entrypoint and refers to a html page?
> Is there a way to let each module know on which port each application
> will run? In other words, both of the modules are running in
> localhost, but I would like to set them to run in different ports such
> that there is no conflict.
>
> Then, I proceed to test the functionality of the elements in the
> single browser window. I clicked the button of the Main application
> that greets the Server. It worked well. No problems.
> Then, I clicked in the second button from the Security module to make
> an RPC to the server, and it got the default message: "An error
> occurred while attempting to contact the server. Please check network
> connection ..."
> I am guessing that the Server side of the Security module did not load
> because of the port issue. Is this true, or is there something else
> that I am missing?
>
> I get in the Hosted Mode Window also the following:
> 404 - POST /main/greet (127.0.0.1) 1396 bytes
>
> I notice that the main module do not have a "greet" servlet (since I
> refactored it). However, the Security module kept that servlet name,
> should not be /security/greet instead?, where is the application
> getting confused? Why the call is going to the main servlet to look
> for the "greet" service instead of going to the Security module
> servlet services?
>
> Is this feasible? I mean, can we debug and test functionality of cross
> referenced GWT modules/projects in Eclipse?
> I am a newbie, so is there somewhere a discussion, tutorial,
> documentation that I am missing?
>
> Thanks,
> p.s. Hope I could put some small images to better illustrate the
> issues.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to