Announcement Announcement Module
Collapse
No announcement yet.
Lang:Groovy - Classpath - Could not determine scripted object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

    org.springframework.sample.batch.example

    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
Working...
X