Hi Alberto, Hmmm... hard to say what is going wrong now, based on the output... It could be in your templates, or it could be due to the filter...
The error is caused by trying to redirect the response to an error page (probably 404, but could be 401 or 403), but another part of the code has already written data to the response, meaning redirect cannot work. Perhaps the SPNego filter is writing something to the response? If the SPNego filter has to send a challenge, you need to terminate the filter chain after SPNego filter. In theory this should be implemented in the filter. Here's my guess as to what happens: It looks like the magnolia filter chain is checking one more filter after the SPNego filter, which does not match the request, and then the magnolia filter chain is finished and control is being passed back to tomcat's filter chain, which doesn't know how to handle the request, tries to send 404, and can't. To analyze this further we would need to know more about: - the order of the filters in your filter chain - the state of the request after passing the SPNego filter --> has it been written to? has SPNego set an error state? Regards from Vienna, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:user-list-owner@magnolia- > cms.com] Im Auftrag von Alberto Giovannone (via Magnolia Forums) > Gesendet: Donnerstag, 08. Mai 2014 15:55 > An: Magnolia User List > Betreff: [magnolia-user] Re: Problem with Windows Integrated > Authentication and Magnolia Authentication > > Hi Richard, > I followed your suggestion and I was able to reach my authentication and > authorization module written in jaas.confin. > When Magnolia is loading I obtained the following exception : > > mag 08, 2014 3:38:01 PM org.apache.catalina.core.StandardWrapperValve > invoke > Grave: Servlet.service() for servlet [default] in context with path > [/uniqa.extranet-webapp] threw exception > java.lang.IllegalStateException: Cannot call sendError() after the response > has been committed > at > org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade. > java:451) > at > org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.ja > va:781) > at > org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:411) > at > org.apache.catalina.servlets.DefaultServlet.doPost(DefaultServlet.java:493) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi > lterChain.java:305) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai > n.java:210) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:77) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:85) > at > info.magnolia.module.authentication.UniqaSpnegoHttpFilter.doFilter(UniqaS > pnegoHttpFilter.java:27) > at > info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java: > 91) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83) > at > info.magnolia.enterprise.registration.RegistrationFilter.doFilter(RegistrationF > ilter.java:56) > at > info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java: > 91) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:85) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:85) > at > info.magnolia.module.devicedetection.filter.DeviceDetectionFilter.doFilter( > DeviceDetectionFilter.java:71) > at > info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OnceP > erRequestAbstractMgnlFilter.java:61) > at > info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:83) > at > info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java: > 104) > > And before in my log I found : 2014-05-08 15:38:00,147 INFO > info.magnolia.cms.filters.AggregatorFilter : Unable to redirect to 404 > page, response is already committed. URI was /uniqa.extranet- > webapp/VAADIN/widgetsets/info.magnolia.ui.vaadin.gwt.MagnoliaWidgetS > et/info.magnolia.ui.vaadin.gwt.MagnoliaWidgetSet.nocache.js > > But I don't know if it's usefull or not. > Magnolia is blocked at this url http://localhost:8080/uniqa.extranet- > webapp/.magnolia/admincentral and with only progression bar without > displaying the apps. > > Could you help me, please? > > I'm so close to my target. > > Thank you for your precious suggestion. > > Regards from Milan > > Alberto Giovannone > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=be26f4c1-1b80-42bc-8de0- > c51be72a9127 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
