Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2566

DBRE-generated project doesn't compile after GWT scaffolding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.5.RELEASE
    • Component/s: GWT
    • Labels:
      None
    • Environment:
      Mac OSX 10.6.7, MySQL Community Server 5.5.13

      Description

      Generating a project using the attached scripts will result in code that doesn't compile; here are the errors:

      aswan: bikeshop > mvn clean compile
      [INFO] Scanning for projects...
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building bikes 0.1.0.BUILD-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ bikes ---
      [INFO] 
      [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ bikes ---
      [ERROR] The import com.example.bikes.client.managed.ui cannot be resolved
      [ERROR] ApplicationListPlaceRenderer cannot be resolved to a type
      [ERROR] The import com.example.bikes.client.managed.request.ApplicationEntityTypesProcessor cannot be resolved
      [ERROR] ApplicationEntityTypesProcessor cannot be resolved
      [ERROR] The import com.example.bikes.client.managed.activity cannot be resolved
      [ERROR] ApplicationMasterActivities cannot be resolved to a type
      [ERROR] ApplicationDetailsActivities cannot be resolved to a type
      [ERROR] ApplicationMasterActivities cannot be resolved to a type
      [ERROR] ApplicationDetailsActivities cannot be resolved to a type
      [ERROR] applicationMasterActivities cannot be resolved or is not a field
      [ERROR] applicationDetailsActivities cannot be resolved or is not a field
      [ERROR] applicationMasterActivities cannot be resolved
      [ERROR] applicationDetailsActivities cannot be resolved
      [ERROR] The import com.example.bikes.client.managed.activity cannot be resolved
      [ERROR] The import com.example.bikes.client.managed.ui cannot be resolved
      [ERROR] ScaffoldMobileActivities cannot be resolved to a type
      [ERROR] ScaffoldMobileActivities cannot be resolved to a type
      [ERROR] ApplicationListPlaceRenderer cannot be resolved to a type
      [ERROR] scaffoldMobileActivities cannot be resolved
      [ERROR] scaffoldMobileActivities cannot be resolved
      [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.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.333s
      [INFO] Finished at: Fri Jul 08 11:05:35 EST 2011
      [INFO] Final Memory: 5M/81M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project bikes: Compiler errors :
      [ERROR] error at import com.example.bikes.client.managed.ui.ApplicationListPlaceRenderer;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopShell.java:3:0::0 The import com.example.bikes.client.managed.ui cannot be resolved
      [ERROR] error at ValuePicker<ProxyListPlace> placesBox = new ValuePicker<ProxyListPlace>(new ApplicationListPlaceRenderer());
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopShell.java:28:0::0 ApplicationListPlaceRenderer cannot be resolved to a type
      [ERROR] error at import com.example.bikes.client.managed.request.ApplicationEntityTypesProcessor;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldApp.java:3:0::0 The import com.example.bikes.client.managed.request.ApplicationEntityTypesProcessor cannot be resolved
      [ERROR] error at Set<Class<? extends EntityProxy>> types = ApplicationEntityTypesProcessor.getAll();
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldApp.java:23:0::0 ApplicationEntityTypesProcessor cannot be resolved
      [ERROR] error at import com.example.bikes.client.managed.activity.*;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:3:0::0 The import com.example.bikes.client.managed.activity cannot be resolved
      [ERROR] error at private final ApplicationMasterActivities applicationMasterActivities;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:38:0::0 ApplicationMasterActivities cannot be resolved to a type
      [ERROR] error at private final ApplicationDetailsActivities applicationDetailsActivities;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:39:0::0 ApplicationDetailsActivities cannot be resolved to a type
      [ERROR] error at public ScaffoldDesktopApp(ScaffoldDesktopShell shell, ApplicationRequestFactory requestFactory, EventBus eventBus, PlaceController placeController, PlaceHistoryFactory placeHistoryFactory, ApplicationMasterActivities applicationMasterActivities, ApplicationDetailsActivities applicationDetailsActivities, GaeHelper gaeHelper) {
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:42:0::0 ApplicationMasterActivities cannot be resolved to a type
      [ERROR] error at public ScaffoldDesktopApp(ScaffoldDesktopShell shell, ApplicationRequestFactory requestFactory, EventBus eventBus, PlaceController placeController, PlaceHistoryFactory placeHistoryFactory, ApplicationMasterActivities applicationMasterActivities, ApplicationDetailsActivities applicationDetailsActivities, GaeHelper gaeHelper) {
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:42:0::0 ApplicationDetailsActivities cannot be resolved to a type
      [ERROR] error at this.applicationMasterActivities = applicationMasterActivities;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:48:0::0 applicationMasterActivities cannot be resolved or is not a field
      [ERROR] error at this.applicationDetailsActivities = applicationDetailsActivities;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:49:0::0 applicationDetailsActivities cannot be resolved or is not a field
      [ERROR] error at CachingActivityMapper cached = new CachingActivityMapper(applicationMasterActivities);
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:95:0::0 applicationMasterActivities cannot be resolved
      [ERROR] error at final ActivityManager detailsActivityManager = new ActivityManager(applicationDetailsActivities, eventBus);
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldDesktopApp.java:107:0::0 applicationDetailsActivities cannot be resolved
      [ERROR] error at import com.example.bikes.client.managed.activity.*;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:3:0::0 The import com.example.bikes.client.managed.activity cannot be resolved
      [ERROR] error at import com.example.bikes.client.managed.ui.ApplicationListPlaceRenderer;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:5:0::0 The import com.example.bikes.client.managed.ui cannot be resolved
      [ERROR] error at private final ScaffoldMobileActivities scaffoldMobileActivities;
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:97:0::0 ScaffoldMobileActivities cannot be resolved to a type
      [ERROR] error at public ScaffoldMobileApp(ScaffoldMobileShell shell, ApplicationRequestFactory requestFactory, EventBus eventBus, PlaceController placeController, ScaffoldMobileActivities scaffoldMobileActivities, PlaceHistoryFactory placeHistoryFactory, GaeHelper gaeHelper) {
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:104:0::0 ScaffoldMobileActivities cannot be resolved to a type
      [ERROR] error at final Renderer<ProxyListPlace> placePickerRenderer = new ApplicationListPlaceRenderer();
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:148:0::0 ApplicationListPlaceRenderer cannot be resolved to a type
      [ERROR] error at scaffoldMobileActivities.setRootActivity(defaultActivity);
      [ERROR] ^^^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:169:0::0 scaffoldMobileActivities cannot be resolved
      [ERROR] error at Activity nextActivity = scaffoldMobileActivities.getActivity(place);
      [ERROR] ^^^^^^^^^^^^^^^^^^^
      [ERROR] /Users/aswan/projects/uat/bikeshop/src/main/java/com/example/bikes/client/scaffold/ScaffoldMobileApp.java:173:0::0 scaffoldMobileActivities cannot be resolved
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

        Attachments

          Activity

            People

            Assignee:
            jtyrrell James Tyrrell
            Reporter:
            aswan Andrew Swan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: