Sunday, July 31, 2011

sshj could not load keys

Needed to include bouncy castle in maven dependencies:



         
   
        org.bouncycastle
        bcprov-jdk16
        1.45
   
     
     
   
        net.schmizz
        sshj
        0.3.0
   

apache httpd forbidden selinux

I had an issue where a folder that I was trying to share on the web was not accessible resulting in FORBIDDEN.

It turns out that SELinux policies in Linux were preventing access. To enable it use the following:

/usr/sbin/setsebool -P httpd_disable_trans 1
/etc/init.d/httpd restart

Thursday, July 28, 2011

grails Second-level cache is not enabled for usage

Make sure the domain class doesn't have a mapping with cache usage parameter

    static mapping = {
        cache usage: 'read-only'
    }