Announcement Announcement Module
Collapse
No announcement yet.
Spring MX4J HttpAdaptor Bean Error on Shutdown Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MX4J HttpAdaptor Bean Error on Shutdown

    Hi,

    Everytime I stop tomcat I get the following error:

    Code:
    javax.management.InstanceNotFoundException: Server:name=HttpAdaptor
    Here is part of my bean configuration:

    Code:
    <bean id="mbeanExporter" class="org.springframework.jmx.export.MBeanExporter">
            <property name="beans">
                <map>
                    <entry key="Server:name=HttpAdaptor">
                        <bean class="mx4j.tools.adaptor.http.HttpAdaptor">
                            <property name="port" value="${com/iogen/iolink/util/mx4jServerPort}"/>
                            <property name="host" value="0.0.0.0"/>
                            <property name="processor">
                                <bean class="mx4j.tools.adaptor.http.XSLTProcessor"/>
                            </property>
                        </bean>
                    </entry>
                </map>
            </property>
            <property name="listeners">
                <list>
                    <bean class="com.xxxx.commons.configuration.MX4JHttpAdaptorListener">
                        <property name="mbeanServer" ref="mbeanServer"/>
                    </bean>
                </list>
            </property>
        </bean>
    I also have a second MBean exporter declared:
    Code:
        <bean id="annotatedMBeanExporter" class="org.springframework.jmx.export.MBeanExporter">
            <property name="assembler" ref="assembler"/>
            <property name="namingStrategy" ref="namingStrategy"/>
            <property name="autodetectModeName" value="AUTODETECT_ASSEMBLER"/>
        </bean>
    Anyone have any idea why this error is thrown and how to prevent it? I can't get both MBean exporters in one bean mapping.

    Thanks,
    Julian

  • #2
    Hi,
    Did you resolve this issue?

    thanks.

    Comment

    Working...
    X