title: Weblogic 12c datasource disappear from the jndi tree after server reboot
body: <p>This is very annoy issue for me when I every time reboot my Macmini server.</p>
  <p>Environments:</p>
  <pre><code>Macmini server runs OSX 10.10.3
  JDK 1.8.0_45
  Weblogic 12c (fusion middleware version)
  </code></pre>
  <p>Application:</p>
  <p>EJB 3.1 Beans (include session bean, singleton bean), it is pure EJB application without web-layer to provide business logic to serve multiple web applications.</p>
  <p>I follow Oracle JDBC datasource process to build the jdbc datasource from administrator console. The config.xml in mydomain/config folder looks like:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;jdbc-system-resource&gt;
      &lt;name&gt;JDBC Data Source-ozssc-100&lt;/name&gt;
      &lt;target&gt;AdminServer&lt;/target&gt;
      &lt;descriptor-file-name&gt;jdbc/JDBC_Data_Source-ozssc-100-8091-jdbc.xml&lt;/descriptor-file-name&gt;
  &lt;/jdbc-system-resource&gt;
  </code></pre>
  <p>there is linked configure file for this datasource in mydomain/config/jdbc shows as:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;jdbc-data-source xmlns=&quot;http://xmlns.oracle.com/weblogic/jdbc-data-source&quot;
      xmlns:sec=&quot;http://xmlns.oracle.com/weblogic/security&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xmlns:wls=&quot;http://xmlns.oracle.com/weblogic/security/wls&quot; xsi:schemaLocation=&quot;http://xmlns.oracle.com/weblogic/jdbc-data-source 
      http://xmlns.oracle.com/weblogic/jdbc-data-source/1.0/jdbc-data-source.xsd&quot;&gt;
      &lt;name&gt;JDBC Data Source-ozssc-100&lt;/name&gt;
      &lt;jdbc-driver-params&gt;
          &lt;url&gt;jdbc:postgresql://10.0.1.100:5433/ozssc&lt;/url&gt;
          &lt;driver-name&gt;org.postgresql.Driver&lt;/driver-name&gt;
          &lt;properties&gt;
              &lt;property&gt;
                  &lt;name&gt;user&lt;/name&gt;
                  &lt;value&gt;tomcat&lt;/value&gt;
              &lt;/property&gt;
          &lt;/properties&gt;
          &lt;password-encrypted&gt;{AES}xluimFDWO5jKhVeZAeuFt+w10T5uHYZo3CCOll3aHeM=&lt;/password-encrypted&gt;
      &lt;/jdbc-driver-params&gt;
      &lt;jdbc-connection-pool-params&gt;
          &lt;test-table-name&gt;SQL SELECT 1&lt;/test-table-name&gt;
      &lt;/jdbc-connection-pool-params&gt;
      &lt;jdbc-data-source-params&gt;
          &lt;jndi-name&gt;jdbc/postgres_ozssc_100&lt;/jndi-name&gt;
          &lt;global-transactions-protocol&gt;OnePhaseCommit&lt;/global-transactions-protocol&gt;
      &lt;/jdbc-data-source-params&gt;
  &lt;/jdbc-data-source&gt;
  </code></pre>
  <p>Seems there is nothing wrong here, but every time I reboot my Macmini. suppose my weblogic will auto restart, but I found my EJB application always failed restart in my weblogic context.</p>
  <p>When I tried to restart my EJB application, I get datasource not found in jndi exception and my  EJB application fail to restart.</p>
  <p>When I extend my JNDI tree from my weblogic context, I always found my configured jdbc datasource always disappear, I have delete it and rebuild it from scratch. And then my EJB application will be start again.</p>
  <p>Any idea with this situation??</p>
  <p>Any suggestion and advice are welcome!!</p>
  <p>Appreciated! Good weekend!</p>