Widgetset compilation failed in Vaadin 7

Hi,

I want
Countdownclock
to be integrated in
Vaadin-7-rc2
project. So i put the add-on jar in lib folder and tried widgetset compilation. The console is displaying
Widgetset compilation failed
message and it doesn’t shows any error. I dont know where i am wrong. Kindly help me to overcome this problem.


Note
: I have my gwt-dev-2.5.0.jar in my classpath.

The console message is shown below…

Executing compiler with parameters [C:\Program Files (x86)\Java\jre7\bin\java.exe, -Djava.awt.headless=true, -Xss8M, -Xmx512M, -XX:MaxPermSize=512M, -classpath, C:\Program Files (x86)\Java\jre7\lib\resources.jar;C:\Program Files (x86)\Java\jre7\lib\rt.jar;C:\Program Files (x86)\Java\jre7\lib\jsse.jar;C:\Program Files (x86)\Java\jre7\lib\jce.jar;C:\Program Files (x86)\Java\jre7\lib\charsets.jar;C:\Program Files (x86)\Java\jre7\lib\jfr.jar;C:\Program Files (x86)\Java\jre7\lib\ext\access-bridge-32.jar;C:\Program Files (x86)\Java\jre7\lib\ext\dnsns.jar;C:\Program Files (x86)\Java\jre7\lib\ext\jaccess.jar;C:\Program Files (x86)\Java\jre7\lib\ext\localedata.jar;C:\Program Files (x86)\Java\jre7\lib\ext\sunec.jar;C:\Program Files (x86)\Java\jre7\lib\ext\sunjce_provider.jar;C:\Program Files (x86)\Java\jre7\lib\ext\sunmscapi.jar;C:\Program Files (x86)\Java\jre7\lib\ext\sunpkcs11.jar;C:\Program Files (x86)\Java\jre7\lib\ext\zipfs.jar;C:/Eclipse Workspace/SampleClock/src;C:/Eclipse Workspace/SampleClock/build/classes;C:/Program Files (x86)/Java/jre7/lib/resources.jar;C:/Program Files (x86)/Java/jre7/lib/rt.jar;C:/Program Files (x86)/Java/jre7/lib/jsse.jar;C:/Program Files (x86)/Java/jre7/lib/jce.jar;C:/Program Files (x86)/Java/jre7/lib/charsets.jar;C:/Program Files (x86)/Java/jre7/lib/jfr.jar;C:/Program Files (x86)/Java/jre7/lib/ext/access-bridge-32.jar;C:/Program Files (x86)/Java/jre7/lib/ext/dnsns.jar;C:/Program Files (x86)/Java/jre7/lib/ext/jaccess.jar;C:/Program Files (x86)/Java/jre7/lib/ext/localedata.jar;C:/Program Files (x86)/Java/jre7/lib/ext/sunec.jar;C:/Program Files (x86)/Java/jre7/lib/ext/sunjce_provider.jar;C:/Program Files (x86)/Java/jre7/lib/ext/sunmscapi.jar;C:/Program Files (x86)/Java/jre7/lib/ext/sunpkcs11.jar;C:/Program Files (x86)/Java/jre7/lib/ext/zipfs.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/annotations-api.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/catalina-ant.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/catalina-ha.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/catalina-tribes.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/catalina.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/ecj-4.2.1.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/el-api.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/jasper-el.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/jasper.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/jsp-api.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/servlet-api.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-api.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-coyote.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-dbcp.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-i18n-es.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-i18n-fr.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-i18n-ja.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-jdbc.jar;C:/Program Files (x86)/Apache Software Foundation/Tomcat 7.0/lib/tomcat-util.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/CountdownClock.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-client-7.0.0.rc2.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-client-compiled-7.0.0.rc2.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-client-compiler-7.0.0.rc2.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-server-7.0.0.rc2.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-shared-7.0.0.rc2.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-theme-compiler-7.0.0.rc2.jar;C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-themes-7.0.0.rc2.jar;C:/Users/rakeshkondap/Documents/JAR Files/gwt jars/gwt-dev-2.5.0.jar, com.vaadin.tools.WidgetsetCompiler, -out, WebContent/VAADIN/widgetsets, -localWorkers, 4, -logLevel, INFO, com.example.sampleclock.widgetset.SampleclockWidgetset]

Updating GWT module description file...
Feb 03, 2013 4:33:31 PM com.vaadin.server.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
	com.vaadin.DefaultWidgetSet in jar:file:C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/vaadin-client-7.0.0.rc2.jar!/
	org.vaadin.kim.countdownclock.CountdownClockWidgetset in jar:file:C:/Eclipse Workspace/SampleClock/WebContent/WEB-INF/lib/CountdownClock.jar!/
	com.example.sampleclock.widgetset.SampleclockWidgetset in file://C/Eclipse Workspace/SampleClock/src

Feb 03, 2013 4:33:31 PM com.vaadin.server.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Search took 14ms
Done.
Starting GWT compiler
Unknown argument: -out
Google Web Toolkit 7.0.0rc2
Compiler [-logLevel level]
 [-workDir dir]
 [-gen dir]
 [-style style]
 [-ea]
 [-XdisableClassMetadata]
 [-XdisableCastChecking]
 [-validateOnly]
 [-draftCompile]
 [-optimize level]
 [-compileReport]
 [-strict]
 [-XenableClosureCompiler]
 [-XfragmentMerge numFragments]
 [-XfragmentCount numFragments]
 [-localWorkers count]
 [-war dir]
 [-deploy dir]
 [-extra dir]
  module[-s]

where 
  -logLevel                The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
  -workDir                 The compiler's working directory for internal use (must be writeable; defaults to a system temp dir)
  -gen                     Debugging: causes normally-transient generated types to be saved in the specified directory
  -style                   Script output style: OBF[USCATED]
, PRETTY, or DETAILED (defaults to OBF)
  -ea                      Debugging: causes the compiled output to check assert statements
  -XdisableClassMetadata   EXPERIMENTAL: Disables some java.lang.Class methods (e.g. getName())
  -XdisableCastChecking    EXPERIMENTAL: Disables run-time checking of cast operations
  -validateOnly            Validate all source code, but do not compile
  -draftCompile            Enable faster, but less-optimized, compilations
  -optimize                Sets the optimization level used by the compiler.  0=none 9=maximum.
  -compileReport           Create a compile report that tells the Story of Your Compile
  -strict                  Only succeed if no input files have errors
  -XenableClosureCompiler  EXPERIMENTAL: Enables Closure Compiler optimizations
  -XfragmentMerge          DEPRECATED (use -XfragmentCount instead): Enables Fragment merging code splitter.
  -XfragmentCount          EXPERIMENTAL: Limits of number of fragments using a code splitter that merges split points.
  -localWorkers            The number of local workers to use when compiling permutations
  -war                     The directory into which deployable output files will be written (defaults to 'war')
  -deploy                  The directory into which deployable but not servable output files will be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may be the same as the -extra directory/jar)
  -extra                   The directory into which extra files, not intended for deployment, will be written
and 
  module[-s]
                Specifies the name(-s) of the module(-s) to compile
Widgetset compilation failed

Thanks in advance,
Rakesh.

Hey, are you using Eclipse plugin to compile the widgetset? If so, make sure that you’ll use the ‘experimental’ plugin, which is the one for Vaadin 7. You can get it from here: http://vaadin.com/eclipse/experimental

I suspect the problem is that with latest version of GWT the compiler params have changed and the older version of plugin provides an invalid parameter for current version. Notice also that with Vaadin 7 there’s special version of GWT provided which should be used to compile the widgetset. In order to have all the right libraries it’s easier to use the Eclipse plugin also to create the project and have the dependencies configured with Apache Ivy. In general with Vaadin 7 you shouldn’t have GWT libraries in your class path but instead vaadin-client.jar which is resolved by Ivy.

See this for details:

https://vaadin.com/book/vaadin7/-/page/getting-started.eclipse.html

I had the same problem. For me it helped to remove all gwt-**.jar from the classpath.

Thanks Peter, I removed the gwt jars from my classpath and now it is working.

Regards,
Rakesh.