Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AMQ webconsole does not work when using other contextname then admin

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?

like image 871
Jaap D Avatar asked Apr 09 '26 16:04

Jaap D


2 Answers

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).

like image 119
Ahmad AlMughrabi Avatar answered Apr 12 '26 14:04

Ahmad AlMughrabi


The problem was that my Firefox plugin blocked the cookies. So it has nothing to do with the context name.

like image 27
Jaap D Avatar answered Apr 12 '26 15:04

Jaap D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!