Приложение Grails с пружинной защитой, приводящее к ошибке 500 фильтров на WAS7 - PullRequest
0 голосов
/ 06 января 2012

У меня была развернута более ранняя версия этого приложения с той же конфигурацией WebSphere, но я был на версии 1.3.7 без ресурсов или плагинов webxml.

Я могу выполнить развертывание в Tomcat, но при развертывании той же войны в WebSphere при попытке получить доступ к приложению возникает следующая ошибка:

Error 500: No thread-bound request found: Are you referring to request attributes outside       of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use   RequestContextListener or RequestContextFilter to expose the current request.
Exception Message: No thread-bound request found: Are you referring to request attributes   outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. 
Caused by: Filter [springSecurityFilterChain]: filter is unavailable.

Grails версия: 2.0.0 Groovy версия: 1.8.4 Версия JVM: 1.6.0_29

УСТАНОВЛЕННЫЕ ПЛАГИНЫ ядро - 2.0.0 ресурсы - 1.1.6 webxml - 1.4.1 сервлеты - 2.0.0 springSecurityCore - 1.2.7 springSecurityLdap - 1.0.5

Я установил для пользовательского свойства invokeFiltersCompatibility на веб-контейнере значение true.

1 Ответ

1 голос
/ 12 января 2012

Если вы используете атрибут: metadata-complete = "true" в вашем web.xml, Websphere оставит ваш web.xml в покое.Чтобы отредактировать ваш web.xml, вы должны использовать команду grails "install-templates", чтобы получить рабочую копию вашего файла web.xml.

См. Также: http://www.experts -exchange.com / Программное обеспечение / Server_Software / Application_Servers / Java / IBM_Websphere / Q_26625087.html

...