views:

241

answers:

1

although in my @Webservice class I extend SpringBeanAutowiringSupport, autowiring simply does not work for Spring 2.5, tomcat6.

nothing is injected.

I tested those beans autowiring in main method, using classpathcontext, everything is injected fine. But not for jax-ws endpoint.

do you have ideas?

+1  A: 

I'm guessing that you're using this config element:

<context:annotation-config />

But to enable support for the @Endpoint annotation, you must add this element:

<context:component-scan base-package="" />
Espen
@Espen, I was talking about "jaxws:endpoint" xml element. I use component scan, as you mentioned, but with non-empty base-package, ie base-package="pack1,pack2". Still does not work :)
EugeneP