Mar 3rd, 2011, 03:17 PM
Lang:Groovy - Classpath - Could not determine scripted object
I have been trying for 2 days now to get a simple groovy script and try to inject it. I am getting = could not determine scripted object type for GroovyScriptFactory. I don't know if I am.
I have my groovy class as well as the interface in the following package.
My xml file is located in thelaunch-context.xml file.
What am I doing wrong? Thanks.
Error creating bean with name 'pdfGenerator': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'pdfGenerator': Could not determine scripted object type for GroovyScriptFactory: script source locator [classpath:org/springframework/sample/batch/example/GroovyGenerator.groovy]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/sample/batch/example/GroovyGenerator.groovy] cannot be opened because it does not exist