2 Replies Latest reply on Apr 1, 2013 11:47 AM by johnsonlui

    Error while registering Oracle JDBC Diagnosability MBean.

    johnsonlui Newbie

      Hello all,


      I am facing some problem when i try to deploy the app into JBoss 7


      In the very beginning, the page return me 500 status, i found this error in the log


      17:07:52,937 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/cses].[jsp]] (http-- Servlet.service() for servlet jsp threw exception: java.lang.ClassNotFoundException: javax.management.JMException from [Module "com.cses.extlib:main" from local module loader @1cb8deef (roots: /home/jboss/jboss-csesdev/modules)]


      I searched from the internet seems jboss will not help loading rt.jar with my application.


      Therefore i simply add the rt.jar into my custom moudle


      <?xml version="1.0" encoding="UTF-8"?>

      <module xmlns="urn:jboss:module:1.1" name="com.cses.extlib">


              <resource-root path="ldapjdk.jar"/>

              <resource-root path="ojdbc5-"/>

              <resource-root path="rt.jar"/>

              <resource-root path="jce.jar"/>




      Yes, the page can be shown now and no more 500 status....but another error found......

      I found this in the log..


      03:25:15,657 WARNING [oracle.jdbc] (http-- Error while registering Oracle JDBC Diagnosability MBean.: java.lang.LinkageError: loader constraint violation: when resolving method "java.lang.management.ManagementFactory.getPlatformMBeanServer()Ljavax/management/MBeanServer;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, oracle/jdbc/driver/OracleDriver, and the class loader (instance of <bootloader>) for resolved class, java/lang/management/ManagementFactory, have different Class objects for the type javax/management/MBeanServer used in the signature


      what should i do next?

      Is there any official method for me to load rt.jar but not simply add into my custom module?

      This problem is already last for long time....please help...



      Johnson Lui