Grails upgrade from 1.0.4 to 1.1 problems – part 2

If after upgrade to version 1.1 you will be hit by error like this:

  1.  
  2. ...
  3. log4j:ERROR Could not read configuration file from URL [file:/C:/GrailsApp/web-app/W
  4. java.io.FileNotFoundException: C:\GrailsApp\web-app\WEB-INF\classes\log4j.properties
  5. ...
  6.  

go to web.xml template file in \src\templates\war\ directory of your project and delete lines:

  1.  
  2. ...
  3. <context-param>
  4. <param-name>log4jConfigLocation</param-name>
  5. <param-value>/WEB-INF/classes/log4j.properties</param-value>
  6. </context-param>
  7. ...
  8.  

1 Comment

RSS feed for comments on this post. TrackBack URI

  1. Grails upgrade from 1.0.4 to 1.1 problems – part 2…

    If after upgrade to version 1.1 you will be hit by error like this: … log4j:ERROR Could not read configuration file from URL [file:/C:/GrailsApp/web-app/W java.io.FileNotFoundException: C:GrailsAppweb-appWEB-INFclasseslog4j.properties ……

    Trackback by grailstutorial.org — January 19, 2011 #

Sorry, the comment form is closed at this time.

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.