Skip to content
kimukou edited this page Jun 5, 2011 · 15 revisions

grails develop memo(for windows)

  1. eclipse_debug_setting
  2. eclipse_command_setting
  3. batfile_setting

grails memo

  1. grails upgrade problem
    1. Because setting of plugin is initialized every time, a reinstallation is necessary
      grails install plugin XXX
    2. ie) using jetty server
      grails uninstall-plugin tomcat
      grails install-plugin jetty
      grails install-plugin flex
      grails install-plugin quartz
      grails install-plugin webflow
  2. plugin version check
    grails plugin-info webflow
  3. Has plugin install error occur
    1. manual delete %USERPROFILE%/.ivy2
    2. reinstall plugin
      uninstall-plugin hibernate
      install-plugin hibernate 1.2.3
  4. grails deploy war
    1. grails package command runnning
      grails war test13.zip
    2. unzip test13.zip
    3. to copy JETTY_HOME/webapps or %JETTY_HOME%\contexts\test13.xml setting place
      1. ie) <Set name="resourceBase">D:\workspace\test13\test13</Set>
  5. gzipfilter
    1. since grails 1.2,GzipFilter was not standard support(use jetty plugin)
    2. I perform PROJECT_HOME/lib ehcache.jar copy, reference
      1. ehcache-core-2.0.0.jar
      2. ehcache-web-2.0.0.jar
    3. grails install-templates
    4. src\templates\war\web.xml

      GZip Filter in ehcache
      GZipFilter
      net.sf.ehcache.constructs.web.filter.GzipFilter

grails plugin memo

datasources
grails install-plugin datasources

  1. use 2 db server connection Hibernate
  2. I can’t running in the example of the FAQ ,show datasource sample
  3. The way of the description of grails-app/conf/Datasources.groovy
    1. It is tag of ds, name dsXX only running !
      datasources = {
      datasource(name: ‘ds2’) {
      }
      }
  4. hibernate description
    1. If there is not a description of provider_class occour error
      hibernate {
      cache {
      provider_class(‘org.hibernate.cache.EhCacheProvider’)
      use_second_level_cache(true)
      use_query_cache(true)
      }
      }
  5. using services define (ie) hogeeventService.groovy)
    services(['hogeevent'])
  6. ie) grails-app/conf/Datasources.groovy
  7. grails war test123.zip , locateted WEB-INF/spring/resources.xml DI integration
    1. ie) WEB-INF/spring/resources.xml

log4j-xml
grails install-plugin log4j-xml

  1. Existing log4j-xml plugin revises the point to look with a fixed value at the strange position because I go
    1. edit-source is here
    2. only edit Log4jConfigurationInitializer.groovy
  2. A problem in war deploy
    1. nessesary to manual copy grails-app/conf/log4j.xml
    2. now version is fixed path(JVM runnning root path)
      1. ie) JETTY_HOME/log4j.xml
  3. ie) grails-app/conf/log4j.groovy

Clone this wiki locally