title: Weblogic - Python script in order to deploy many applications
body: <p>I have a strange problem. I deploy many ear and war files with a Python script. However, during the second app deployment, I always get the following error message:</p>
  
  <pre><code>Property APPLICATION.CONF.REFRESH not found
  </code></pre>
  
  <p>And in the other MS - DOS window where the script is executed, I get this warning / error:</p>
  
  <pre><code>&lt;Warning&gt; &lt;JNDI&gt; &lt;BEA-050001&gt; &lt;WLContext.close() was called in a different thread than the one in which it was created.&gt;
  </code></pre>
  
  <p>Both messages seem to me erroneous.</p>
  
  <p>The message with Property is runnig the whole time and nothing works anymore.</p>
  
  <p>What could be my error?</p>
  
  <p>Here is my script:</p>
  
  <pre><code>connect(username, pwd)
  edit()
  startEdit()
  cd('/')
  cd('AppDeployments')
  deploy(fileName, path, targets='AdminServer')
  save()
  activate()
  disconnect()
  exit()
  </code></pre>
  
  <p>This script gets executed 5 times in a row.</p>
  
  <p>Thanks for any help!</p>