5 Replies Latest reply on Mar 25, 2013 9:18 AM by Mauricio Salatino

    Console customization with SmartGWT

    fabo Newbie

      Hi,

       

      I am trying to modify the BPM console by substituting the ListBox (which shows the tasks assigned to a user) by a SmartGWT ListGrid.

       

      I have added a new dependency in bpm-console\gui\pom.xml

      {code}

      <dependency>

           <groupId>com.smartgwt</groupId>

           <artifactId>smartgwt</artifactId>

           <version>3.1</version>

      </dependency>

      {code}

       

       

      In bpm-console\gui\app-base\src\main\java\org\jboss\bpm\console\Application.gwt.xml I have added a new inheritance:

      {code}

      <inherits name="com.smartgwt.SmartGwt"/>

      {code}

       

      The app-base is build successfully. Unfortunately, the jbpm-console fails to build. Here is the stack trace:

       

       

      {code}

      [INFO] ------------------------------------------------------------------------

      [INFO] Building JBoss BPM - Console::GUI::Webapp::jbpm 2.7.0-SNAPSHOT

      [INFO] ------------------------------------------------------------------------

      [WARNING] The POM for com.smartgwt:smartgwt:jar:3.1 is missing, no dependency information available

      [INFO]

      [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt-console-jbpm ---

      [INFO] Deleting C:\Users\IT1\Desktop\jBPM-Projekt\github\bpm-console\gui\wars\jbpm\target

      [INFO]

      [INFO] --- maven-dependency-plugin:2.1:unpack-dependencies (unpack-gwt-sources) @ gwt-console-jbpm ---

      [INFO] Unpacking C:\m2\org\jboss\bpm\gwt-console-app-base\2.7.0-SNAPSHOT\gwt-console-app-base-2.7.0-SNAPSHOT-sources.jar to

        C:\Users\IT1\Desktop\jBPM-Projekt\github\bpm-console\gui\wars\jbpm\target\generated-sources\unpacked-gwt-sources

         with includes null and excludes:null

      [INFO]

      [INFO] --- maven-dependency-plugin:2.1:unpack-dependencies (unpack-templates) @ gwt-console-jbpm ---

      [INFO] Unpacking C:\m2\org\jboss\bpm\gwt-console-war-templates\2.7.0-SNAPSHOT\gwt-console-war-templates-2.7.0-SNAPSHOT.jar to

        C:\Users\IT1\Desktop\jBPM-Projekt\github\bpm-console\gui\wars\jbpm\target\unpacked-templates

         with includes null and excludes:null

      [INFO]

      [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ gwt-console-jbpm ---

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

      [INFO] Copying 4 resources

      [INFO] Copying 1 resource

      [INFO]

      [INFO] --- maven-resources-plugin:2.4.3:copy-resources (filter-unpacked-templates) @ gwt-console-jbpm ---

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

      [INFO] Copying 6 resources

      [INFO]

      [INFO] --- maven-resources-plugin:2.4.3:copy-resources (merge-webapp-with-resources) @ gwt-console-jbpm ---

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

      [INFO] Copying 12 resources

      [INFO]

      [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ gwt-console-jbpm ---

      [INFO] Compiling 145 source files to C:\Users\IT1\Desktop\jBPM-Projekt\github\bpm-console\gui\wars\jbpm\target\classes

      [INFO]

      [INFO] --- gwt-maven-plugin:1.3-12393:clean (gwt-clean-compile) @ gwt-console-jbpm ---

      [INFO] auto discovered modules [org.jboss.bpm.console.Application]

      [INFO]

      [INFO] --- gwt-maven-plugin:1.3-12393:compile (gwt-clean-compile) @ gwt-console-jbpm ---

      [INFO] using GWT jars from project dependencies : 2.0.4

      [WARNING] You should not declare gwt-dev as a project dependency. This may introduce complex dependency conflicts

      [INFO] auto discovered modules [org.jboss.bpm.console.Application]

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] establishing classpath list (scope = compile)

      [INFO] Loading inherited module 'com.smartgwt.SmartGwt'

      [INFO]    [WARN] Setting configuration property named document.compatMode in com.smartgwt.SmartGwt that has not been previously defined.  This may be disallowed in the future.

      [INFO] Compiling module org.jboss.bpm.console.Application

      [INFO]    Validating newly compiled units

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/util/JSOHelper.java'

      [INFO]          [ERROR] Line 27: The import com.google.gwt.core.client.JsDate cannot be resolved

      [INFO]          [ERROR] Line 252: The method convertToJavaScriptDate(Date) from the type JSOHelper refers to the missing type JsDate

      [INFO]          [ERROR] Line 600: JsDate cannot be resolved to a type

      [INFO]          [ERROR] Line 608: JsDate cannot be resolved to a type

      [INFO]          [ERROR] Line 611: The method toJavaScriptDate() from the type LogicalDate refers to the missing type JsDate

      [INFO]          [ERROR] Line 613: The method toJavaScriptDate() from the type LogicalTime refers to the missing type JsDate

      [INFO]          [ERROR] Line 615: The method createJavaScriptDate(double) from the type JSOHelper refers to the missing type JsDate

      [INFO]          [ERROR] Line 780: The method convertToJavaScriptDate(Date) from the type JSOHelper refers to the missing type JsDate

      [INFO]          [ERROR] Line 786: JsDate cannot be resolved to a type

      [INFO]          [ERROR] Line 787: The method getJSLogicalDate(int, int, int) from the type JSOHelper refers to the missing type JsDate

      [INFO]          [ERROR] Line 789: JsDate cannot be resolved to a type

      [INFO]          [ERROR] Line 793: JsDate cannot be resolved to a type

      [INFO]          [ERROR] Line 798: JsDate cannot be resolved to a type

      [INFO]          [ERROR] Line 815: The method convertToJavaScriptDate(Date) from the type JSOHelper refers to the missing type JsDate

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/util/LogicalDate.java'

      [INFO]          [ERROR] Line 3: The import com.google.gwt.core.client.JsDate cannot be resolved

      [INFO]          [ERROR] Line 25: JsDate cannot be resolved to a type

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/widgets/BaseWidget.java'

      [INFO]          [ERROR] Line 843: The method convertToJavaScriptDate(Date) from the type JSOHelper refers to the missing type JsDate

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/widgets/form/fields/FormItem.java'

      [INFO]          [ERROR] Line 4168: The method convertToJavaScriptDate(Date) from the type JSOHelper refers to the missing type JsDate

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/util/LogicalTime.java'

      [INFO]          [ERROR] Line 3: The import com.google.gwt.core.client.JsDate cannot be resolved

      [INFO]          [ERROR] Line 25: JsDate cannot be resolved to a type

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/core/BaseClass.java'

      [INFO]          [ERROR] Line 411: The method convertToJavaScriptDate(Date) from the type JSOHelper refers to the missing type JsDate

      [INFO]       [WARN] Warnings in 'jar:file:/C:/m2/com/googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/mosaic/ui/client/impl/GlassPanelImpl.java'

      [INFO]          [WARN] Line 52: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'

      [INFO]          [WARN] Line 60: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/util/LogicalTime_CustomFieldSerializer.java'

      [INFO]          [ERROR] Line 3: The import com.google.gwt.user.client.rpc.CustomFieldSerializer cannot be resolved

      [INFO]          [ERROR] Line 8: CustomFieldSerializer cannot be resolved to a type

      [INFO]          [ERROR] Line 23: The method deserializeInstance(SerializationStreamReader, LogicalTime) of type LogicalTime_CustomFieldSerializer must override or implement a supertype method

      [INFO]          [ERROR] Line 28: The method hasCustomInstantiateInstance() of type LogicalTime_CustomFieldSerializer must override or implement a supertype method

      [INFO]          [ERROR] Line 33: The method instantiateInstance(SerializationStreamReader) of type LogicalTime_CustomFieldSerializer must override or implement a supertype method

      [INFO]          [ERROR] Line 38: The method serializeInstance(SerializationStreamWriter, LogicalTime) of type LogicalTime_CustomFieldSerializer must override or implement a supertype method

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/org/gwt/mosaic/ui/client/table/AbstractColumnDefinition.java'

      [INFO]          [ERROR] Line 553: No source code is available for type org.gwt.beansbinding.core.client.PropertyResolutionException; did you forget to inherit a required module?

      [INFO]       [ERROR] Errors in 'jar:file:/C:/m2/com/smartgwt/smartgwt/3.1/smartgwt-3.1.jar!/com/smartgwt/client/util/LogicalDate_CustomFieldSerializer.java'

      [INFO]          [ERROR] Line 3: The import com.google.gwt.user.client.rpc.CustomFieldSerializer cannot be resolved

      [INFO]          [ERROR] Line 8: CustomFieldSerializer cannot be resolved to a type

      [INFO]          [ERROR] Line 23: The method deserializeInstance(SerializationStreamReader, LogicalDate) of type LogicalDate_CustomFieldSerializer must override or implement a supertype method

      [INFO]          [ERROR] Line 28: The method hasCustomInstantiateInstance() of type LogicalDate_CustomFieldSerializer must override or implement a supertype method

      [INFO]          [ERROR] Line 33: The method instantiateInstance(SerializationStreamReader) of type LogicalDate_CustomFieldSerializer must override or implement a supertype method

      [INFO]          [ERROR] Line 38: The method serializeInstance(SerializationStreamWriter, LogicalDate) of type LogicalDate_CustomFieldSerializer must override or implement a supertype method

      [INFO]    Finding entry point classes

      [INFO]       [ERROR] Unable to find type 'com.smartgwt.client.SmartGwtEntryPoint'

      [INFO]          [ERROR] Hint: Previous compiler errors may have made this type unavailable

      [INFO]          [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 20.904s

      [INFO] Finished at: Fri Mar 22 17:59:36 CET 2013

      [INFO] Final Memory: 17M/45M

      [INFO] ------------------------------------------------------------------------

      {code}

       

      Any help is appreciated. Thanks!