0 Replies Latest reply on Dec 5, 2018 4:51 AM by srivaishnavikarmegan

    java.lang.NoClassDefFoundError: com/sun/jmx/snmp/Timestamp

    srivaishnavikarmegan

      Facing NoClassDefnot found while deploying in JBOSS EAP.

       

       

      Here is my jboss-deployment-structure

       

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

      <jboss-deployment-structure>

          <deployment>

              <exclude-subsystems>

                  <subsystem name="webservices" />

                  <subsystem name="jaxrs" />

                  <subsystem name="weld" />

              </exclude-subsystems>

              <exclusions>

                  <module name="org.apache.log4j" />

                  <module name="org.apache.xalan" />

                  <module name="sun.jdk" />

       

              </exclusions>

          </deployment>

      </jboss-deployment-structure>

       

      and in my standalone.xml  I added the below mentioned piece of code..

       

      <global-modules>

            <module name="sun.jdk" slot="main" />

         </global-modules>

       

      Please help, If anything is missed out.. and clarify me one thing whether we need to rt.jar into lib folder? and anything missed out help.