However, we did notice a couple of oddities with one of the projects:
- The main index.html page contained code similar to the following:
<g:isNotLoggedIn>
${response.sendRedirect(createLink(controller: 'login', action: 'auth')}
</g:isNotLoggedIn>
This was throwing an exception for some strange reason, which we traced to thecreateLink()tag library - we solved the problem by replacing thecreateLink()with a string:
<g:isnotloggedin>
${response.sendRedirect('login/auth')}
</g:isnotloggedin>
Although not particularly elegant, it solved the problem - perhaps someone can suggest whycreateLink()should have stopped working?
- The other problem we encountered was when trying to untar a TAR'd file, which resulting in a
ClassNotFoundException. It turns out that this library was provided throughant-1.7.0.jarwhich was part of the Grails 1.1.2 distribution, but this no longer appears to be the case. Finding and addingant-1.7.0.jarto the lib folder of our upgraded project solved the problem. Again, I'm not sure why this JAR has been dropped - perhaps someone can comment?

This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteI love readding, and thanks for your artical...................................................
ReplyDelete