-
Notifications
You must be signed in to change notification settings - Fork 0
Home
kimukou edited this page Jun 5, 2011
·
15 revisions
-
grails upgrade problem
- Because setting of plugin is initialized every time, a reinstallation is necessary
grails install plugin XXX - ie) using jetty server
grails uninstall-plugin tomcat
grails install-plugin jetty
grails install-plugin flex
grails install-plugin quartz
grails install-plugin webflow
- Because setting of plugin is initialized every time, a reinstallation is necessary
-
plugin version check
grails plugin-info webflow -
Has plugin install error occur
- manual delete %USERPROFILE%/.ivy2
- reinstall plugin
uninstall-plugin hibernate
install-plugin hibernate 1.2.3
-
grails deploy war
- grails package command runnning
grails war test13.zip - unzip test13.zip
- to copy JETTY_HOME/webapps or %JETTY_HOME%\contexts\test13.xml setting place
- ie)
<Set name="resourceBase">D:\workspace\test13\test13</Set>
- ie)
- grails package command runnning
-
gzipfilter
- since grails 1.2,GzipFilter was not standard support(use jetty plugin)
- I perform PROJECT_HOME/lib ehcache.jar copy, reference
- ehcache-core-2.0.0.jar
- ehcache-web-2.0.0.jar
grails install-templates-
src\templates\war\web.xml
GZip Filter in ehcache
GZipFilter
net.sf.ehcache.constructs.web.filter.GzipFilter
datasources
grails install-plugin datasources
- use 2 db server connection Hibernate
- I can’t running in the example of the FAQ ,show datasource sample
- The way of the description of grails-app/conf/Datasources.groovy
- It is tag of ds, name dsXX only running !
datasources = {
datasource(name: ‘ds2’) {
}
}
- It is tag of ds, name dsXX only running !
- hibernate description
- 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)
}
}
- If there is not a description of provider_class occour error
- using services define (ie) hogeeventService.groovy)
services(['hogeevent']) - ie) grails-app/conf/Datasources.groovy
-
grails war test123.zip, locateted WEB-INF/spring/resources.xml DI integration
log4j-xml
grails install-plugin log4j-xml
- Existing log4j-xml plugin revises the point to look with a fixed value at the strange position because I go
- edit-source is here
- only edit Log4jConfigurationInitializer.groovy
- A problem in war deploy
- nessesary to manual copy grails-app/conf/log4j.xml
- now version is fixed path(JVM runnning root path)
- ie) JETTY_HOME/log4j.xml
- ie) grails-app/conf/log4j.groovy