I successfully upgrade Grails to the version 2.5.1It's quite simple.You only have to follow the release note about plugins update.
I met only one problem.I had this warning : Script 'Upgrade' not found.
To solve that issue, you have to select 3 (SetGrailsVersion) ant it will make the update.
|Running pre-compiled script
|Script 'Upgrade' not found, did you mean:
1) MigrateDocs
2) IntegrateWith
3) SetGrailsVersion
4) InstallDependency
5) DependencyReport
Please make a selection or enter Q to quit: 3
With this update, I solved the following error : http://stackoverflow.com/questions/32562678/grails-plugin-error-class-path-resource-cannot-be-resolved
Showing posts with label news. Show all posts
Showing posts with label news. Show all posts
Friday, September 18, 2015
Tuesday, March 31, 2015
Upgrade Grails 2.4.4 to 2.5.0
I successfully upgraded Grails 2.4.4 to 2.5.0 by following the Release Version text files ( https://github.com/grails/grails-core/releases/tag/v2.5.0 ).
I only upgraded plugins version in BuildConfig.groovy:
I also met an exception because I forget to change cache.region.factory_class in Datasource.groovy ( cf Release Version ).
Here is the exception :
To solves it, I only have to do the following change in Datasource.groovy :
hibernate {
...
cache.region.factory_class = 'org.hibernate.cache.SingletonEhCacheRegionFactory'
}
I only upgraded plugins version in BuildConfig.groovy:
- build ':tomcat:7.0.55.2'
- compile ':cache:1.1.8'
- compile ':scaffolding:2.1.2'
- compile ':asset-pipeline:2.1.5'
I also met an exception because I forget to change cache.region.factory_class in Datasource.groovy ( cf Release Version ).
Here is the exception :
2015-03-31 16:28:39,590 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'transactionManager_lookup' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager_lookup': Cannot resolve reference to bean 'sessionFactory_lookup' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory_lookup': Invocation of init method failed; nested exception is org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
2. Shutdown the earlier cacheManager before creating new one with same name.
The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
...
To solves it, I only have to do the following change in Datasource.groovy :
hibernate {
...
cache.region.factory_class = 'org.hibernate.cache.SingletonEhCacheRegionFactory'
}
Monday, November 18, 2013
JMC in Java 7u40
A new tools is available in bin directory of your Java distribution ( 7u40) to manage, monitor, profile and eliminate memory leaks. More info here :
http://blog.eisele.net/2013/09/java-mission-control-52-is-finally-here.html
http://blog.eisele.net/2013/09/java-mission-control-52-is-finally-here.html
Sunday, November 10, 2013
Google+
New google+ page about my blog http://totalprogus.blogspot.fr/
Wednesday, September 25, 2013
Friday, July 5, 2013
The JPA 2.0 EntityManager vs. the Hibernate Session: Which one to use?
Here is an article with an interview of Emmanuel Bernard a data architect on the JBoss Hibernate team.
http://www.theserverside.com/news/2240186700/The-JPA-20-EntityManager-vs-the-Hibernate-Session-Which-one-to-use
Link : http://www.emmanuelbernard.com/
http://www.theserverside.com/news/2240186700/The-JPA-20-EntityManager-vs-the-Hibernate-Session-Which-one-to-use
Link : http://www.emmanuelbernard.com/
Sunday, June 30, 2013
Why clojure is the next big thing ?
There is plenty programming languages and it's difficult to choice between them.
Here is an interesting article about Clojure. I don't know if Clojure is the the language of the future but I think this article will help you to get a general idea about it :
http://technotzen.wordpress.com/2013/06/06/why-clojure-is-the-next-big-thing/
Friday, June 28, 2013
Koans : learn with unit test !
Recently, I spoke to you about Koans and Groovy. But, I didn't know that Koans exists also for other programming language like JavaScript and Groovy ...
This tips come from this excellent blog : http://technotzen.wordpress.com/2013/06/01/koan-are-the-best-way-to-learn-code/
This tips come from this excellent blog : http://technotzen.wordpress.com/2013/06/01/koan-are-the-best-way-to-learn-code/
Thursday, June 27, 2013
Scala choice ?
Here is an interesting interview of Cary Horstmann on the web Oracle web site :
http://www.oracle.com/technetwork/articles/java/horstmann-1958988.html
http://www.oracle.com/technetwork/articles/java/horstmann-1958988.html
Wednesday, June 26, 2013
AsciiDoc vs Markdown
AscciDoc and Markdown allow you to write text with lightweight markup language for writing for example HTML pages. Theses two languages are popular (for example Markdown used by GitHub).
With it, by using a very easy syntax, you will be able to generate HTML page.
Here is an example for Markdown
What is the best choice ?
I can't answer to that now but if you want a comparison betweem them, there is an interesting Thread on GitHub : https://github.com/awestruct/web-editor/issues/12#issuecomment-19943154
Usefull Links :
| MarkDown |
AsciiDoc Text based document generation http://www.methods.co.nz/asciidoc/
Tuesday, June 25, 2013
IT trend : Redhat EHL choose MariaDB instead of Mysql !
Here is a small interesting news that shows the actual trend...
Mysql is everywhere ! However, more and more, we hear that there is migration to MariaDB ( a Mysql fork !). The last migration is RedHat !
The first reason is because MaraiDB is really Open Source and not Oracle Open source :-). An other reason should be performance ...
If you want to compare Mysql and MariaDB :
https://kb.askmonty.org/en/mariadb-versus-mysql-features/
The RedHat choice :
http://www.itwire.com/business-it-news/open-source/60292-red-hat-ditches-mysql-switches-to-mariadb
Mysql is everywhere ! However, more and more, we hear that there is migration to MariaDB ( a Mysql fork !). The last migration is RedHat !
The first reason is because MaraiDB is really Open Source and not Oracle Open source :-). An other reason should be performance ...
If you want to compare Mysql and MariaDB :
https://kb.askmonty.org/en/mariadb-versus-mysql-features/
The RedHat choice :
http://www.itwire.com/business-it-news/open-source/60292-red-hat-ditches-mysql-switches-to-mariadb
Wednesday, June 19, 2013
French article about IntelliJ
I publish a french article about IntelliJ on developpez.com :
http://damienrieu.developpez.com/tutoriel/java/nouveautes-intellij-12/
I will try to translate it sooner.
Saturday, June 8, 2013
Grails instead of Play 1.X ?
Play 1.X becomes old. So, which web framework can I use ?
Play 2 with Scala or Grails. I deciced to learn Grails because it has similarity with Play 1.X.It seems to me Mature and I prefer Groovy syntax.
Here is a good link to learn Grails with Mysql database : http://learnedstuffs.wordpress.com/2012/02/21/using-mysql-as-database-in-grails/
Wednesday, May 1, 2013
http://java.dzone.com/articles/java-ee-7-approved
If you want to see which JSR will be in Java 7, see that link : http://java.dzone.com/articles/java-ee-7-approved
Saturday, April 27, 2013
CRaSH 1.2.2 release
New version of CRaSH is available.
This version make minor improvement. More informations on https://groups.google.com/forum/?fromgroups=#!topic/crash-users/p06x34J_Uy8
You should see also http://www.crashub.org/
This version make minor improvement. More informations on https://groups.google.com/forum/?fromgroups=#!topic/crash-users/p06x34J_Uy8
You should see also http://www.crashub.org/
Friday, March 22, 2013
CRaSH : a good way to test it !
If you don't know CRaSH, it's time to test it !
You can test it online and discover all the potential of this wonderful tool !
http://try.crashub.org
Saturday, March 9, 2013
JavaFx project on GitHub
To learn JavaFx, I've began a small project on GitHub.
I use JavaFx 2 and Maven.Perhaps, It could help you to begin in your project.
See https://github.com/drieu/MetricViewer for more information.
Wednesday, December 26, 2012
Technorati
Hi,
I just add my blog on Technorati with the reference : SNHEY74ZG7EV
I just add my blog on Technorati with the reference : SNHEY74ZG7EV
Monday, October 8, 2012
Closure Lambda and Java 8
I found a good link about Closure (Lambda project) of Java 8.With this article, you will have a good idea of what is Lamda : http://java.amitph.com/2012/08/at-first-sight-with-closures-in-java.html
Keep in my, that Java 8 come next year !
Saturday, October 6, 2012
Junit @Rule
Recently,
I've found an article on Junit about annotation @Rule.I didn’t know
this annotation before.I will present you briefly how it works and I
will give you some interesting links.
In earlier version of Junit, we need to declare @SetUp and @TearDown for each test class.
Now, with newer version of Junit, it’s possible to define its own rule with @Rule and you will have the possibility to execute code during test (Same thing than AOP).
To help you to understand, here is some standard rules :
Ref :
http://blog.objetdirect.com/divers/quoi-de-neuf-chez-junit
http://www.dzone.com/links/r/junit_rules_3.html
In earlier version of Junit, we need to declare @SetUp and @TearDown for each test class.
Now, with newer version of Junit, it’s possible to define its own rule with @Rule and you will have the possibility to execute code during test (Same thing than AOP).
To help you to understand, here is some standard rules :
- ExpectedException: check if an exception is thrown during test
- Timeout: check that one test doesn’t exceed a given time
- ExternalResource: Open or close a resource.
- TemporaryFolder: create and destroy a temporary directory.
Ref :
http://blog.objetdirect.com/divers/quoi-de-neuf-chez-junit
http://www.dzone.com/links/r/junit_rules_3.html
Subscribe to:
Posts (Atom)
