Announcement Announcement Module
No announcement yet.
Wierdness after upgrading to 2.0RC2 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wierdness after upgrading to 2.0RC2

    I recently upgraded a Grails project from 1.3.7 to to 2.0 RC1 and later to 2.0 RC2 (STS 2.8.1). I'm currently seeing some odd behavior that leads me to suspect that something is wonky in my project or configuration. Namely:

    1. Used with JDK 1.7, "grails war" fails with the error:

    javac: target release 1.6 conflicts with default source release 1.7

    2. In a number of my GSPs, I have expressions like "${resource(...)}" or href="${createLink(...)}" that sometimes result in a blank expression or the correct expression ending up in a funny location in the page. I'm using layouts.

    Any suggestions on what might be wrong with my configuration? Thanks.

  • #2
    This can be resolved by putting

    grails.project.source.level = 1.6

    Into your BuildConfig.groovy file


    • #3
      Thanks for the quick response. I see that you have a fix for the JDK 1.7 issue coming up in RC3. That's great!

      The other wierdness I've seen is already discussed in the Grails mailing list, so I need not follow up here:

      Mailing list: Messed up GSP layout rendering