Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Failure building widgetsets #11

Closed
ndarilek opened this issue Jan 27, 2013 · 5 comments
Closed

Failure building widgetsets #11

ndarilek opened this issue Jan 27, 2013 · 5 comments

Comments

@ndarilek
Copy link

Getting a massive error message when attempting to build widgetsets. I had this build working with an earlier buildscript modeled after the one from your blog post, so I know that it can work. It just fails when I try using the plugin.

Here is my build.gradle. I'm keeping widgets in src/main/resources.

apply plugin: "scala"

compileScala.scalaCompileOptions.useAnt = false

project.ext.scalaVersion = "2.9.2"

apply from: 'http://plugins.jasoft.fi/vaadin.plugin'

vaadin.version = "6.8.7"

vaadin.widgetset = "code.MainWidgetset"

repositories {
mavenCentral()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/public/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "http://repo.typesafe.com/typesafe/releases/" }
maven { url "http://download.java.net/maven/2/" }
maven { url "https://repository.apache.org/content/repositories/" }
ivy {
url System.getProperty("user.home")+"/.ivy2/local"
layout "pattern", {
artifact "[organization]/[module]/[revision]/[artifact].[ext]"
ivy "[organization]/[module]/[revision]/ivys/ivy.xml"
}
}
}

project.ext.shiroVersion = "1.2.1"

configurations.all {
resolutionStrategy {
force "com.vaadin:vaadin:$vaadin.version"
}
}

dependencies {
scalaTools "org.scala-lang:scala-compiler:$scalaVersion"
scalaTools "org.scala-lang:scala-library:$scalaVersion"
compile([
"org.scala-lang:scala-library:$scalaVersion",
"org.vaadin.addons:scaladin:2.1.0",
"org.vaadin:dontpush-addon-ozonelayer:1.0.4",
"org.apache.shiro:shiro-core:$shiroVersion",
"org.apache.shiro:shiro-web:$shiroVersion",
"ch.qos.logback:logback-classic:1.0.6",
"com.typesafe:config:1.0.0",
"com.typesafe.akka:akka-actor:2.0.5",
"com.novus:salat-core_$scalaVersion:1.9.2-SNAPSHOT",
"org.mindrot:jbcrypt:0.3m"
])
}

task wrapper(type: Wrapper)

defaultTasks "build"

And the error:

:compileJava UP-TO-DATE
:compileScala UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:themes
SASS themes are not compatible with Vaadin 6.
:widgetset
Compiling module code.MainWidgetset
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.vaadin/vaadin/6.8.7/jar/581d6f629c436190b7ddaeec39ffcc0906ae65dc/vaadin-6.8.7.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 generator com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator
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.Audio
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.InlineDateField
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.TreeTable
com.vaadin.ui.TwinColSelect
com.vaadin.ui.Upload
com.vaadin.ui.UriFragmentUtility
com.vaadin.ui.VerticalLayout
com.vaadin.ui.VerticalSplitPanel
com.vaadin.ui.Video
com.vaadin.ui.Window
Done. (3seconds)
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.google.gwt/gwt-user/2.3.0/jar/56370730a26623ac3a05b111096ed24599ffb01e/gwt-user-2.3.0.jar!/com/google/gwt/user/client/ui/MenuBar.java
Adding '1' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://866E533E810D66AB0B074B0163B8A8C0/com/google/gwt/user/client/ui/MenuBar_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.google.gwt.user.client.ui.MenuBar_Resources_default_InlineClientBundleGenerator3412179914385779309.java
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.google.gwt/gwt-user/2.3.0/jar/56370730a26623ac3a05b111096ed24599ffb01e/gwt-user-2.3.0.jar!/com/google/gwt/user/client/ui/DisclosurePanel.java
Adding '1' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://59B9DC327723A2FD9849342ADEF4A992/com/google/gwt/user/client/ui/DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.google.gwt.user.client.ui.DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator412908390770151896.java
[ERROR] Errors in 'generated://866E533E810D66AB0B074B0163B8A8C0/com/google/gwt/user/client/ui/MenuBar_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.google.gwt/gwt-user/2.3.0/jar/56370730a26623ac3a05b111096ed24599ffb01e/gwt-user-2.3.0.jar!/com/google/gwt/user/client/ui/Tree.java
Adding '1' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://F96346BB16742D29129AA81852EFAC16/com/google/gwt/user/client/ui/Tree_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.google.gwt.user.client.ui.Tree_Resources_default_InlineClientBundleGenerator5837107723025801242.java
[ERROR] Errors in 'generated://59B9DC327723A2FD9849342ADEF4A992/com/google/gwt/user/client/ui/DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.vaadin/vaadin/6.8.7/jar/581d6f629c436190b7ddaeec39ffcc0906ae65dc/vaadin-6.8.7.jar!/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar.java
Adding '2' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://661AB311484B884E6AC2E4E699ADF095/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar_Images_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 65: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 83: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 101: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 119: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 137: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 155: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 173: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 191: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 209: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 227: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 245: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 263: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 281: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 299: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 317: The method fromTrustedString(String) is undefined for the type UriUtils
See snapshot: /tmp/com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextToolbar_Images_default_InlineClientBundleGenerator6509507868241238794.java
[ERROR] Errors in 'generated://F96346BB16742D29129AA81852EFAC16/com/google/gwt/user/client/ui/Tree_Resources_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
Scanning for additional dependencies: jar:file:/home/nolan/.gradle/caches/artifacts-15/filestore/com.vaadin/vaadin/6.8.7/jar/581d6f629c436190b7ddaeec39ffcc0906ae65dc/vaadin-6.8.7.jar!/com/vaadin/terminal/gwt/client/ui/dd/VAcceptCriteria.java
Computing all possible rebind results for 'com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory'
Rebinding com.vaadin.terminal.gwt.client.ui.dd.VAcceptCriterionFactory
Invoking generator com.vaadin.terminal.gwt.widgetsetutils.AcceptCriteriaFactoryGenerator
Detecting available criteria ...
creating mapping for com.vaadin.event.dd.acceptcriteria.SourceIs
creating mapping for com.vaadin.event.dd.acceptcriteria.Or
creating mapping for com.vaadin.event.dd.acceptcriteria.ContainsDataFlavor
creating mapping for com.vaadin.ui.Table.TableDropCriterion
creating mapping for com.vaadin.event.dd.acceptcriteria.And
creating mapping for com.vaadin.event.dd.acceptcriteria.AcceptAll
creating mapping for com.vaadin.event.dd.acceptcriteria.ServerSideCriterion
creating mapping for com.vaadin.ui.Tree.TreeDropCriterion
creating mapping for com.vaadin.ui.AbstractSelect.TargetItemIs
creating mapping for com.vaadin.event.dd.acceptcriteria.Not
creating mapping for com.vaadin.ui.Tree.TargetInSubtree
creating mapping for com.vaadin.event.dd.acceptcriteria.SourceIsTarget
creating mapping for com.vaadin.event.dd.acceptcriteria.TargetDetailIs
creating mapping for com.vaadin.ui.AbstractSelect.AcceptItem
Done. (0seconds)
[ERROR] Errors in 'generated://661AB311484B884E6AC2E4E699ADF095/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextToolbar_Images_default_InlineClientBundleGenerator.java'
[ERROR] Line 11: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 29: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 47: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 65: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 83: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 101: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 119: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 137: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 155: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 173: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 191: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 209: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 227: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 245: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 263: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 281: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 299: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Line 317: The method fromTrustedString(String) is undefined for the type UriUtils
[ERROR] Cannot proceed due to previous errors
:widgetset FAILED

BUILD FAILED

Total time: 35.702 secs

@johndevs
Copy link
Owner

The plugin uses GWT 2.3 for Vaadin 6 projects and it might be that if you have previously used a greater version of GWT than that then you might still have the old versions of UriUtils (which looks like being to problem here) in some cache from previous widgetset builds.

You could try manually removing any gwt-unitCache or widgetset directories from your build (they are usually located under src/main/webapp/VAADIN) and running gradle clean and then try building again. Do you get the same result?

@ndarilek
Copy link
Author

Same result, unfortunately.

I did run "gradle clean" earlier. Perhaps that can be changed to remove
src/main/webapp/VAADIN? Or maybe the VAADIN directory can be located and
referenced beneath build/?

Thoughts on what else to try?

@ndarilek
Copy link
Author

OK, figured it out. If I comment out:

 //"org.vaadin:dontpush-addon-ozonelayer:1.0.4",

everything works. So something about this addon doesn't interact well
with the plugin, but works fine with my own Gradle-based build based on
your blog post.

@johndevs
Copy link
Owner

johndevs commented Feb 3, 2013

My guess is that addon uses something GWT 2.5 specific. I've added a new configuration option vaadin.gwt.version which you could try setting to 2.5.0-rc1 and see if it starts working.

The new configuration option will be available since version 0.3.5 of the plugin.

@johndevs
Copy link
Owner

Did you get ozonelayer working by setting vaadin.gwt.version='2.5.0-rc1'?

Closing this soon if this is resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants