Running grails apps with searchable plugin on a Debian/Ubuntu tomcat
Today, when throwing a new application of mine into the default tomcat conatiner that comes with the Ubuntu Hardy runningon my notebook, I got some strange errors:
2009-03-31 12:32:51,202 [main] ERROR StackTrace - Sanitizing stacktrace:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'compass': FactoryBean threw exception on
object creation; nested exception is
org.compass.core.engine.SearchEngineException: Failed to open
directory for path [tag]; nested exception is java.io.IOException:
Cannot create directory:
/usr/share/tomcat5.5/.grails/projects/SimpleContacts/searchable-index/production/index/tag
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
at java.security.AccessController.doPrivileged(Native Method)
And so on. I did not find the solution in the Searchable plugin docs (though, I could have found it - I somehow oversaw it - or didn't search enough) ) - but the nice grails list helped me to see, I had to change the entry for compassConnection
It then looked like:
compassConnection = new File(
"/tmp/grails/projects/${appName}/searchable-index/${grailsEnv}"
).absolutePath
And I did apply it only for the production environment. For advanced production use, I'd create a place in /var/lib/appName for this and make it writable by the tomcat user. When running on the same tomcat with other apps from different parties, you'd have to set mor efine grained acces control in tomcat's security settings to avoid people reading and manipulating each other's data.
- henning's blog
- Anmelden um Kommentare zu schreiben
- 1119 Aufrufe
Neueste Blogeinträge
- Samsung Galaxy Tab - erste Eindrücke
- Running Redmine issue tracker on Apache Tomcat
- Recover an encrypted-lvm-root system from broken boot partition
- What I like about different programming languages
- Glassfish Webspace Server
- N810 - erste Erfahrungen
- JFormdesigner: Umbenennen einer Klasse
- Blogfaul, Community Comparison, Virtualisierung und die Wolke, Java-OpenOffice
- Oracle auf Shopping Tour
- Welche OpenSource Software fehlt noch?!
- henningsprang: Next talk in the configuration and systems management devroom will be about configuration management with RPM and YADT http://t.co/qWbNLTfV
- henningsprang: idea for devrooms @fosdem : if we all would take care more to shoot videos in our area of interest, all content would be recorded! #fosdem
- henningsprang: @flovison @fosdem and it works pretty crazy nicely and perfect! Thanks for this! :) #fosdem
- henningsprang: RT @flovison: @fosdem WLAN stats update - day 2 concurrent users peak was 1622 concurrent clients #fosdem http://t.co/Jiuckvld
- henningsprang: RT @snipeyhead: OH: "I can't commit code with a variable named $FuckYouRailsYouPieceOfShit. But I want to." #rails
