Resolving the path of 'web-app/file/misc' from 'src' in Grails
        Posted  
        
            by firnnauriel
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by firnnauriel
        
        
        
        Published on 2010-04-06T17:58:57Z
        Indexed on 
            2010/04/06
            18:03 UTC
        
        
        Read the original article
        Hit count: 295
        
I created a class under 'src' dir. I'm using this code to access the 'images' directory for all files inside 'grails-app':
ApplicationHolder.application.parentContext.getResource("file/misc").file;
I'm having this error when I access it in a 'src' class:
application has private access in org.codehaus.groovy.grails.commons.ApplicationHolder
Any comment on why is this happening? How can I access "file/misc" when app is deployed to tomcat?
© Stack Overflow or respective owner