I created a webconsole for AMQ project that runs on Tomcat. The site looks good, but when I try to change something, I get a 500 server error. The following stacktrace appears in de logfiles:
dec 30, 2014 4:22:24 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [dispatcher] in context with path [/default-amq-console] threw exception [Request processing failed; nested exception is java.lang.UnsupportedOperationException: Possible CSRF attack] with root cause
java.lang.UnsupportedOperationException: Possible CSRF attack
at org.apache.activemq.web.handler.BindingBeanNameUrlHandlerMapping.getHandlerInternal(BindingBeanNameUrlHandlerMapping.java:59)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:298)
at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1091)
etc, etc,etc
The URL for the webconsole is:
http://localhost:8080/default-amq-console.
When I use
http://localhost:8080/admin
everythings works fine.
Is it possible to use another contextname than admin, how can I configure it?
Try to clear your browser cache.
It happened to me, and it works fine after I clear the cache. In case you don't like to clear cache and cookies because you don't like to login to your fav. sites again, you can try it in private mode (incognito for chrome).
The problem was that my Firefox plugin blocked the cookies. So it has nothing to do with the context name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With