1 Reply Latest reply on May 13, 2016 3:56 PM by ttian

    Where is class javax.security.auth.Subject?

    ttian

      Hi there, We migrated an application from WAS to JBOSS. when running the application within jboss-eap-6.4, it displays the following exception:

       

      java.lang.NoClassDefFoundError: javax/security/auth/Subject

       

      I guess we have to specify the module in the application jboss-deployment-structure.xml. Does anyone aware of what module would include this class?

      Thanks,

      Tim

        • 1. Re: Where is class javax.security.auth.Subject?
          ttian

          I am replying myself's question.

           

          Class javax.security.auth.Subject resides in rt.jar. you can use javax.api to "implicitly" access some of the common classes in rt.jar. So what i did was just add the following to the dependencies list in the module.xml:

                  <module name="javax.api" export="true"/>

          And it worked.

           

          Thanks,

          Tim