Hi Shishir, Another option is to set the output directory of 'Model' to GwtProject/war/WEB-INF/classes, see http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/951499c5773693c9/0ae1a71ac2e4d3f1?#0ae1a71ac2e4d3f1 for more details. Not nearly as clean as proper dependent project support, but we're working on that :)
jason On Tue, May 26, 2009 at 5:19 AM, Shishir Srivastava <shishir.srivast...@gmail.com> wrote: > > Resending. Any help would be appreciated. > > TIA > Shishir > > On May 25, 12:32 pm, Shishir Srivastava > <shishir.srivast...@gmail.com> wrote: >> Hi, >> >> I am trying to use a dependent project (for the model layer) in my GWT >> project. I am using Jdeveloper as the IDE and have two projects in my >> application namely: >> >> 1.) GwtProject >> 2.) Model >> >> I can compile, build and run the GwtProject successfully as long as I >> don't set the dependent projects as Model in it. When I set my Model >> project as the dependent project for GwtProject I start getting this >> error in the hosted mode. >> >> [TRACE] Module location: file:/C:/utilities/code.personal/gwt- >> windows-1.6.4/Application1/GwtProject/war/WEB-INF/classes/com/path1/ >> path2/GwtProject.gwt.xml >> >> [ERROR] Failure while parsing XML >> org.xml.sax.SAXNotRecognizedException:http://apache.org/xml/features/nonvalidating/load-external-dtd >> at oracle.xml.jaxp.JXSAXParserFactory.setFeature >> (JXSAXParserFactory.java:128) >> at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse >> (ReflectiveParser.java:307) >> at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 >> (ReflectiveParser.java:48) >> at com.google.gwt.dev.util.xml.ReflectiveParser.parse >> (ReflectiveParser.java:385) >> at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad >> (ModuleDefLoader.java:243) >> at >> com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: >> 155) >> at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule >> (ModuleDefLoader.java:269) >> at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath >> (ModuleDefLoader.java:127) >> at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java: >> 536) >> at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426) >> at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351) >> at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) >> at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) >> at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) >> >> Adding 'Model' as the dependent project does not make any changes in >> my GwtProject.gwt.xml file but still it throws up this error pointing >> to the module xml file. >> >> I have been through some of the similar posts in the forum, >> recommending making a jar out of the second project and adding it to >> the GwtProject, but I don't intend to follow that route, because that >> would mean deploying my Model project to jar file everytime I make a >> change in the project which is still under development. >> >> Can anyone please point the error in the whole process? >> >> Thanks, >> Shishir > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---