Re: gwt-compile issue
Hi,Naveen Gayar it help for you Make sure your Eclipse gives priority to GWT hosted mode libraries. Go to your GWT project properties (In project Explorer right click on the project and select Properties). Then navigate to J*ava Build Path-Order And Export tab. Move the GWT SDK bundle above any other library(like in Top for eg. you will see in bottom, you should up to top) *(i.e. it should be above the JRE libraries and any other libs you may have - maven libs etc). On Friday, 17 June 2011 16:45:30 UTC+5:30, Naveen Gayar wrote: I have imported working project. It is giving the following error. please let me know asap. Compiling module com.ge.inds.evse.io.EVSEGRI [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:398) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init(JdtCompiler.java:228) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:689) at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:215) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:406) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:299) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:325) at com.google.gwt.dev.Precompile.precompile(Precompile.java:507) at com.google.gwt.dev.Precompile.precompile(Precompile.java:492) at com.google.gwt.dev.Precompile.precompile(Precompile.java:405) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Lp7cnQ-E61cJ. 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: gwt-compile issue
Juan Pablo Gardella gardellajuanpablo@... writes: Can you show the classpath? 2011/6/17 Navindian navind...@gmail.com I have imported working project. It is giving the following error. please let me know asap. Compiling module com.ge.inds.evse.io.EVSEGRI [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions (JdtCompiler.java:398) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init (JdtCompiler.java:228) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:689) at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile (CompilationStateBuilder.java:215) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom (CompilationStateBuilder.java:406) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom (CompilationStateBuilder.java:299) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:325) at com.google.gwt.dev.Precompile.precompile(Precompile.java:507) at com.google.gwt.dev.Precompile.precompile(Precompile.java:492) at com.google.gwt.dev.Precompile.precompile(Precompile.java:405) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun (CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) Hey guys facing the same issue wuth eclipse Galelio with gwt 2.3 plugin My run config in eclipse is: Main class: com.google.gwt.dev.GWTShell Arguments : -remoteUI ${gwt_remote_ui_server_port}:${unique_id} -logLevel INFO - codeServerPort 9997 -port com.iflex.cards.Cards/Cards.html classpath : JRE6 src project specific jars Please do tell me if someone is able to nail the issue. Will keep posted with my findings. Regards, Abhijit -- 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: gwt-compile issue
Ok that was stupid !!! The problem is that com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions (JdtCompiler.java:208) is Referring to CompilerOptions which as fate would have it is referencing to the implementation in selenium-server.jar instead of gwt specific implementation. This jar of course is not needed and can be safely removed(Its there since I was working on the Selenium framework). So once this dependency is removed it works fine . If you have a similar problem try figuring out which jar CompilerOptions is referring to thats where the problem might be . Cheers :) Abhijit -- 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: gwt-compile issue
Can you show the classpath? 2011/6/17 Navindian navind...@gmail.com I have imported working project. It is giving the following error. please let me know asap. Compiling module com.ge.inds.evse.io.EVSEGRI [ERROR] Unexpected java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:398) at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init(JdtCompiler.java:228) at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:689) at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:215) at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:406) at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:299) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:325) at com.google.gwt.dev.Precompile.precompile(Precompile.java:507) at com.google.gwt.dev.Precompile.precompile(Precompile.java:492) at com.google.gwt.dev.Precompile.precompile(Precompile.java:405) at com.google.gwt.dev.Compiler.run(Compiler.java:215) at com.google.gwt.dev.Compiler.run(Compiler.java:187) at com.google.gwt.dev.Compiler$1.run(Compiler.java:159) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81) at com.google.gwt.dev.Compiler.main(Compiler.java:166) -- 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. -- 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: gwt compile issue
You can't. If your utility is to be used client-side, then you have to provide the source for it so gwt can translate it to javascript. gerald wrote: I have a project based on gwt-ext. This project import some third- party jars. However it didn't compile successfully because the gwt complier couldn't find the java source code of these third-party jars. That means that we must have the java source code in the jar package or in the classpath, otherwise, the project complie fail. However my project is a util, and i dont want to expose my source as it serve as 3rd jar, how can i do? -- 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-tool...@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: GWT Compile Issue
I figured out the issue to my own problem and I am posting the solution for posterity's benefit. This might save somebody a few hours of frustration. I had earlier failed to specify the fully qualified module name: For instance, under program arguments in Eclipse: I initially specified this: -war C:\Documents and Settings\Seshadrj\workspace\GIDM\war GIDM When I changed it to the package qualified module name(shown below), it started working fine. -war C:\Documents and Settings\Seshadrj\workspace\GIDM\war whi.idm.GIDM On May 25, 11:39 am, jayanth jay.sesha...@gmail.com wrote: I am on GWT 2.0.3. I am mentioning this because someone had asked if I was on GWT 2.1 M1. By the way, I've tried all the options mentioned: 1. Added the following lines: inherits name=com.google.gwt.core.Core/ inherits name=com.google.gwt.user.History/ 2. Moved my gwt.xml directly under the src directory. None of this has helped so far. As a matter of fact, I just created the default GreetingService app and tried to create a launch configuration to compile. When I use the GWTCompile (icon) option available through the plugin, it compiles fine. When I create a launch configuration, fails with the same message: Finding entry point classes [ERROR] Unable to find type 'com.example.myproject.client.Jkl' [ERROR] Hint: Check that the type name 'com.example.myproject.client.Jkl' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots Thanks. On May 24, 5:00 am, Thomas Broyer t.bro...@gmail.com wrote: On 21 mai, 21:49,jayanthjay.sesha...@gmail.com wrote: !-- Specify the app entry point class. -- entry-point class='whi.idm.client.GIDM'/ source path=whi.idm.client / Is your gwt.xml really in the default package ?! (i.e. at the root of your source tree) -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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: GWT Compile Issue
I am on GWT 2.0.3. I am mentioning this because someone had asked if I was on GWT 2.1 M1. By the way, I've tried all the options mentioned: 1. Added the following lines: inherits name=com.google.gwt.core.Core/ inherits name=com.google.gwt.user.History/ 2. Moved my gwt.xml directly under the src directory. None of this has helped so far. As a matter of fact, I just created the default GreetingService app and tried to create a launch configuration to compile. When I use the GWTCompile (icon) option available through the plugin, it compiles fine. When I create a launch configuration, fails with the same message: Finding entry point classes [ERROR] Unable to find type 'com.example.myproject.client.Jkl' [ERROR] Hint: Check that the type name 'com.example.myproject.client.Jkl' is really what you meant [ERROR] Hint: Check that your classpath includes all required source roots Thanks. On May 24, 5:00 am, Thomas Broyer t.bro...@gmail.com wrote: On 21 mai, 21:49,jayanthjay.sesha...@gmail.com wrote: !-- Specify the app entry point class. -- entry-point class='whi.idm.client.GIDM'/ source path=whi.idm.client / Is your gwt.xml really in the default package ?! (i.e. at the root of your source tree) -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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: GWT Compile Issue
Try to add these line under this one: !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ ADD NE LINES: inherits name=com.google.gwt.core.Core/ inherits name=com.google.gwt.user.History/ Cheers! PS: more info about GWT 2.0: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html -- 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-tool...@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: GWT Compile Issue
Please check for is your java code is not importing some unnecessary stuff which might be not supported by GWT. to remove unnecessary imorts you can opt for a short cut key : Ctrl+Shift+O and then try to compile. -- Aditya On Mon, May 24, 2010 at 2:00 PM, Sorinel C scristescu...@hotmail.comwrote: Try to add these line under this one: !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ ADD NE LINES: inherits name=com.google.gwt.core.Core/ inherits name=com.google.gwt.user.History/ Cheers! PS: more info about GWT 2.0: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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: GWT Compile Issue
An if you use the just released GWT 2.1M1 then you have to add more stuff to your module .gwt.xml file Check it out here to see it: http://ui-programming.blogspot.com/2010/05/gwt-upgrade-to-gwt-21-m1-and-fix-module.html Cheers -- 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-tool...@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: GWT Compile Issue
On 21 mai, 21:49, jayanth jay.sesha...@gmail.com wrote: !-- Specify the app entry point class. -- entry-point class='whi.idm.client.GIDM'/ source path=whi.idm.client / Is your gwt.xml really in the default package ?! (i.e. at the root of your source tree) -- 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-tool...@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: GWT Compile Issue
GWT Compilation requires that the Java source be available for every type which is part of a GWT module. You'll need to get the source for the Apache Commons library and add it to your classpath. I'm sure that all of Apache Commons is not translatable, but perhaps the parts that you're using (such as StringUtils) are translatable. On Fri, Jul 31, 2009 at 4:01 PM, gangurg gangurg gang...@gmail.com wrote: I have included org.apache.common.lang.StrinUtils in my Entry Point java file . I have included common-lang.jar in my web-app library .The Java Compilation goes through . but if i do a GWT compile i get the following error [ERROR] Line 32: No source code is available for type org.apache.commons.lang.StringUtils; did you forget to inherit a required module? I use Eclipse , GWT plug in . --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---