Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files
I manage to remove the javax directory from the war with the maven- antrun-plugin and the delete ant task : org.apache.maven.plugins maven-antrun-plugin remove-javax compile run A better solution would be welcome... On 25 avr, 13:11, "cyril.lakech" wrote: > I add an exclude to my compiler but that does not change anything > > > org.apache.maven.plugins > maven-compiler-plugin > > 1.6 > 1.6 > > > javax/servlet/** > > > > > I don't understand why this javax classes are in the war... > > I would like not to add a ant run task to remove those file from the > compiled classes directory. > > On 25 avr, 01:53, "cyril.lakech" wrote: > > > OK, thank you very much for your answers ! > > > @Isaac: I don't know why, these classes just appears in my war ! I > > come here to understand. > > @Jason: 1st/ OK that is done but that does not solve my problem. 2nd/ > > the gwt-user library is never deploy because of the provided scope of > > the maven config for this dependency. > > @Scott: Good news ! But when I remove the java files, I do not have > > any problem... any idea ? > > > So what can I do to remove those javax/servlet files from my war under > > classes directory ? > > > I just got gwt-user in scope provided (I use maven and the gwt-maven- > > plugin from codehaus) and then the gwt compilation add the javax/ > > servlet class files in my output classes directory and my war... > > > Bst rgds, > > > On 24 avr, 18:11, Scott Blum wrote: > > > > I don't see this in 1.6.4. As far as I can tell, all of the .java files > > > in > > > javax/servlet have a timestamp of: > > > Tue Jul 22 02:00:00 EDT 2008 > > > > All of the .class files have: > > > > Tue Jul 22 02:00:30 EDT 2008 > > > > The class files are 30 seconds newer than the source files. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files
I add an exclude to my compiler but that does not change anything org.apache.maven.plugins maven-compiler-plugin 1.6 1.6 javax/servlet/** I don't understand why this javax classes are in the war... I would like not to add a ant run task to remove those file from the compiled classes directory. On 25 avr, 01:53, "cyril.lakech" wrote: > OK, thank you very much for your answers ! > > @Isaac: I don't know why, these classes just appears in my war ! I > come here to understand. > @Jason: 1st/ OK that is done but that does not solve my problem. 2nd/ > the gwt-user library is never deploy because of the provided scope of > the maven config for this dependency. > @Scott: Good news ! But when I remove the java files, I do not have > any problem... any idea ? > > So what can I do to remove those javax/servlet files from my war under > classes directory ? > > I just got gwt-user in scope provided (I use maven and the gwt-maven- > plugin from codehaus) and then the gwt compilation add the javax/ > servlet class files in my output classes directory and my war... > > Bst rgds, > > On 24 avr, 18:11, Scott Blum wrote: > > > I don't see this in 1.6.4. As far as I can tell, all of the .java files in > > javax/servlet have a timestamp of: > > Tue Jul 22 02:00:00 EDT 2008 > > > All of the .class files have: > > > Tue Jul 22 02:00:30 EDT 2008 > > > The class files are 30 seconds newer than the source files. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files
OK, thank you very much for your answers ! @Isaac: I don't know why, these classes just appears in my war ! I come here to understand. @Jason: 1st/ OK that is done but that does not solve my problem. 2nd/ the gwt-user library is never deploy because of the provided scope of the maven config for this dependency. @Scott: Good news ! But when I remove the java files, I do not have any problem... any idea ? So what can I do to remove those javax/servlet files from my war under classes directory ? I just got gwt-user in scope provided (I use maven and the gwt-maven- plugin from codehaus) and then the gwt compilation add the javax/ servlet class files in my output classes directory and my war... Bst rgds, On 24 avr, 18:11, Scott Blum wrote: > I don't see this in 1.6.4. As far as I can tell, all of the .java files in > javax/servlet have a timestamp of: > Tue Jul 22 02:00:00 EDT 2008 > > All of the .class files have: > > Tue Jul 22 02:00:30 EDT 2008 > > The class files are 30 seconds newer than the source files. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Packaging error in gwt-user 1.6.4 with javax servlet classes and java files
Hi, There is an error in GWT 1.6.4 release distribution. Because of a bad packaging of the product, there are too much files in the jar. The javax/servlet classes are in the jar and the java files too. And when you compile you GWT application, these java files are compiled and gwt put them in the classes package of the output directory. So the javax/ servlet classes are in the war of the project and all the applications servers embedded this library already. So we got a wonderfull linkage error at runtime. This issue was already discussed here => http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e0486a1de1f58c06/d22b7bc2d0b63e1e?lnk=raot And there is an open and fixed issue here : http://code.google.com/p/google-web-toolkit/issues/detail?id=3439 But this fix was not release. There is a workaround : remove all the java files from javax/servlet of the gwt-user.jar and change all the timestamps of the class file to a very old date (2004) When this issue will be fixed in the distribution of gwt-user ? Bst rgds, --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Need fix for GWT 1.6 Jars in Maven Repo
still the same bug in the 1.6.4 release ! On 4 mar, 14:47, eneveu wrote: > I had the same problem yesterday, and I stumbled on this post. Thanks > a lot for the explanation. > > I opened an issue > here:http://code.google.com/p/google-web-toolkit/issues/detail?id=3439 > > (Will, since your post explained the problem clearly, I took it as a > basis in the issue's description (changing/adding some details), I > hope you won't mind) > > I wonder if this problem only appears when using maven, or if ant- > based builds also suffer from it. > > -en > > On Mar 3, 3:34 pm, Garey wrote: > > > I am also having this issue. The workaround isn't hard, but it's > > annoying and I would rather not do it for every release. > > > Thanks, > > > g > > > On Feb 26, 10:49 am, Will wrote: > > > > Not sure who is reposponsible for the jars deployed to maven, but I am > > > having issues with the versions deployed there. > > > > The1.6.0 and1.6.1 versions of gwt-dev and gwt-user jars contain the > > > source code for thejavax.servletpackage. The problem is the source > > > code has a newer timestamp than the class files. This causes the > > >javax.servletclasses to be recompiled and placed in our target. > > > > Can someone fix the deployed jars to either 1) include class files > > > having a later timestamp or 2) contain nojavaxsource code. > > > > Not sure of the source code is required, the jars for version 1.5.3 > > > didn't include anyjavax.servletsources. I'm leaning toward option 2 > > > since the classpath could contain externaljavax.servletclasses with > > > older timestamp than sources bundled in gwt jars. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Manage development and production environment
Oh I forget to explain that I am working in hosted mode with the - noserver option because I have a heavy backend etc. And I found a bug here : http://code.google.com/p/google-web-toolkit/issues/detail?id=2976 What must I do to have my hosted mode working whith the rename-to attribute and the -noserver options activated ? Thank On 23 fév, 14:28, "cyril.lakech" wrote: > When I answer this thread my post stay collapsed and no one can read > it !!! > > What is this problem > > Please help, I am still facing the compilation problem for hosted mode > with module rewrite. > > On 18 fév, 18:46, Thomas Broyer wrote: > > > On 18 fév, 17:17, "cyril.lakech" wrote: > > > > I need to know what is the best way tomanagedevelopmentand > > >productionenvironment with the module.xml file and html file. > > > > Here is a very simple sample: > > > > I got an application to code, I need to compile my application with > > > the real GWT compiler (not the hosted mode) but i don't want to wait > > > for 15 minutes because of too many permutations (en_EN + fr_FR + > > > gecko1_8 + ie6 + etc...). > > > > I just want to compile fast and dirty in fr + gecko1_8 for intance ! > > > (<1minutes) > > > > But inproductionenvironment i need to compile with all the > > > permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). > > [...] > > > Any idea ? > > > RTFM? ;-) > > >http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=DevG... > > Section named "Renaming a module". --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Manage development and production environment
When I answer this thread my post stay collapsed and no one can read it !!! What is this problem Please help, I am still facing the compilation problem for hosted mode with module rewrite. On 18 fév, 18:46, Thomas Broyer wrote: > On 18 fév, 17:17, "cyril.lakech" wrote: > > > > > > > I need to know what is the best way tomanagedevelopmentand > >productionenvironment with the module.xml file and html file. > > > Here is a very simple sample: > > > I got an application to code, I need to compile my application with > > the real GWT compiler (not the hosted mode) but i don't want to wait > > for 15 minutes because of too many permutations (en_EN + fr_FR + > > gecko1_8 + ie6 + etc...). > > > I just want to compile fast and dirty in fr + gecko1_8 for intance ! > > (<1minutes) > > > But inproductionenvironment i need to compile with all the > > permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). > [...] > > Any idea ? > > RTFM? ;-) > > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=DevG... > Section named "Renaming a module". --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Manage development and production environment
If I create a new module XML file to set user agent and locale, then hosted mode doesn't work myDevModule.xml : I got errors in hosted mode like : Property 'locale' cannot be set to unexpected value 'null' or Property 'user.agent' cannot be set to unexpected value 'null' Any idea ? On 19 fév, 18:32, "cyril.lakech" wrote: > OK Great !!! Thank you so much ! > > But why can we read everywhere on the web that to speed up GWT we can/ > should change module files from the GWT release ??? > > http://vinaytech.wordpress.com/2008/11/10/gwt-compiler-compiling-for-... > > http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compilerhttp://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compile...http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compile... > > http://www.youenchene.fr/2008/08/petite-astuce-pour-gwt.html > > http://www.ongwt.com/post/2008/08/11/How-do-speed-up-the-GWT-compiler > > http://www.scribd.com/doc/9692542/How-to-Speedup-Gwt-Compiler > > etc > > On 18 fév, 18:46, Thomas Broyer wrote: > > > On 18 fév, 17:17, "cyril.lakech" wrote: > > > > I need to know what is the best way to managedevelopmentand > > >productionenvironmentwith the module.xml file and html file. > > > > Here is a very simple sample: > > > > I got an application to code, I need to compile my application with > > > the real GWT compiler (not the hosted mode) but i don't want to wait > > > for 15 minutes because of too many permutations (en_EN + fr_FR + > > > gecko1_8 + ie6 + etc...). > > > > I just want to compile fast and dirty in fr + gecko1_8 for intance ! > > > (<1minutes) > > > > But inproductionenvironmenti need to compile with all the > > > permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). > > [...] > > > Any idea ? > > > RTFM? ;-) > > >http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=DevG... > > Section named "Renaming a module". --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Manage development and production environment
OK Great !!! Thank you so much ! But why can we read everywhere on the web that to speed up GWT we can/ should change module files from the GWT release ??? http://vinaytech.wordpress.com/2008/11/10/gwt-compiler-compiling-for-one-browser-and-also-supporting-hosted-mode/ http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compiler http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compiler-Part-II http://blog.bazoud.com/post/2008/07/31/Can-I-speed-up-the-GWT-compiler-Part-III http://www.youenchene.fr/2008/08/petite-astuce-pour-gwt.html http://www.ongwt.com/post/2008/08/11/How-do-speed-up-the-GWT-compiler http://www.scribd.com/doc/9692542/How-to-Speedup-Gwt-Compiler etc On 18 fév, 18:46, Thomas Broyer wrote: > On 18 fév, 17:17, "cyril.lakech" wrote: > > > > > > > I need to know what is the best way to managedevelopmentand > >productionenvironmentwith the module.xml file and html file. > > > Here is a very simple sample: > > > I got an application to code, I need to compile my application with > > the real GWT compiler (not the hosted mode) but i don't want to wait > > for 15 minutes because of too many permutations (en_EN + fr_FR + > > gecko1_8 + ie6 + etc...). > > > I just want to compile fast and dirty in fr + gecko1_8 for intance ! > > (<1minutes) > > > But inproductionenvironmenti need to compile with all the > > permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). > [...] > > Any idea ? > > RTFM? ;-) > > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=DevG... > Section named "Renaming a module". --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Manage development and production environment
Hi, I need to know what is the best way to manage development and production environment with the module.xml file and html file. Here is a very simple sample: I got an application to code, I need to compile my application with the real GWT compiler (not the hosted mode) but i don't want to wait for 15 minutes because of too many permutations (en_EN + fr_FR + gecko1_8 + ie6 + etc...). I just want to compile fast and dirty in fr + gecko1_8 for intance ! (<1minutes) But in production environment i need to compile with all the permutations... (en_EN + fr_FR + gecko1_8 + ie6 + etc...). So I thought I just need 2 module.xml files, one for development mode and one for production mode. I duplicated my module.xml and I modify both to fit what I want (prod = all permutations, dev = fr + gecko1_8) But I faced a problem when I want to modify the html file, I need to modify the line : But how to have a generic html page when you have 2 modules (prod + dev)... I hope my problem would be clear, That is not easy to explain this problem ! Any idea ? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: save as dialog
You must implement a servlet and then redirect to this servlet with this code in your GWT code (buttonlistener.click) String url = GWT.getModuleBaseURL() + "export"; // + "? fileToDownload=bob.jpg"; Window.open(url, _SELF, ""); And have a look to the search feature of this groupe please !!! http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c8b8d2adc4128c6c/aa645788f6a74a1c http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c90754051fae26b6 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/11b749d50221499e etc... On Feb 11, 11:43 pm, ytbryan wrote: > Hi, > > thank you for your reply. > > But how do I offer the file as a download? > I can create a hyperlink using HTML class. but I want the save as > dialog box to be opened automatically. how can i do it? please > advice! > > On Feb 11, 5:01 pm, Matías Costa wrote: > > > On Wed, Feb 11, 2009 at 4:53 PM, ytbryan wrote: > > > > Hi all, > > > > i already created a servlet that make a csv file frommy Resultset and > > > save it to a predetermined location. > > > > However, i would like the user to choose the location to be stored and > > > the name of the csv file. can someone advice me what to do? > > > > Do you mean in the client? If so, you can use content-disposition header. > > > See: > > >http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html > > > Section 19.5.1 Content-Disposition --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Announcing GWT 1.6 Milestone 1
Great news Félicitations ! We don't need to build from the source now ! I'm goint to test this M1 next week ! Regards, On 6 fév, 16:26, Scott Blum wrote: > Greetings GWT developers, > > The GWT team is happy to announce the availability of 1.6 Milestone 1! > Binary distributions are available for download directly from GWT's Google > Code project. > > http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=1.6.0 > > As always, milestone builds like this are use-at-your-own-risk. There are > known bugs, and it definitely isn't ready for production use. Please expect > some trial and error getting everything to work. The javadoc that comes > bundled with the distribution should be up-to-date, but the online Developer > Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is > still very much a work in progress. We will be updating it over the next > several weeks. In lieu of an up-to-date Developer Guide and release notes, > below are the major highlights relative to GWT 1.5.3. > > *** New Project Structure in GWT 1.6 *** > > One of the biggest changes to GWT 1.6 is a new project structure. The old > output format has been replaced by the standard Java web app expanded "war" > format, and the actual directory name does default to "/war". Note that the > war directory is not only for compiler output; it is also intended to > contain handwritten static resources that you want to be included in your > webapp alongside GWT modules (that is, things you'd want to version > control). Please also note that the "GWTShell" and "GWTCompiler" tools will > maintain their legacy behavior, but they have been deprecated in favor of > new "HostedMode" and "Compiler" tools which use the new war output. When 1.6 > is officially released, we will be encouraging existing projects to update > to the new directory format and to use the new tools to take advantage of > new features and for compatibility with future GWT releases. > > The sample projects provided in the GWT distribution provide an example of > correct new project configurations. For more details on the specifics of the > new project format, please see GWT 1.6 WAR design document > (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6). > > A couple of important changes we should highlight here: > > - Projects with server-side code (GWT RPC) must configure a "web.xml" file > at "/war/WEB-INF/web.xml". This web.xml file must define and publish any > servlets associated with the web application. See the included DynaTable > sample. Additionally, server-side library dependencies must be copied into > "/war/WEB-INF/lib". For example, any GWT RPC servlets must have a copy of > gwt-servlet.jar in this folder. > > - HTML host pages will no longer typically be located in a GWT module's > public path. Instead, we'll be recommending that people take advantage of > the natural web app behavior for serving static files by placing host pages > anywhere in the war structure that makes sense. For exmaple, you might want > to load a GWT module from a JSP page located in the root of your web app. To > keep such handwritten static files separate from those produced by the GWT > compiler, the latter will be placed into module-specific subdirectories. Any > page that wishes to include a GWT module can do so via a script tag by > referencing the GWT-produced ".nocache.js script" within that > module's subdirectory. As of 1.6, we'll be recommending that only > module-specific resources used directly by GWT code, such as image files > needed by widgets, should remain on the public path. See the included > Showcase sample for some examples of this distinction. > > - When you do need to load resources from a module's public path, always > construct an absolute URL by prepending GWT.getModuleBaseURL(). For example, > 'GWT.getModuleBaseURL() + "dir/file.ext"'. This advice has not changed, but > in the past it was easy to be sloppy with this, because the host page and > GWT module typically lived in the same directory, so using a relative URL > would usually do the right thing. Now that GWT modules live in a > subdirectory, you must reference public resources through > GWT.getModuleBaseURL(). > > *** Hosted Mode Enhancements *** > > Although the legacy GWTShell still uses an embedded Tomcat server, the new > HostedMode runs Jetty instead. There is also a new "Restart Server" button > on the main hosted mode window. Clicking this button restarts the internal > Jetty server, which allows Java code changes to take effect on the server > without having to completely exit and restart hosted mode. This is useful > when making code changes to RPC servlets, or when serializable RPC types are > modified and the server and client are out of sync. > > *** New EventHandler System *** > > Event handlers have been added to replace the old event listeners used by > Widgets, History, and various other classes. The new system has a few > differences from the old