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.
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.
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.
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.
Edit
My weblogic.xml looks like the below
<container-descriptor>
<prefer-application-packages>
<package-name>javax.el.*</package-name>
<package-name>com.sun.el.*</package-name>
<package-name>javax.persistence.*</package-name>
<package-name>javax.persistence.criteria.*</package-name>
<package-name>javax.persistence.metamodel.*</package-name>
<package-name>javax.persistence.spi.*</package-name>
<package-name>org.eclipse.persistence.*</package-name>
<package-name>org.springframework.*</package-name>
</prefer-application-packages>
</container-descriptor>