Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-763

[grails] Refresh dependencies doesn't work with Selenium RC and Grails 1.2.0

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2.1.RELEASE
    • Fix Version/s: Sprint 9, 2.3.1.RELEASE
    • Component/s: None
    • Labels:
      None
    • Environment:
      STS 2.2.1 on Vista and Snow Leopard

      Description

      Hi,

      After upgrading my project from Grails 1.1.1 to 1.2.0 I had to remove and install all Grails plugins.
      As advised I have installed selenium RC 0.2-SNAPSHOT.
      Everything works fine and I "Refresh dependencies" works when selenium-rc is not installed.

      When I install selenium-rc, seems to be not working because the plugins sources are no listed in .claspath as it used to be.

      The same project works in the command line.

        Activity

        Hide
        fsamir Franklin Dattein added a comment -

        I just realized it might be happening due to an extra "-" in the name of this plugin: "selenium-rc-0.2-SNAPSHOT"

        the resulting classpathentry would be like the example below, which is not a valid folder in the file system.

        <classpathentry kind="src" path="selenium-rc-0.2-SNAPSHOT-src-groovy">

        Show
        fsamir Franklin Dattein added a comment - I just realized it might be happening due to an extra "-" in the name of this plugin: "selenium-rc-0.2-SNAPSHOT" the resulting classpathentry would be like the example below, which is not a valid folder in the file system. <classpathentry kind="src" path="selenium-rc-0.2-SNAPSHOT-src-groovy">
        Hide
        cdupuis Christian Dupuis added a comment -

        Hmm, I just tried to recreate this issue on my end and can't. Can you please a recent nightly snapshot of STS to see if that might be something we fixed in the meantime.

        Also please try creating a new project with Grails 1.2.0 and install the selenium-rc plugin as this is what I did and what worked.

        If that all does not help would you be able to attach a sample project showing this error?

        Christian

        Show
        cdupuis Christian Dupuis added a comment - Hmm, I just tried to recreate this issue on my end and can't. Can you please a recent nightly snapshot of STS to see if that might be something we fixed in the meantime. Also please try creating a new project with Grails 1.2.0 and install the selenium-rc plugin as this is what I did and what worked. If that all does not help would you be able to attach a sample project showing this error? Christian
        Hide
        csterwa Chris Sterling added a comment -

        I am having a similar issue using the Grails selenium-rc plugin with Grails version 1.2.3 on Mac OS X. Have tried re-installing plugin and other things to fix issue but still not working. Here is the error that I get:

        org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, .../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: The field 'MIN_VALUE' is declared multiple times.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: The field 'MAX_VALUE' is declared multiple times.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: The field '$VALUES' is declared multiple times.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType[] values()' in class 'grails.plugins.selenium.pageobjects.FieldType'.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType valueOf(java.lang.String)' in class 'grails.plugins.selenium.pageobjects.FieldType'.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType $INIT([Ljava.lang.Object' in class 'grails.plugins.selenium.pageobjects.FieldType'.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType[] values()' in class 'grails.plugins.selenium.pageobjects.FieldType'.
        @ line -1, column -1...../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType valueOf(java.lang.String)' in class 'grails.plugins.selenium.pageobjects.FieldType'.
        @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType $INIT([Ljava.lang.Object' in class 'grails.plugins.selenium.pageobjects.FieldType'.
        @ line -1, column -1.
        9 errors

        at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296)
        at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:973)
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511)
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:489)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:466)
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:450)
        at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57)
        at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170)
        at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:816)
        at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:544)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at _GrailsCompile$_run_closure4_closure10.doCall(_GrailsCompile.groovy:116)
        at _GrailsCompile$_run_closure4_closure10.doCall(_GrailsCompile.groovy)
        at _GrailsSettings$_run_closure10.doCall(_GrailsSettings.groovy:282)
        at _GrailsSettings$_run_closure10.call(_GrailsSettings.groovy)
        at _GrailsCompile$_run_closure4.doCall(_GrailsCompile.groovy:103)
        at _GrailsCompile$_run_closure3.doCall(_GrailsCompile.groovy:68)
        at _GrailsPackage$_run_closure2_closure9.doCall(_GrailsPackage.groovy:83)
        at _GrailsPackage$_run_closure2_closure9.doCall(_GrailsPackage.groovy)
        at _GrailsSettings$_run_closure10.doCall(_GrailsSettings.groovy:282)
        at _GrailsSettings$_run_closure10.call(_GrailsSettings.groovy)
        at _GrailsPackage$_run_closure2.doCall(_GrailsPackage.groovy:82)
        at RunApp$_run_closure1.doCall(RunApp.groovy:28)
        at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:344)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:334)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.processTargets(Gant.groovy:495)
        at gant.Gant.processTargets(Gant.groovy:480)
        at org.grails.maven.plugin.AbstractGrailsMojo.runGrails(AbstractGrailsMojo.java:277)
        at org.grails.maven.plugin.GrailsRunAppHttpsMojo.execute(GrailsRunAppHttpsMojo.java:35)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        Compilation error: Compilation Failed

        I had installed using Maven grails plugin:

        mvn grails:install-plugin -DpluginName=selenium-rc

        And it actually works until I do a clean build. This is not an STS issue necessarily but it does seem selenium-rc plugin conflicts with spring-security-core and acegi Grails plugins.

        Show
        csterwa Chris Sterling added a comment - I am having a similar issue using the Grails selenium-rc plugin with Grails version 1.2.3 on Mac OS X. Have tried re-installing plugin and other things to fix issue but still not working. Here is the error that I get: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, .../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: The field 'MIN_VALUE' is declared multiple times. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: The field 'MAX_VALUE' is declared multiple times. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: The field '$VALUES' is declared multiple times. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType[] values()' in class 'grails.plugins.selenium.pageobjects.FieldType'. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType valueOf(java.lang.String)' in class 'grails.plugins.selenium.pageobjects.FieldType'. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType $INIT([Ljava.lang.Object ' in class 'grails.plugins.selenium.pageobjects.FieldType'. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType[] values()' in class 'grails.plugins.selenium.pageobjects.FieldType'. @ line -1, column -1...../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType valueOf(java.lang.String)' in class 'grails.plugins.selenium.pageobjects.FieldType'. @ line -1, column -1..../plugins/selenium-rc-1.0.2/src/groovy/grails/plugins/selenium/pageobjects/GrailsFormPage.groovy: -1: Repetitive method name/signature for method 'grails.plugins.selenium.pageobjects.FieldType $INIT([Ljava.lang.Object ' in class 'grails.plugins.selenium.pageobjects.FieldType'. @ line -1, column -1. 9 errors at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:973) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:489) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:466) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:450) at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57) at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170) at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:816) at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:544) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at _GrailsCompile$_run_closure4_closure10.doCall(_GrailsCompile.groovy:116) at _GrailsCompile$_run_closure4_closure10.doCall(_GrailsCompile.groovy) at _GrailsSettings$_run_closure10.doCall(_GrailsSettings.groovy:282) at _GrailsSettings$_run_closure10.call(_GrailsSettings.groovy) at _GrailsCompile$_run_closure4.doCall(_GrailsCompile.groovy:103) at _GrailsCompile$_run_closure3.doCall(_GrailsCompile.groovy:68) at _GrailsPackage$_run_closure2_closure9.doCall(_GrailsPackage.groovy:83) at _GrailsPackage$_run_closure2_closure9.doCall(_GrailsPackage.groovy) at _GrailsSettings$_run_closure10.doCall(_GrailsSettings.groovy:282) at _GrailsSettings$_run_closure10.call(_GrailsSettings.groovy) at _GrailsPackage$_run_closure2.doCall(_GrailsPackage.groovy:82) at RunApp$_run_closure1.doCall(RunApp.groovy:28) at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324) at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334) at gant.Gant$_dispatch_closure6.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:344) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:334) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.processTargets(Gant.groovy:495) at gant.Gant.processTargets(Gant.groovy:480) at org.grails.maven.plugin.AbstractGrailsMojo.runGrails(AbstractGrailsMojo.java:277) at org.grails.maven.plugin.GrailsRunAppHttpsMojo.execute(GrailsRunAppHttpsMojo.java:35) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Compilation error: Compilation Failed I had installed using Maven grails plugin: mvn grails:install-plugin -DpluginName=selenium-rc And it actually works until I do a clean build. This is not an STS issue necessarily but it does seem selenium-rc plugin conflicts with spring-security-core and acegi Grails plugins.

          People

          • Assignee:
            Unassigned
            Reporter:
            fsamir Franklin Dattein
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: