users@jersey.java.net

SubResource Path patterns

From: saturon <netbeans_at_vtxfree.ch>
Date: Sat, 6 Dec 2008 22:07:23 +0100

   Hi all,

Just ran into the following exception. Can someone tell help me there is
something wrong with this syntax? I am using Jersey 0.8 in Glassfish v2


com.sun.enterprise.deployment.backend.IASDeploymentException:
ContainerBase.addChild: start: LifecycleException:
java.util.regex.PatternSyntaxException: Illegal repetition near index 0
/{mediaId,entityId}/


    @Path("{mediaId,entityId}/")
    public ImageResource getImageResource(@PathParam("mediaId") Long
mediaId, @PathParam("entityId") Long entityId) {
        return new ImageResource(mediaId,entityId,request, httpHeaders);
    }


Thanks Ben