Jersey:web.xml是否阻止使用多个@pathparams?

Jersey:web.xml是否阻止使用多个@pathparams?,jersey,jax-rs,Jersey,Jax Rs,我使用以下web.xml在Jersey web应用程序中提供对jsp的支持。唯一的问题是使用多个@PathParam会导致应用程序返回406 Not acceptable。我认为这是web.xml中的过滤器中的一个问题,因为单个@PathParams可以正常工作。我完全错了吗 任何关于修复的建议,我们都将不胜感激 <?xml version="1.0" encoding="UTF-8"?> <!-- This web.xml file is not required when

我使用以下web.xml在Jersey web应用程序中提供对jsp的支持。唯一的问题是使用多个@PathParam会导致应用程序返回406 Not acceptable。我认为这是web.xml中的过滤器中的一个问题,因为单个@PathParams可以正常工作。我完全错了吗

任何关于修复的建议,我们都将不胜感激

<?xml version="1.0" encoding="UTF-8"?>
<!-- This web.xml file is not required when using Servlet 3.0 container, 
     see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html#d4e194 -->
<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">
<filter>
    <filter-name>jersey</filter-name>
    <filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
    <init-param>
        <param-name>com.sun.jersey.config.property.packages</param-name>
        <param-value>com.example.path.to.app</param-value>
    </init-param>
    <init-param>
        <param-name>com.sun.jersey.config.property.JSPTemplatesBasePath</param-name>
        <param-value>/WEB-INF/jsp</param-value>
    </init-param>
    <init-param>
        <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
        <param-value>/(css|images|resources|(WEB-INF/jsp))/.*</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>jersey</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

运动衫
com.sun.jersey.spi.container.servlet.ServletContainer
com.sun.jersey.config.property.packages
com.example.path.to.app
com.sun.jersey.config.property.JSPTemplatesBasePath
/WEB-INF/jsp
com.sun.jersey.config.property.WebPageContentRegex
/(css |图像|资源|(WEB-INF/jsp))/*
运动衫
/*

?我本以为是404。您是否尝试过删除
WebPageContentRegex
过滤器以查看错误是否仍然发生?我尝试了无效。我管理路径的方式可能存在一些潜在问题。