[Problem] About adding a Vaadin addon on NetBeans

Hello,

   I can't add the add-on "SuperImmediateTextField" in my NetBeans project, I add the NetBeans plugin, and I created vaadin project 6.2.3.

   I added to my library "gwt-user.jar" and "gwt-user.jar" and I added my Build script (build-widgetset.xml) next to the build.xml.

  Then I added the add-on "sitf-1.0.0.jar" that includes SuperImmediateTextField in my library.
  But when I run the compile-widgetset target of the build-widgetset.xml, , an error message appears like this:


init:
widgetset-init:
deps-module-jar:
deps-ear-jar:
deps-jar:
check-rest-config-props:
generate-rest-config:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
generate-widgetset:
Updating com.example.myapp.widgetset.MyAppWidgetSet…
Remember to define the widgetset in web.xml as follows.

        <init-param>
            <param-name>widgetset</param-name>
            <param-value>com.example.myapp.widgetset.MyAppWidgetSet</param-value>
        </init-param>

23 févr. 2011 16:08:52 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
com.vaadin.incubator.customcheckbox.widgetset.CustomCheckboxApplicationWidgetset in jar:file:C:/Documents and Settings/BEAUMONT/Mes documents/Netbeans Project/pige34/lib/customcheckbox-0.1.1 (1).jar!/
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:C:/Documents and Settings/BEAUMONT/Mes documents/Netbeans Project/pige34/lib/vaadin-6.5.0.jar!/
com.github.wolfie.refresher.RefresherApplicationWidgetset in jar:file:C:/Documents and Settings/BEAUMONT/Mes documents/Netbeans Project/pige34/lib/refresher-1.1.0.jar!/
com.example.myapp.widgetset.MyAppWidgetSet in file://C/Documents and Settings/BEAUMONT/Mes documents/Netbeans Project/pige34/src/java
org.vaadin.artur.icepush.IcepushaddonWidgetset in jar:file:C:/Documents and Settings/BEAUMONT/Mes documents/Netbeans Project/pige34/lib/icepush-0.2.0.jar!/
org.vaadin.henrik.superimmediatetextfield.SuperimmediatetextfieldApplicationWidgetset in jar:file:C:/Documents and Settings/BEAUMONT/Mes documents/Netbeans Project/pige34/lib/sitf-1.0.0.jar!/

compile-widgetset:
Compiling com.example.myapp.widgetset.MyAppWidgetSet into web/VAADIN/widgetsets directory…
Compiling module com.example.myapp.widgetset.MyAppWidgetSet
Scanning for additional dependencies: jar:file:/C:/Documents%20and%20Settings/BEAUMONT/Mes%20documents/Netbeans%20Project/pige34/lib/vaadin-6.4.9.jar!/com/vaadin/terminal/gwt/client/WidgetSet.java
Computing all possible rebind results for ‘com.vaadin.terminal.gwt.client.WidgetMap’
Rebinding com.vaadin.terminal.gwt.client.WidgetMap
Invoking com.google.gwt.dev.javac.StandardGeneratorContext@12b700f
Detecting Vaadin components in classpath to generate WidgetMapImpl.java …
Widget set will contain implementations for following components:
com.example.vaadin.SuperImmediateTextField
com.github.wolfie.refresher.Refresher
com.vaadin.incubator.customcheckbox.CustomCheckbox
com.vaadin.ui.AbsoluteLayout
com.vaadin.ui.Accordion
com.vaadin.ui.Button
com.vaadin.ui.CheckBox
com.vaadin.ui.ComboBox
com.vaadin.ui.CssLayout
com.vaadin.ui.CustomComponent
com.vaadin.ui.CustomLayout
com.vaadin.ui.DateField
com.vaadin.ui.DragAndDropWrapper
com.vaadin.ui.Embedded
com.vaadin.ui.Form
com.vaadin.ui.FormLayout
com.vaadin.ui.GridLayout
com.vaadin.ui.HorizontalLayout
com.vaadin.ui.HorizontalSplitPanel
com.vaadin.ui.Label
com.vaadin.ui.Link
com.vaadin.ui.ListSelect
com.vaadin.ui.MenuBar
com.vaadin.ui.NativeButton
com.vaadin.ui.NativeSelect
com.vaadin.ui.OptionGroup
com.vaadin.ui.OrderedLayout
com.vaadin.ui.Panel
com.vaadin.ui.PasswordField
com.vaadin.ui.PopupView
com.vaadin.ui.ProgressIndicator
com.vaadin.ui.RichTextArea
com.vaadin.ui.Select
com.vaadin.ui.Slider
com.vaadin.ui.SplitPanel
com.vaadin.ui.TabSheet
com.vaadin.ui.Table
com.vaadin.ui.TextArea
com.vaadin.ui.TextField
com.vaadin.ui.Tree
com.vaadin.ui.TwinColSelect
com.vaadin.ui.Upload
com.vaadin.ui.UriFragmentUtility
com.vaadin.ui.VerticalLayout
com.vaadin.ui.VerticalSplitPanel
com.vaadin.ui.Window
org.vaadin.artur.icepush.ICEPush
org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField
Done. (1seconds)
[ERROR]
Errors in ‘jar:file:/C:/Documents%20and%20Settings/BEAUMONT/Mes%20documents/Netbeans%20Project/pige34/lib/gwt-user.jar!/com/google/gwt/user/client/ui/Tree.java’
[ERROR]
Internal compiler error
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.dcm4cheri.imageio.plugins.DcmImageReaderConf.(DcmImageReaderConf.java:73)
at org.dcm4cheri.imageio.plugins.DcmImageReaderSpi.(DcmImageReaderSpi.java:79)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.misc.Service$LazyIterator.next(Service.java:271)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:190)
at javax.imageio.spi.IIORegistry.(IIORegistry.java:121)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:142)
at javax.imageio.ImageIO.(ImageIO.java:48)
at com.google.gwt.resources.rg.ImageBundleBuilder.addImage(ImageBundleBuilder.java:694)
at com.google.gwt.resources.rg.ImageBundleBuilder.assimilate(ImageBundleBuilder.java:635)
at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:235)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:556)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:582)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java:204)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:418)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:38)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:108)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:54)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:154)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:143)
at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:317)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:95)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:422)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
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:159)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
… 40 more

[ERROR]
Unexpected
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.dcm4cheri.imageio.plugins.DcmImageReaderConf.(DcmImageReaderConf.java:73)
at org.dcm4cheri.imageio.plugins.DcmImageReaderSpi.(DcmImageReaderSpi.java:79)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.misc.Service$LazyIterator.next(Service.java:271)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:190)
at javax.imageio.spi.IIORegistry.(IIORegistry.java:121)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:142)
at javax.imageio.ImageIO.(ImageIO.java:48)
at com.google.gwt.resources.rg.ImageBundleBuilder.addImage(ImageBundleBuilder.java:694)
at com.google.gwt.resources.rg.ImageBundleBuilder.assimilate(ImageBundleBuilder.java:635)
at com.google.gwt.resources.rg.ImageResourceGenerator.prepare(ImageResourceGenerator.java:235)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:556)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:582)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java:204)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:418)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:38)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:108)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:54)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:154)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:143)
at com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:317)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:95)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:422)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
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:159)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
… 40 more


      and when I replace a TextField by a SuperImmediateTextField the SuperImmediateTextField not displayed and instead a message appears:

      Widgetset does not contain implementation for org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField. Check its @ClientWidget mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions. Unrendered UIDL:

org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField(NO CLIENT IMPLEMENTATION FOUND)

can you tell me from where can come the problem? Bad handling?

Thank you for lean on my problem even if you don’t find an answer.

My first guess is that you are using the incorrect version of the GWT JARs. For Vaadin 6.5, you should use GWT 2.1.1.

If that is not the problem, try to remove the add-ons one by one (or remove all of them and add them back one by one) to see if one of them causes a classpath conflict.

[color=#F80D0D]
Thank you for responding so quickly, but my problem persists> <

   In fact I use Vaadin 6.2.3 Framework and even if I use GWT 2.1.1 compilation still poses problems.

   So I tried to put it in another project, compiling successfully completed:

[/color]


Compiling com.example.myapp.widgetset.MyAppWidgetSet into web/VAADIN/widgetsets directory…
Compiling module com.example.myapp.widgetset.MyAppWidgetSet
Scanning for additional dependencies: jar:file:/C:/Documents%20and%20Settings/BEAUMONT/.netbeans/6.9/libs/vaadin-6.2.3.jar!/com/vaadin/terminal/gwt/client/DefaultWidgetSet.java
Computing all possible rebind results for ‘com.vaadin.terminal.gwt.client.WidgetMap’
Rebinding com.vaadin.terminal.gwt.client.WidgetMap
Invoking com.google.gwt.dev.javac.StandardGeneratorContext@2387bf
Detecting Vaadin components in classpath to generate WidgetMapImpl.java …
Widget set will contain implementations for following components:
com.vaadin.ui.AbsoluteLayout
com.vaadin.ui.Accordion
com.vaadin.ui.Button
com.vaadin.ui.CheckBox
com.vaadin.ui.ComboBox
com.vaadin.ui.CssLayout
com.vaadin.ui.CustomComponent
com.vaadin.ui.CustomLayout
com.vaadin.ui.DateField
com.vaadin.ui.Embedded
com.vaadin.ui.Form
com.vaadin.ui.FormLayout
com.vaadin.ui.GridLayout
com.vaadin.ui.HorizontalLayout
com.vaadin.ui.Label
com.vaadin.ui.Link
com.vaadin.ui.ListSelect
com.vaadin.ui.MenuBar
com.vaadin.ui.NativeButton
com.vaadin.ui.NativeSelect
com.vaadin.ui.OptionGroup
com.vaadin.ui.OrderedLayout
com.vaadin.ui.Panel
com.vaadin.ui.PopupView
com.vaadin.ui.ProgressIndicator
com.vaadin.ui.RichTextArea
com.vaadin.ui.Select
com.vaadin.ui.Slider
com.vaadin.ui.SplitPanel
com.vaadin.ui.TabSheet
com.vaadin.ui.Table
com.vaadin.ui.TextField
com.vaadin.ui.Tree
com.vaadin.ui.TwinColSelect
com.vaadin.ui.Upload
com.vaadin.ui.UriFragmentUtility
com.vaadin.ui.VerticalLayout
com.vaadin.ui.Window
org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField
Done. (3seconds)
Compiling 6 permutations
Compiling permutation 0…
Compiling permutation 1…
Compiling permutation 2…
Compiling permutation 3…
Compiling permutation 4…
Compiling permutation 5…
Compile of permutations succeeded
Linking into C:\Documents and Settings\BEAUMONT\Mes documents\NetBeansProjects\WebApplication2\web\VAADIN\widgetsets\com.example.myapp.widgetset.MyAppWidgetSet.
Link succeeded
Compilation succeeded – 73,266s
GÉNÉRATION TERMINÉE (durée totale 1 minute 17 secondes)



but when I put the SuperImmediateTextField in my window always displays the following message:



Widgetset does not contain implementation for org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL:

org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField(NO CLIENT IMPLEMENTATION FOUND)



Can you tell me where does the problem of my compilation of my real project?
Thank you for lean on my problem.

For Vaadin 6.2.3, the correct GWT version is 1.7.0 if I remember correctly.

It looked like you had multiple Vaadin JARs on your classpath in the initial widgetset compilation in your main project (based on the output, 6.4.9 and 6.5.0 and perhaps also 6.2.3), which is one likely cause for problems.

When you do get the compilation to succeed, make sure your web.xml refers to the correct widgetset.

Sidenote: if you are only using SuperImmediateTextField, you might consider updating to 6.5.1 as it has similar functionality built in.