Affects: Release Notes project_key: JBEWS This is a lingering upstream issue in Tomcat 6 and 7. It affects JON in a way that it prevents configuration changes made by JON agent to be persisted into xml. Config changes can be done through remote JMX interface, but persisting them to server.xml doesn't work, as it requires calling the storeConfig method of Catalina:type=StoreConfig MBean. JBoss Operations Network tries to persist every change right away, so - when you try to make a configuration change through JON, you will get this message in tomcat log: {noformat} Oct 11, 2012 11:10:07 AM org.apache.tomcat.util.modeler.BaseModelMBean invoke SEVERE: Exception invoking method storeConfig javax.management.InstanceNotFoundException: Catalina:type=StoreConfig at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1118) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:854) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795) at org.apache.catalina.core.StandardServer.storeConfig(StandardServer.java:665) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) {noformat} official tomcat6 issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=42708 .. but it also affects tomcat7 in the same way. It seems that this will never be fixed in upstream. In other words, if we don't provide this functionality ourselves, this will probably never work.
Link: Added: This issue relates to JBPAPP-9551
The upstream code wasn't port to TC6. I don't except this being fixed....
fixing that is weeks for work for Tomcat6 and bunch of weeks more for Tomcat7 (and more for trunk).
Assigning to dev for future EWS release.
Release Notes Docs Status: Added: Documented as Known Issue Affects: Added: Release Notes
Release Notes Docs Status: Removed: Documented as Known Issue Added: Not Yet Documented
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Known Issue Writer: Added: mhusnain
Release Notes Text: Added: When using Tomcat 6 and 7 in JBoss Enterprise Web Server, configuration changes made using the JBoss Operations Network (JON) agent do not persist into XML. Configuration changes made through a remote JMX interface also do not persist to server.xml because this requires calling the storeConfig method from the storeConfig MBean.
A port attempt is in the Tomcat sandbox: - for Tomcat 6: http://svn.apache.org/repos/asf/tomcat/sandbox/storeconfig6/ - for Tomcat 7: http://svn.apache.org/repos/asf/tomcat/sandbox/storeconfig7/ They can be built with Maven.
Release Notes Docs Status: Removed: Documented as Known Issue Writer: Removed: mhusnain Release Notes Text: Removed: When using Tomcat 6 and 7 in JBoss Enterprise Web Server, configuration changes made using the JBoss Operations Network (JON) agent do not persist into XML. Configuration changes made through a remote JMX interface also do not persist to server.xml because this requires calling the storeConfig method from the storeConfig MBean. Docs QE Status: Removed: NEW
more comments on https://bugzilla.redhat.com/show_bug.cgi?id=583996
*** This bug has been marked as a duplicate of bug 583996 ***