Hello!

Using spring + hibernate + annotations


web.xml:
...
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/index</url-pattern>
<url-pattern>/userRegistration</url-pattern>
<url-pattern>/userSuccess</url-pattern>
<url-pattern>/allcompany/*</url-pattern>
...


In controller:
@RequestMapping("/allcompany/{groupId}")
public String showPage(@PathVariable("groupId") long groupId, ModelMap model)
{
model.addAttribute("menu_main_active", "allcompany");
return "index";
}


When i go to /allcompany/10
response is: The requested resource () is not available.


if i use <url-pattern>/allcompany/0</url-pattern>

and

@RequestMapping("/allcompany/10")
public String showPage2(ModelMap model)
{
model.addAttribute("menu_main_active", "allcompany");
return "index";
}

it works fine.

Where am i wrong?