Sorry if this is not the right forum but I am newbie to Spring.

I try to generate to bean using groovy in Spring. One is an interface while the other in a groovy class implementing a webservice (I am using cxf).

When instantiating the service using:

<lang:groovy id="helloworld" script-source="classpath:HelloWorld.groovy" scope="prototype"/>
<lang:groovy id="helloworldImpl" script-source="classpath:HelloWorldImpl.groovy" scope="prototype"/>

<jaxws:endpoint id="helloEndPoint" implementor="#helloworldImpl" address="/HelloWorld" />

I get the following exception. It looks like the impl does not find the interface. I'm sure it rings a bell to some of you :-)

Thanks for your help
Guillaume

SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'helloEndPoint': Cannot resolve reference to bean 'helloworldImpl' while setting constru
ctor argument with index 1; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'helloworldImpl': BeanPostProcessor befo
re instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'scriptedObject.helloworldImpl': In
stantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public java.lang.Object org.springframework.scr
ipting.groovy.GroovyScriptFactory.getScriptedObjec t(org.springframework.scripting.ScriptSource,java. lang.Class[]) throws java.io.IOException,org.springframework.scripting. Scri
ptCompilationException] threw exception; nested exception is org.springframework.scripting.ScriptCompilationExc eption: Could not compile Groovy script: class path resource [He
lloWorldImpl.groovy]; nested exception is org.codehaus.groovy.control.MultipleCompilationErr orsException: startup failed, script1199798727190.groovy: 21: unable to resolve cla
ss HelloWorld
@ line 21, column 8.
1 error

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'helloworldImpl': BeanPostProcessor before instantiation of bean failed; nest
ed exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'scriptedObject.helloworldImpl': Instantiation of bean failed; nested ex
ception is org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public java.lang.Object org.springframework.scripting.groovy.GroovyScriptF actory.get
ScriptedObject(org.springframework.scripting.Scrip tSource,java.lang.Class[]) throws java.io.IOException,org.springframework.scripting. ScriptCompilationException] threw excepti
on; nested exception is org.springframework.scripting.ScriptCompilationExc eption: Could not compile Groovy script: class path resource [HelloWorldImpl.groovy]; nested exceptio
n is org.codehaus.groovy.control.MultipleCompilationErr orsException: startup failed, script1199798727190.groovy: 21: unable to resolve class HelloWorld
@ line 21, column 8.
1 error

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'scriptedObject.helloworldImpl': Instantiation of bean failed; nested excepti
on is org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public java.lang.Object org.springframework.scripting.groovy.GroovyScriptF actory.getScrip
tedObject(org.springframework.scripting.ScriptSour ce,java.lang.Class[]) throws java.io.IOException,org.springframework.scripting. ScriptCompilationException] threw exception; n
ested exception is org.springframework.scripting.ScriptCompilationExc eption: Could not compile Groovy script: class path resource [HelloWorldImpl.groovy]; nested exception is
org.codehaus.groovy.control.MultipleCompilationErr orsException: startup failed, script1199798727190.groovy: 21: unable to resolve class HelloWorld
@ line 21, column 8.
1 error

Caused by: org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public java.lang.Object org.springframework.scripting.groovy.GroovyScriptF actory.get
ScriptedObject(org.springframework.scripting.Scrip tSource,java.lang.Class[]) throws java.io.IOException,org.springframework.scripting. ScriptCompilationException] threw excepti
on; nested exception is org.springframework.scripting.ScriptCompilationExc eption: Could not compile Groovy script: class path resource [HelloWorldImpl.groovy]; nested exceptio
n is org.codehaus.groovy.control.MultipleCompilationErr orsException: startup failed, script1199798727190.groovy: 21: unable to resolve class HelloWorld
@ line 21, column 8.
1 error

Caused by: org.springframework.scripting.ScriptCompilationExc eption: Could not compile Groovy script: class path resource [HelloWorldImpl.groovy]; nested exception is org.code
haus.groovy.control.MultipleCompilationErrorsExcep tion: startup failed, script1199798727190.groovy: 21: unable to resolve class HelloWorld
@ line 21, column 8.
1 error

Caused by: org.codehaus.groovy.control.MultipleCompilationErr orsException: startup failed, script1199798727190.groovy: 21: unable to resolve class HelloWorld
@ line 21, column 8.
1 error

at org.codehaus.groovy.control.ErrorCollector.failIfE rrors(ErrorCollector.java:326)
at org.codehaus.groovy.control.CompilationUnit.applyT oSourceUnits(CompilationUnit.java:848)
at org.codehaus.groovy.control.CompilationUnit.compil e(CompilationUnit.java:480)
at groovy.lang.GroovyClassLoader.parseClass(GroovyCla ssLoader.java:306)
at groovy.lang.GroovyClassLoader.parseClass(GroovyCla ssLoader.java:275)
at groovy.lang.GroovyClassLoader.parseClass(GroovyCla ssLoader.java:270)
at groovy.lang.GroovyClassLoader.parseClass(GroovyCla ssLoader.java:242)
at org.springframework.scripting.groovy.GroovyScriptF actory.getScriptedObject(GroovyScriptFactory.java: 131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:118)
at org.springframework.beans.factory.support.Construc torResolver.instantiateUsingFactoryMethod(Construc torResolver.java:332)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateUsingFactory Method(AbstractAutowireCapableBeanFactory.java:778 )
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:705)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:386)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:268)