title: Authentication Provider does not appear in the list of Authenticators in WebLogic Server Version: 12.1.3.0.0
body: <p>I've just created an Authentication Provider for WebLogic Server Version: 12.1.3.0.0, put the jar in the lib of the domain, but does not appear in the List of Providers to select</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  
  &lt;!DOCTYPE MBeanType SYSTEM "commo.dtd"&gt;
  
  &lt;!-- MBean Definition File (MDF) for the MMR WS Authenticator See documentation at: http://docs.oracle.com/cd/E13212_01/wles/docs42/dvspisec/mdf_ref.html Since it is for an identity asserter, it must extend the weblogic.management.security.authentication.IdentityAsserter mbean. The Name and DisplayName must be the same. They specify the name that will appear on the console for this provider. Set the PeristPolicy to "OnUpdate" so that if an attribute value is changed, the new value is written to disk immediately. See the "Developing Security Services" manual for more info. Note that since this is an xml document, you can't use double quotes directly. Instead you need to use &amp;quot; Note that setting "Writeable" to "false" on an attribute makes the attribute read-only. The default is read-write. --&gt;
  
  -&lt;MBeanType PersistPolicy="OnUpdate" Extends="weblogic.management.security.authentication.Authenticator" Package="fr.telecom.security.authentication.provider.mbean" Name="MMRWSAuthenticator"&gt;
  
  &lt;!-- You must set the value of the ProviderClassName attribute (inherited from the weblogic.management.security.Provider mbean) to the name of the java class you wrote that implements the weblogic.security.spi.AuthenticationProvider interface. You can think of the provider's mbean as the factory for your provider's runtime implementation. --&gt;
  
  
  &lt;MBeanAttribute Name="ProviderClassName" Default=""fr.telecom.security.authentication.provider.MMRWSAuthenticationProviderImpl"" Preprocessor="weblogic.management.configuration.LegalHelper.checkClassName(value)" Writeable="false" Type="java.lang.String"/&gt;
  
  &lt;!-- You must set the value of the Description attribute (inherited from the weblogic.management.security.Provider mbean) to a brief description of your provider. It is displayed in the console. --&gt;
  
  
  &lt;MBeanAttribute Name="Description" Default=""MMR WS Authenticator"" Writeable="false" Type="java.lang.String"/&gt;
  
  &lt;!-- You must set the value of the Version attribute (inherited from the weblogic.management.security.Provider mbean) to your provider's version. There is no required format. --&gt;
  
  
  &lt;MBeanAttribute Name="Version" Default=""1.0"" Writeable="false" Type="java.lang.String"/&gt;
  
  &lt;/MBeanType&gt;
  </code></pre>
  
  <p>This is my build.xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;!-- 
      This project is not entirely handled by Maven, so be careful when generating the artifact, and use Ant with its default target.
   --&gt;
  &lt;project name="devices-ws-authentication-provider" default="all" basedir="."&gt;
      &lt;echo&gt;
      Remember to execute the command below before doing an Ant:
  
      %MW_HOME%\wlserver\server\bin\setWLSEnv.cmd
      &lt;/echo&gt;
  
      &lt;property name="src-java" value="src/main/java" /&gt;
      &lt;property name="mbean" value="src/mbean" /&gt;
  
      &lt;target name="all" depends="build" /&gt;
  
      &lt;target name="build" depends="clean,build.mdf,build.mjf" /&gt;
  
      &lt;target name="clean"&gt;
          &lt;delete includeemptydirs="true" failonerror="false"&gt;
              &lt;fileset dir="${mbean}" includes="**/*"/&gt;
          &lt;/delete&gt;
          &lt;delete file="target/devices-ws-authentication-provider-1.0.0-SNAPSHOT.jar" failonerror="false" /&gt;
  
          &lt;mkdir dir="target" /&gt;
  
          &lt;echo message="Clean finish" /&gt;
      &lt;/target&gt;
  
      &lt;!-- helper to build an MDF (mbean definition file) --&gt;
      &lt;target name="build.mdf"&gt;
          &lt;java dir="${basedir}" fork="false" classname="weblogic.management.commo.WebLogicMBeanMaker"&gt;
              &lt;arg line="-files ${mbean}" /&gt;
              &lt;arg value="-createStubs" /&gt;
              &lt;arg line="-MDF src/main/resources/TntWSAuthenticator.xml" /&gt;
          &lt;/java&gt;
          &lt;echo message="Created Supporting Classes" /&gt;
  
          &lt;move todir="${src-java}/fr/telecom/security/authentication/provider/mbean" file="${mbean}/TntWSAuthenticatorImpl.java" /&gt;
          &lt;move todir="${src-java}/fr/telecom/security/authentication/provider/mbean" file="${mbean}//fr/telecom/security/authentication/provider/mbean/TntWSAuthenticatorMBean.java" /&gt;
      &lt;/target&gt;
  
      &lt;target name="build.mjf"&gt;
          &lt;mkdir dir="${mbean}" /&gt;
  
          &lt;copy todir="${mbean}"&gt;
              &lt;fileset dir="src/main/java"&gt;
                  &lt;include name="**/*" /&gt;
              &lt;/fileset&gt;
              &lt;fileset dir="src/main/resources"&gt;
                  &lt;include name="**/*" /&gt;
              &lt;/fileset&gt;
          &lt;/copy&gt;
  
          &lt;java dir="${basedir}" fork="false" classname="weblogic.management.commo.WebLogicMBeanMaker"&gt;
              &lt;arg line="-MJF target/devices-ws-authentication-provider-1.0.0-SNAPSHOT.jar" /&gt;
              &lt;arg line="-files ${mbean}" /&gt;
          &lt;/java&gt;
          &lt;echo message="Mbean JAR created." /&gt;
  
          &lt;!-- Do a small cleanup after building the JAR, in order to not have duplicated sources / classes in source paths --&gt;
          &lt;!--
          &lt;delete includeemptydirs="true" failonerror="false"&gt;
              &lt;fileset dir="${mbean}" includes="fr/telecom/security/authentication/provider/*.java" /&gt;
              &lt;fileset dir="${mbean}" includes="fr/telecom/domain/**/*.java" /&gt;
              &lt;fileset dir="${mbean}" includes="commo.dtd" /&gt;
              &lt;fileset dir="${mbean}" includes="rebel.xml" /&gt;
              &lt;fileset dir="${mbean}" includes="TntWSAuthenticator.xml" /&gt;
          &lt;/delete&gt;
          --&gt;
  
      &lt;/target&gt;
  
      &lt;target name="install" depends="build"&gt;
          &lt;copy todir="${user.home}/devices/lib" file="target/devices-ws-authentication-provider-1.0.0-SNAPSHOT.jar" /&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>opening the generated ear I see that there is some missing folders and files, like </p>
  
  <pre><code>/schemacom_bea_xml/element
  /schemacom_bea_xml/namespace
  /schemacom_bea_xml/system
  /schemacom_bea_xml/type
  /weblogic/
  </code></pre>