title: Starting weblogic with startWebLogic.cmd
body: <p>I am using WLST script to create a domain in Weblogic 10.3.4. Then starting the Admin Server and deploying a war file.All in the script.</p>
  
  <p>In this WLST I am also updating the setDomainEnv.cmd file to add certian jars at the beginning of the classpath. This setDomainEnv.cmd will be called when we start the domain with startWebLogic.cmd.</p>
  
  <p>But in the script when i start the server using the startServer command, it does not call the startWebLogic.cmd and therefore my updated setDomainEnv.cmd  is not called.
  As a result, although everything else works just fine (Like Domain creation, war deployment) my application fails as the necessary jars are not loaded.
  To be specific i want to append javax.el-api-2.2.4.jar and com.sun.el_2.2.0.v201105051105.jar in the classpath.</p>
  
  <p>Any suggestions as to how can i call startWebLogic.cmd from WLST. 
  Also if we can call startWebLogic.cmd from an ant task or Maven will also do.</p>
  
  <p>Edit</p>
  
  <p>My weblogic.xml looks like the below</p>
  
  <pre><code>      &lt;container-descriptor&gt;
  &lt;prefer-application-packages&gt;
    &lt;package-name&gt;javax.el.*&lt;/package-name&gt;
    &lt;package-name&gt;com.sun.el.*&lt;/package-name&gt;
     &lt;package-name&gt;javax.persistence.*&lt;/package-name&gt;
     &lt;package-name&gt;javax.persistence.criteria.*&lt;/package-name&gt;
     &lt;package-name&gt;javax.persistence.metamodel.*&lt;/package-name&gt;
     &lt;package-name&gt;javax.persistence.spi.*&lt;/package-name&gt;  
     &lt;package-name&gt;org.eclipse.persistence.*&lt;/package-name&gt;      
     &lt;package-name&gt;org.springframework.*&lt;/package-name&gt;      
    &lt;/prefer-application-packages&gt;          
   &lt;/container-descriptor&gt; 
  </code></pre>