5 Replies Latest reply on Mar 12, 2012 4:04 PM by pstackle

    JBoss 7.1 Beta1 no longer has the system module

    pstackle Newbie

      When running on JBoss 7.1 Beta1, I receive a ClassNotFoundException for sun.security.x509.X509CertImpl. In JBoss 7.0.2, I was able to fix this issue by adding the following XML snippet to my jboss-deployment-structure.xml file for my EAR:

       

      <module name="system">
        <imports>
          <include-set>
            <path name="sun/security/x509" />
          </include-set>
        </imports>
      </module>
      

       

      In JBoss 7.1 Beta1, it appears that the system module has been removed and has been "somewhat" replaced by the sun.jdk module. Unfortunately, I can no longer successfully deploy and use the sun.security.x509.X509CertImpl class. I have tried depending on the following XML module snippets in my jboss-deployment-structure.xml file with no success:

       

      The first two resulted in no errors logged, but I still get the ClassNotFoundException.

       

      <module name="deployment.sun.jdk">
        <dependencies>
          <module name="sun.jdk">
            <imports>
              <include-set>
                <path name="sun/security/x509"/>
              </include-set>
            </imports>
          </module>
        </dependencies>
      </module>
      

       

      <module name="deployment.sun.jdk">
        <dependencies>
          <module name="sun.jdk">
            <imports>
              <include path="sun/security/x509"/>
            </imports>
          </module>
        </dependencies>
      </module>
      

       

      This one resulted in a parse error because it doesn't like the <system> tag.

      <module name="deployment.sun.jdk">
        <dependencies>
          <system export="true">
            <paths>
              <path name="sun/security/x509"/>
            </paths>
          </system>
        </dependencies>
      </module>
      

       

       

      I've tried looking through the JBoss Modules documentation for how to add dependencies to the system module, but all I found were the following two pages that are blank:

       

      https://docs.jboss.org/author/display/MODULES/The+system+module

      https://docs.jboss.org/author/display/MODULES/Handling+the+system+module

       

      Does anyone have any suggestions for what else I could try or that can point out what I'm doing wrong?

      Thank you.

       

      Message was edited - added wiki formatting blocks

       

      Message was edited - Try 2 with formatting

       

      Message was edited - third times a charm