This content has been marked as final. Show 11 replies
For this you need ojdeploy which genereates the war ans ear files togewther with the correct deployment descriptors.
When you select to create a build.xml from an existing project you should see a checkbox at the bottom "Include Packaging Tasks" which generates the targets for you (if checked).
Deploying the ear to the WLS is a different story all together. If you google for deploy ear using wlst you should find some info.
I read the document
However couldnot implement the following instructions
"It is a best practice to generate an .ear file from JDeveloper for the application. The .ear file will be generated with all the right class dependencies required to deploy it. Deploying with Ant by referring to an application directly without generating an .ear file may require that dependencies for the classes and jars files must be resolved manually."
I created the war file.....using ojdeploy.......deployed the war file.
I created the ear file .......Right click on the application -> Deployment profile - > create Ear-> Applied the application assembly (selected the jar and war file of Model and ViewController) -> Platform Weblogic10.3 , Target -the name of the standalone Server...
Now that the Ear file has been created it is easy to deploy it to a standalone WLS from jdev.... But I wish to deploy the Ear to a WLS using ANT....How to I do that????
My build.properties file is as follows
# build file for LogHelloWorldComposite
# revision of the composite
# Simply specify Java Home
#common components home
# Set oracle.home to <JDEV_HOME>/jdeveloper, where <JDEV_HOME> is JDEV # installation directory
# soa-server side oracle home directory - needed for deployment plans
# and the weblogic sca library deployment
###### Deployment server connection information
# the admin server connection information
# the domain where soa infra is installed
# connection information for the managed server, used for soa-deployment
# User and credentials for the servers
# wls server where soa is targeted.
Here is my build.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- build.properties -->
<property name="deploy.dir" value="/../deploy"/>
<target name="deploy" >
action="deploy" verbose="true" debug="true"
I have the ear file in the same directory..When I run the prompt> ant it shows BUILD SUCCESSFUL. However when I type ant deploy the error is as follows
em: failed to create task or type wldeploy
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
What is the solution ???