Hi!!,
I’m trying to develop my Vaadin applications using Spring Roo. So, I started with the ‘official’ example given
here
. Everything seemed to work fine until I began the
section 13.5 Using Vaadin Add-ons in a Roo project
. When I enter the vaadin widgetset create I get these errors:
____ ____ ____
/ __ \/ __ \/ __ \
/ /_/ / / / / / / /
/ _, _/ /_/ / /_/ /
/_/ |_|\____/\____/ 1.1.4.RELEASE [rev f787ce7]
Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
roo> vaadin generate all --package ~.web.ui --visuallyComposable true
Created SRC_MAIN_JAVA/com/example/rapid/web/ui
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/RapidUserView.java
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/RapidUserForm.java
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/ProjectView.java
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/ProjectForm.java
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/WorkEntryView.java
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/WorkEntryForm.java
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/WorkEntryForm_Roo_VaadinVisuallyComposableEntityForm.aj
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/ProjectForm_Roo_VaadinVisuallyComposableEntityForm.aj
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/RapidUserView_Roo_VaadinEntityView.aj
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/WorkEntryView_Roo_VaadinEntityView.aj
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/ProjectView_Roo_VaadinEntityView.aj
Updated SRC_MAIN_JAVA/com/example/rapid/web/RapidWorkHoursEntityManagerView_Roo_VaadinEntityManagerView.aj
Created SRC_MAIN_JAVA/com/example/rapid/web/ui/RapidUserForm_Roo_VaadinVisuallyComposableEntityForm.aj
roo> vaadin addon install --artifactId vaadin-calendar
[HINT]
If the add-on has client side widgets, create or update the project widgetset:
[HINT]
'vaadin widgetset create' or 'vaadin widgetset update'
Updated ROOT/pom.xml [added dependency org.vaadin.addons:vaadin-calendar:1.0.0]
roo> vaadin widgetset create
[INFO]
Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO]
Building vaadinRoo
[INFO]
task-segment: [vaadin:update-widgetset, gwt:compile]
[INFO]
------------------------------------------------------------------------
[INFO]
[vaadin:update-widgetset {execution: default-cli}]
[INFO]
auto discovered modules [com.example.rapid.web.RapidWorkHoursWidgetset]
[INFO]
Updating widgetset com.example.rapid.web.RapidWorkHoursWidgetset
[color=#db0808]
[ERROR]
19-ago-2011 13:49:05 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR]
INFO: Widgetsets found from classpath:
[ERROR]
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:/root/.m2/repository/com/vaadin/vaadin/6.6.0/vaadin-6.6.0.jar!/
[ERROR]
com.vaadin.addon.calendar.gwt.CalendarWidgetset in jar:file:/root/.m2/repository/org/vaadin/addons/vaadin-calendar/1.0.0/vaadin-calendar-1.0.0.jar!/
[ERROR]
com.example.rapid.web.RapidWorkHoursWidgetset in file:/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java
[ERROR]
[ERROR]
19-ago-2011 13:49:05 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR]
INFO: Search took 4ms
[INFO]
[gwt:compile {execution: default-cli}]
[INFO]
------------------------------------------------------------------------
[ERROR]
BUILD ERROR
[/color]
[INFO]
------------------------------------------------------------------------
[INFO]
GWT Module com.example.rapid.ApplicationScaffold not found in project sources or resources.
[INFO]
------------------------------------------------------------------------
[INFO]
For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 10 seconds
[INFO]
Finished at: Fri Aug 19 13:49:07 CEST 2011
[INFO]
Final Memory: 34M/228M
[INFO]
------------------------------------------------------------------------
Updated ROOT/pom.xml [added plugin gwt-maven-plugin; added plugin vaadin-maven-plugin]
I have checked that the previous chapters work. There are no problems until I started this section. If I compile from command line I get these errors:
root@ubuntu:/home/ivan/workspaceNuevo2/vaadinRoo# mvn clean install
[INFO]
Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO]
Building vaadinRoo
[INFO]
task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO]
[clean:clean {execution: default-clean}]
[INFO]
Deleting file set: /home/ivan/workspaceNuevo2/vaadinRoo/target (included: [**]
, excluded: [])
[INFO]
[aspectj:compile {execution: default}]
[ERROR]
The import com.google.inject cannot be resolved
[ERROR]
The import com.example.rapid.client.scaffold.ScaffoldDesktopShell cannot be resolved
[ERROR]
Inject cannot be resolved to a type
[ERROR]
ScaffoldDesktopShell cannot be resolved to a type
[ERROR]
The import com.example.rapid.shared cannot be resolved
[ERROR]
ScaffoldRequestFactory cannot be resolved to a type
[WARNING]
advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING]
advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING]
advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING]
advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING]
advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[INFO]
------------------------------------------------------------------------
[ERROR]
BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
Compiler errors :
error at import com.google.inject.Inject;
^^^^^^^^^^^^^^^^
/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java/com/example/rapid/client/scaffold/gae/GaeHelper.java:5:0::0 The import com.google.inject cannot be resolved
error at import com.example.rapid.client.scaffold.ScaffoldDesktopShell;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java/com/example/rapid/client/scaffold/gae/GaeHelper.java:7:0::0 The import com.example.rapid.client.scaffold.ScaffoldDesktopShell cannot be resolved
error at @Inject
^^^^
/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java/com/example/rapid/client/scaffold/gae/GaeHelper.java:11:0::0 Inject cannot be resolved to a type
error at public GaeHelper(ScaffoldDesktopShell shell, ApplicationRequestFactory requestFactory, EventBus eventBus) {
^^^^^^^^^^^^^^^^^^
/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java/com/example/rapid/client/scaffold/gae/GaeHelper.java:12:0::0 ScaffoldDesktopShell cannot be resolved to a type
error at import com.example.rapid.shared.scaffold.ScaffoldRequestFactory;
^^^^^^^^^^^^^^^^^^^^^^^
/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java/com/example/rapid/client/managed/request/ApplicationRequestFactory.java:5:0::0 The import com.example.rapid.shared cannot be resolved
error at public interface ApplicationRequestFactory extends ScaffoldRequestFactory {
^^^^^^^^^^^^^^^^^^^^^
/home/ivan/workspaceNuevo2/vaadinRoo/src/main/java/com/example/rapid/client/managed/request/ApplicationRequestFactory.java:7:0::0 ScaffoldRequestFactory cannot be resolved to a type
[INFO]
------------------------------------------------------------------------
[INFO]
For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 6 seconds
[INFO]
Finished at: Fri Aug 19 14:22:21 CEST 2011
[INFO]
Final Memory: 24M/155M
[INFO]
------------------------------------------------------------------------
It seems that Roo couldn’t create these classes. I also configure the deployment assembly althought nothing has been created in the target folder. Has anyone came across this issue or know how to solve this problem?.
Thanks in advance!!