I'm guessing you are running into something like this:
vhttp://
stackoverflow.com/questions/8738366/equivalent-of-servlet-filter-for-jersey-jax-rs-rest-resources


The easiest solution my be to directly add your application to the web.xml



On Thu, Aug 7, 2014 at 8:54 PM, Debashis Ghosh <[email protected]>
wrote:

> web.xml
> <
> https://github.com/debashisgho/MyApp/blob/master/src/main/webapp/WEB-INF/web.xml
> >
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" 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_3_0.xsd";>
>
>   <listener>
>
>
> <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
>   </listener>
>
>   <filter>
>     <filter-name>ShiroFilter</filter-name>
>     <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
>   </filter>
>
>   <filter-mapping>
>     <filter-name>ShiroFilter</filter-name>
>     <url-pattern>/*</url-pattern>
>     <dispatcher>REQUEST</dispatcher>
>     <dispatcher>FORWARD</dispatcher>
>     <dispatcher>INCLUDE</dispatcher>
>     <dispatcher>ERROR</dispatcher>
>   </filter-mapping>
>
> </web-app>
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/rest-glassfish4-shiro-enabled-working-sample-tp7580135p7580142.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to