Disregard my previous post I figured out what was wrong. Both Jason's jar method and the output folder method work.
I have two different modules in my main project only one of them uses a java references to my dependent project. However in order to get GWT to compile I had to put <inherits> tags to my dependent project in both modules. When I reexamined the compile log I realized that the module I thought wasn't compile was and the module that shouldn't care about my dependent project was not compiling. On May 15, 2:13 pm, John <john.set...@gmail.com> wrote: > Could anyone elaborate on the setting the dependent project's output > directory technique? > > Right now I have set my dependent project's output directory to be the > war/WEB-INF/classes directory of my main project. Additionally, I > have added the dependent projects source to MainProject/Properties/ > Java Build Path/Source Tab via the "Link Source" button and to > MainProject/Debug Configurations/My Main Configuration Name/Source > Tab. I have also added my dependent project to my main project's > build path just for good measure. However, I am still getting the "No > source code is available for type > class.found.in.dependent.project.Name" errors. > > This method doesn't seem like it would work anyway because all I am > doing is including the class files in the project and not the java > source code, which is what the error message claims it is missing in > the first place. > > I am going to attempt the jar file technique since that is known to > work. > > Lastly, is there any place I can check periodically to see if this bug > has been fixed so that I will know when I can stop trying to > workaround this bug? > > Thanks, > John > > On Apr 17, 11:19 am, Jason Parekh <jasonpar...@gmail.com> wrote: > > > Hey Joe, > > > It looks like you're hitting an issue where the Eclipse plugin does > > not include a dependent project's compiled classes into the packaged > > WAR that is deployed to the server. We're aware of the issue and it > > will be fixed in a future release. > > > There are a couple workarounds, one of which you've tried (package the > > dependent project into a JAR, and statically link that into the main > > project). The other is to set the dependent project's output > > directory to the main project's output directory. When the hosted > > mode server runs (or the app engine tools upload to app engine), all > > classes in this directory will be included (including the dependent > > project's). > > > jason > > > On Fri, Apr 17, 2009 at 8:31 AM, Joe Hudson <joe...@gmail.com> wrote: > > > > Thank you Salvador for your reply, > > > > I am have tried that (I think) and that was when I experience > > > described above. Please let me explain how I am doing that because > > > maybe I am doing something wrong: > > > > 1) Open the Run Configurations menu > > > 2) Select my target under "Web Application" (with the google icon) > > > 3) Go to the "Classpath" tab, select "User Entries", click "Add > > > Project" and select my project > > > 4) Go to the "Source" tab, click "Add", select "Java Project" and > > > select my project > > > 5) Click "Apply" > > > > So, this is what I have tried and I get errors when I start up the app > > > that it can not find the source of the classes from my server > > > project. Any ideas? > > > > Thanks > > > > Joe > > > > On Apr 17, 4:13 am, Salvador Diaz <diaz.salva...@gmail.com> wrote: > > >> Add the other project to the classpath instead of adding the jar > > > >> On Apr 17, 7:10 am, Joe Hudson <joe...@gmail.com> wrote: > > > >> > Hi, > > > >> > I have a separate eclipse project containing code used on the server- > > >> > side of the RPC. When I use the google plugin to recompile my GWT > > >> > app, I get the error messages saying that the source code can't be > > >> > found. I can get this to work by exporting the project to a jar (with > > >> > source) and referencing the jar (as opposed to the project directly) > > >> > in the classpath of the GWT project. > > > >> > This is do-able but I would really like to know if this is possible > > >> > and if there is anything special that has to be done for the plugin to > > >> > recognize the source from another project. > > > >> > I am pretty sure that the plugin sees the classpath as it is not > > >> > giving an error that the imported gwt.xml file can not be found. > > > >> > Thank you very much for any help you might have to offer. > > > >> > Joe --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---