I am trying to invoke a mbean through jmxproxy servlet. Arguments are separated with , so when one argument itself is containing a coma, it breaks the invocation.

It seems there is no way to escape ,.

For example trying to save a context configuration fails :

curl -u user:pass -G "http://localhost:8080/manager/jmxproxy/"; --data-urlencode "invoke=Catalina:type=StoreConfig" --data-urlencode "op=storeContext" --data-urlencode "ps=Catalina:j2eeType=WebModule,name=//localhost/myContext,J2EEApplication=none,J2EEServer=none,true,true"

of course it works from jconsole.

(By the way as an alternative I tried

curl -u user:pass http://localhost:8080/manager/text/save?path=/myContext but it fails with

FAIL - Encountered exception [javax.management.MBeanException: Cannot find operation store] )


To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to