Apache CXF With Jackson

Change web.xml

Change the web.xml file to find CXF servlet and cxf.xml

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>WEB-INF/cxf.xml</param-value>
	</context-param>
	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
	<servlet>
		<servlet-name>CXFServlet</servlet-name>
		<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>CXFServlet</servlet-name>
		<url-pattern>/*</url-pattern>
	</servlet-mapping>
</web-app>

Publishing CXF Restful Service

Apache CXF With Jackson

Note

You can Find all the deployed JAX-WS/JAX-RS services you need to append 'services' at the end of the URL so URL will become following

http://localhost:8080/CXFRestfulTutorial/services

Deployed REST Web Service Using Jackson

Apache CXF With Jackson

Note

you can also see CXF Restful Client in order to run this restful service





Previous 1 2 3








5 Responses to "Apache CXF With Jackson"
  1. Suraj 2012-07-05 07:53:15.0
  1. admin 2012-07-06 07:53:15.0
  1. sochs 2012-07-07 07:53:15.0
  1. Nitin 2012-07-08 08:53:15.0
  1. admin 2012-07-09 07:53:15.0

Your email address will not be published. Required fields are marked *