Grails
  1. Grails
  2. GRAILS-8287

Tomcat plugin fails to resolve the first time you run a new application

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-RC2
    • Component/s: Plugins
    • Labels:
      None

      Description

      Created Grails Application at /Users/jeff/working/someapp
      working $ cd someapp
      someapp $ rm -rf ~/.grails
      someapp $ grails run-app
      | Compiling 39 source files
      
      | Compiling 8 source files.....
      | Error WARNING: No default container found, installing Tomcat..
      | Plugin 'tomcat' with version '2.0.0.BUILD-SNAPSHOT' is already installed
      | Error Error executing script RunApp: java.lang.ClassNotFoundException: org.grails.plugins.tomcat.TomcatServerFactory (Use --stacktrace to see the full trace)
      

        Issue Links

          Activity

          Hide
          Jeff Scott Brown added a comment -

          The change to application.properties is probably relevant:

          working $ grails create-app testapp
          | Created Grails Application at /Users/jeff/working/testapp
          working $ cd testapp/
          testapp $ rm -rf ~/.grails
          testapp $ 
          testapp $ cat application.properties 
          #Grails Metadata file
          #Thu Nov 10 18:33:53 CST 2011
          app.grails.version=2.0.0.BUILD-SNAPSHOT
          app.name=testapp
          app.servlet.version=2.5
          app.version=0.1
          testapp $ 
          testapp $ grails run-app
          | Compiling 39 source files
          
          | Compiling 8 source files.....
          | Error WARNING: No default container found, installing Tomcat..
          | Plugin 'tomcat' with version '2.0.0.BUILD-SNAPSHOT' is already installed
          | Error Error executing script RunApp: java.lang.ClassNotFoundException: org.grails.plugins.tomcat.TomcatServerFactory (Use --stacktrace to see the full trace)
          testapp $ 
          testapp $ cat application.properties 
          #Grails Metadata file
          #Thu Nov 10 18:36:06 CST 2011
          app.grails.version=2.0.0.BUILD-SNAPSHOT
          app.name=testapp
          app.servlet.version=2.5
          app.version=0.1
          plugins.hibernate=2.0.0.BUILD-SNAPSHOT
          plugins.jquery=1.6.1.1
          plugins.resources=1.1.1
          plugins.svn=1.0.0.M1
          plugins.tomcat=2.0.0.BUILD-SNAPSHOT
          testapp $ 
          testapp $ grails run-app
          | Server running. Browse to http://localhost:8080/testapp
          
          Show
          Jeff Scott Brown added a comment - The change to application.properties is probably relevant: working $ grails create-app testapp | Created Grails Application at /Users/jeff/working/testapp working $ cd testapp/ testapp $ rm -rf ~/.grails testapp $ testapp $ cat application.properties #Grails Metadata file #Thu Nov 10 18:33:53 CST 2011 app.grails.version=2.0.0.BUILD-SNAPSHOT app.name=testapp app.servlet.version=2.5 app.version=0.1 testapp $ testapp $ grails run-app | Compiling 39 source files | Compiling 8 source files..... | Error WARNING: No default container found, installing Tomcat.. | Plugin 'tomcat' with version '2.0.0.BUILD-SNAPSHOT' is already installed | Error Error executing script RunApp: java.lang.ClassNotFoundException: org.grails.plugins.tomcat.TomcatServerFactory (Use --stacktrace to see the full trace) testapp $ testapp $ cat application.properties #Grails Metadata file #Thu Nov 10 18:36:06 CST 2011 app.grails.version=2.0.0.BUILD-SNAPSHOT app.name=testapp app.servlet.version=2.5 app.version=0.1 plugins.hibernate=2.0.0.BUILD-SNAPSHOT plugins.jquery=1.6.1.1 plugins.resources=1.1.1 plugins.svn=1.0.0.M1 plugins.tomcat=2.0.0.BUILD-SNAPSHOT testapp $ testapp $ grails run-app | Server running. Browse to http://localhost:8080/testapp

            People

            • Assignee:
              Graeme Rocher
              Reporter:
              Burt Beckwith
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development