I am trying to deploy a web service in Tomcat7 using maven.
Below I provide some configuration info:
web.xml
...
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
...
pom.xml
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<url>http://localhost:8080/manager/text</url>
<server>TomcatServer</server>
<path>/services/userinfo</path>
...
Given the <url-pattern>/services/*</url-pattern>
and <path>/services/userinfo</path>
configuration, the URL http://localhost:8080/services/userinfo
shows 404.
If using instead <url-pattern>/*</url-pattern>
everything works as expected (i.e. http://localhost:8080/services/userinfo
shows the list of available methods).
The question:
Why /services/*
doesn't work in my case?