KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am fairly new to Apache CXF and tomcat. I am trying to build a simple web service and deploy it on tomcat. below is my web.xml However when I try to access the 'services' folder using my browser it says No services have been found. I tried creating java web service client but it is not able to locate the service either. What could be wrong in this? <?xml version="1.0" encoding="UTF-8"?> <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"> <display-name>Sample web service provider</display-name> <listener> <!-- For Metro, use this listener-class instead: com.sun.xml.ws.transport.http.servlet.WSServletContextListener --> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <!-- Remove below context-param element if using Metro --> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:META-INF/cxf/cxf.xml </param-value> </context-param> <servlet> <servlet-name>WebServicePort</servlet-name> <!-- For Metro, use this servlet-class instead: com.sun.xml.ws.transport.http.servlet.WSServlet --> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>WebServicePort</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <session-config> <session-timeout>60</session-timeout> </session-c
Tags (comma-separated)
Save Edits
Cancel