[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Invalid <url-pattern> in servlet mapping
dalingxu
do-not-reply at jboss.com
Tue Sep 19 17:10:31 EDT 2006
Hi,
I am trying to migrate my enterprise application to JBoss 4.0.4.
In my web.xml, there is a servlet mapping like:
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/MyApp/package1/package2/1.2/ServiceName</url-pattern>
</servlet-mapping>
When I deploy the ear (which enclosing the war file), the Jboss gave me this error message:
java.lang.IllegalArgumentException: Invalid <url-pattern> /MyApp/package1/package2/1.2/ServiceName in servlet mapping.
And the deploy failed.
After I comment out the <servlet-mapping> it deployed succeed.
But the same ear file deployed succeed on OC4J 10.1.2.
What's the possible reason? Is it because Jboss doesn't like the dot ('.') in the url-pattern? How can I fix this issue? (Change the original source code may not be a solution to me now).
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972742#3972742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972742
More information about the jboss-dev-forums
mailing list