Hi db_the_geek,
Did you remember to create a new module XML file for MyServiceDepends, and
reference that module XML file from within your MyService module XML file?
If not, you'll have to create the MyServiceDepends module XML file and
define the <source> tags referencing the translatable code (you can also
omit these tags since MyService is in the 'client' directory, which is the
GWT compiler uses as a default to find translatable source), and add the
<inherits> tag in your MyService module XML file referencing the
MyServiceDepends module XML file.

Hope that helps,
-Sumit Chandel

On Thu, Aug 20, 2009 at 9:35 AM, db_the_geek <[email protected]> wrote:

>
> hi,
>
> I am playing around with different ways of packaging GWT projects and
> integrating with other technologies.
>
> I had an old demo seam app lying around that i decided to integrate a
> gwt client with.
>
> My initial packaging worked something as follows:
> gwt client is compiled and packaged into a war file, which is then
> bundled into an EAR with the server EJB components. Both the EJB
> source tree and the GWT source tree had the same interfaces in it. The
> IDE and the build environment build the gwt seperately to the ejb.
>
> e.g. interface is
> EJB:
> ejbModule/com/mycompany/web/client/module/MyService & MyServiceAsync
>
> GWT:
> gwtModule/com/mycompany/web/client/module/MyService & MyServiceAsync
>
> This worked fine and was able to deploy the application and have full
> functionality. But maintaining the code between gwt and ejb was manual
> with this, so I want to move all interfaces to a dependancy package
>
> new project: MyServiceDepends/src/com/mycompany/web/client/module/
> MyService & MyServiceAsync
> MyServiceDepends is compiled and packaged into a jar and added to the
> classpath for the EJB, as well as deployed to the app server (no
> problems here).
>
> The java src tree for MyServiceDepends is added to the gwt compiler
> classpath:
> com/mycompany/web/client/module/MyService.java & MyServiceAsync.java
> are packaged in a jar file and the jar file is added to cp.
>
> The GWT widget I am building uses the service as follows:
> line 10: MyServiceAsync myService = GWT.create(MyService.class);
>
>
> When I try GWTCompile, I get errors:
> [ERROR] Line 10: Rebind result
> 'com.mycompany.web.client.module.MyService' must be a class
>
>
> I have tried using a) only the compiled jar (contain classes) b) only
> src-jar (contain java code) and c) both on the classpath for
> GWTCompile, but always get this error.
>
> Have also tried adding /path/to/src/dir to the classpath, in which com/
> mycompany/web/client/module/MyService & MyServiceAsync source code is
> saved. to no avail.
>
> In other places within some widgets, i reference classes from src
> jars..
>
> is there something i am doing wrong here?
>
>
> >
>

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