cancel
Showing results for 
Search instead for 
Did you mean: 

JMX - DynamicMBean not found

Former Member
0 Kudos

hi all,

when i try to import the javax.management.DynamicMBean i get a NoClassDefFoundError. I assumed that JMX came with the J2EE server and that the jar files would be in the server classpath and would be loaded by the parent classloader(before application classloader). this would mean that the application will get this class. Is this wrong. or am I supposed to do something to get JMX enabled on the server. Can someone help me with this please. thanks in advance.

-RD

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi RD,

You have to declare a reference to the jmx library in your application-j2ee-engine.xml descriptor, just like this:

<reference reference-type="weak">
  <reference-target target-type="library" provider-name="sap.com">
    tc/jmx
  </reference-target>
</reference>

Hope that helps!

Vladimir

Former Member
0 Kudos

thanks vladimir,

that fixed the problem and a host of other problems too..:)

-RD

Former Member
0 Kudos

Is there a way to specify a configuration file in SAP Web AS the way we do it in JBoss?

<mbean code="com.mysap.core.Kernel" name="Forma:service=MySapServices">

<attribute name="ConfigurationFile">services.xml</attribute>

Answers (0)