On Tue, May 27, 2014 at 11:37 PM, KARR, DAVID <[email protected]> wrote:
> > -----Original Message----- > > From: Kalpa Welivitigoda [mailto:[email protected]] > > Sent: Monday, May 26, 2014 1:52 AM > > To: [email protected] > > Subject: CXF monitoring with JMX > > > > Hi, > > > > I want to monitor CXF server with JMX and I followed the Configuring JMX > > Integration [1] documentation. I use tomcat and following is the content > > of > > my cxf.xml file located at > > /home/kalpa/applications/apache-tomcat- > > 7.0.54/webapps/java_first_jaxws/WEB-INF/classes > > > > > > <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=" > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > > http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> > > > > <bean id="org.apache.cxf.management.InstrumentationManager" > > class="org.apache.cxf.management.jmx.InstrumentationManagerImpl"> > > <property name="bus" ref="cxf" /> > > <property name="enabled" value="true" /> > > <property name="JMXServiceURL " > > value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi" /> > > </bean> > > > > </beans> > > > > > > But I cannot monitor the data with jconsole. There is no local entry for > > the connection. > > > > What could be the issue here? > > You might try adding "-Dcom.sun.management.jmxremote" to the startup > command line for the process. > > I hope you mean to the startup of catalina. I tried but no change of results. Meanwhile I have made some progress and still have some issues. Please have a look, http://stackoverflow.com/questions/23889147/error-is-cxf-jmx-integration As far as I figured out the exceptions are due to a dependency version mismatch of spring. I am wondering what is the right mix of the versions. -- Best Regards, Kalpa Welivitigoda +94776509215 http://about.me/callkalpa
