<servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>workflow.WDispatcher</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>*NEXTEVENT*</url-pattern>
</servlet-mapping>
Above is the snippet from Tomcat's web.xml
. The URL pattern *NEXTEVENT*
on start up throws
java.lang.IllegalArgumentException: Invalid <url-pattern> in servlet mapping
It will be greatly appreciated if someone can hint at the error.