Posts tagged as:

grails

Amazon web services via Grails

October 10, 2009

I just recently noticed that Amazon have changed the way you invoke their Product Advertising API - you now need to sign requests as described in the Example REST Requests.
I obviously haven’t been reading my emails, since the first clue came when I saw:
<Error><Code>MissingParameter</Code><Message>The request must contain the parameter Signature.</Message></Error>
Luckily, they have a java example [...]

Read the full article →

Modifying web.xml in Grails

April 1, 2009

I’m trying out Grails application hosting at Mor.ph with a free developer account. To put up a sample application, I wanted to be able to protect the site with basic authentication so that it won’t be accidentally found and played with. So, following the Mor.ph instructions, I needed to modify web.xml to add security constraints [...]

Read the full article →

Grails Openid plugin and Xerces

March 18, 2009

I just created a grails 1.1 application, and installed the openid plugin. When starting the application, I got the following exception:
2009-03-17 22:25:41,090 [main] ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘consumerManager’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.openid4java.consumer.ConsumerManager]: Constructor threw exception; nested exception [...]

Read the full article →

Groovy and Grails books

March 15, 2009

The catalog of Groovy and Grails books keeps growing, so if you are in the market for some, check out these sources:
Pragmatic programmer

Grails
Groovy

Apress

Grails
Groovy

Manning

Grails in Action
Groovy in Action

On Amazon:

Read the full article →

Do you need a Grails developer in Sydney?

February 18, 2009

If you haven’t heard of Grails, head on over to Grails.org and have a look. Grails breaks down the barriers to the Java platform and gives you a highly productive environment for building web applications - and you are always free to utilise plain Java seamlessly.
Having used Grails on my personal projects, and written several [...]

Read the full article →

URI “file:./” is not hierarchical

October 26, 2008

Just recently I came across the following exception when deploying a simple Grails application to Tomcat:
URI “file:./” is not hierarchical
The application was so simple and ran locally on tomcat-6.0.16 - it had to be something environmental. Comparing the differences between machines showed that it was the JVM that was different.
The JVM that produced the error [...]

Read the full article →

grails-selenium-0.5

September 16, 2008

I’ve just released a new version (0.5) of the selenium plugin, which fixes compatibility problems with Grails 1.0.3. Hopefully all is well now and I’d like to apologise to all the users out there who ran into problems. If you encounter any more issues, you can email me at paul@javathinking.com.
On another note, it would be [...]

Read the full article →

Grails, favicon, and urls

June 1, 2008

I’ve just spent a little too much time trying to get my favicon working properly on a new grails application.
The issue I encountered was due to the fact that I wanted users to be able to access their accounts using ‘/[username]‘ - i.e. /paul
To accomodate this, I used a UrlMapping:

"/$id" {
controller='display'
action:'index'
}

Now, [...]

Read the full article →

No Dialect mapping for JDBC type: -1

April 23, 2008

This Hibernate error came at me out of the blue while working on FilmSuggestions.com - I innocently added a constraint to one of my Grails domain models, setting the maxSize of one of the fields to 2000. This changed the table schema making the column type TEXT instead of VARCHAR.
The problem came from a native [...]

Read the full article →

grails-p6spy-0.2

September 19, 2007

This information is out of date - please see http://grails.org/plugin/p6spy for the current documentation.
Grails 0.6 was recently released, and this new version included changes to the way the DataSource is defined. So, to make my grails-p6spy-plugin compatible with 0.6, here is a new release:
grails-p6spy-0.2.zip
P6Spy lets you monitor the JDBC queries by proxying your database driver. [...]

Read the full article →