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