Results 1 to 6 of 6

Thread: Grails version upgrade, which is better approach ?

  1. #1
    Join Date
    Nov 2010
    Posts
    4

    Default Grails version upgrade, which is better approach ?

    Hi,

    Currently my project is on Grails v1.0.5 and I am planning to upgrade it to the latest, v1.3.7.

    Is it better to use the Grails upgrade command or

    create an empty project under v1.3.7 and copy the source files across ?


    I read some postings recommending the latter approach but am not too sure.


    Any other tips on upgrading would be great.

    Thanks.

  2. #2
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    In this case, I would go with the second approach: create a fresh project and copy over your application code from the previous version. Note that things like the default index page (and possibly the errors page) moved at some point. Also, you might want to manually merge files that exist in both projects, such as Config.groovy and UrlMappings.groovy.

  3. #3
    Join Date
    Dec 2010
    Posts
    14

    Default

    Hi,

    I did same but I am getting below errors

    org.codehaus.groovy.control.multiplecompilationerr orsexception
    Unable to resolve class org.apache.commons.httpclient.HttpClient
    Unable to resolve class org.apache.commons.httpclient.params.HttpClientPar ams

    Any Idea why I an getting these erros?

    Thanks
    Prasad

  4. #4
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    Don't forget to copy the libraries (JAR file in 'lib') over to the new project, although I recommend you take this opportunity to declare them as dependencies in BuildConfig.groovy instead.

  5. #5
    Join Date
    Dec 2010
    Posts
    14

    Default

    I tried but still I am getting same problem.
    Then I added groovysoap-all-jsr06-0.1 JAR file to lib folder and all the files compiled.
    But when I deploy the war file I am getting below error messages
    validateJarFile(\\localhost\application\WEB-INF\lib\groovysoap-all-jsr06-0.1 JAR ) - jar not loaded
    ERROR RichuiGrailsPlugin - Errror initializing RichUI plugin

    Please suggest me to resolve this issue.

    Thanks,
    Prasad

  6. #6
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    I would increase the default logging level (perhaps to debug) to see what's going on. Also, check to see whether there is a stacktrace.log file containing an exception stack trace. I don't know why the RichUI plugin would be having problems.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •