cvora wrote:
Thanks Alessio for your response.
So if I remove the Context listener from web.xml, what should my web.xml
have? Please note that my webservice Impl is a pojo, not a servlet.
Based on the testcase for username
(modules\testsuite\cxf-tests\src\test\resources\jaxws\samples\wsse\username),
it seems like I need to have something like this in the web.xml:
<servlet>
<servlet-name>Library Service</servlet-name>
<servlet-class>com.sosnoski.ws.library.cxf.Library</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Library Service</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Am I on the right path here?
Yes, where com.sosnoski.ws.library.cxf.Library is your pojo. That's
basically the way pojo ws endpoins are declared in JBossWS:
http://community.jboss.org/wiki/JBossWS-UserGuide#Plain_old_Java_Object_POJO
The web.xml is used for creating the actual web app that later uses
Apache CXF.
Cheers
Alessio
--
Alessio Soldano
Web Service Lead, JBoss