Yea, I see that I missed those import statements now.
The reason why I have been having problems with this is probably that I am
trying to
mix the setup shown in the sample java_first_jaxws with an existing spring
setup.
The java_first_jaxws sample does not contain any spring context files and
just defines
the CXF servlet and the annotated service is picked up and exposed
automatically
just as the JAX-WS specification specifies. 

Should I take it then that this is not possible if I am already using spring
in a web-app?

Thanks for the quick answers btw




Willem2 wrote:
> 
> Hi
> 
> You can take [1] as an example which use the spring to setup the 
> endpoint information.
> [1]  http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html
> 
> Willem.
> 
> thomaslarsson wrote:
>> I misspelled cxf down below but that was only here in the forum post. The
>> question is still valid.
>>
>> Here is my CXFServlet definition if its of any value:
>>
>>         <servlet>
>>              <servlet-name>cxf</servlet-name>
>>              <display-name>cxf</display-name>
>>              <description>Apache CXF Endpoint</description>
>>              <servlet-class>
>>                      org.apache.cxf.transport.servlet.CXFServlet
>>              </servlet-class>
>>              <load-on-startup>1</load-on-startup>
>>      </servlet>
>>      <servlet-mapping>
>>              <servlet-name>cxf</servlet-name>
>>              <url-pattern>/services/*</url-pattern>
>>      </servlet-mapping>
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-question.-No-bean-named-%27cfx%27-is-defined.-tf4668972.html#a13338056
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to