aspose file tools*
The moose likes Websphere and the fly likes how to install application thru ant task? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "how to install application thru ant task?" Watch "how to install application thru ant task?" New topic
Author

how to install application thru ant task?

Smith Magadia
Greenhorn

Joined: Jun 29, 2005
Posts: 15
Hi,

I've been trying to install application thru ant task and obviously I need help! Please let me know what wrong with my code and how to properly do that.

Below is my sample build ant code:

<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/>

<target name="install">
<wsInstallApp ear="${ear.path}"/>
<wsStartApp application="${ant.project.name}"/>
</target>


And here are the log messages:

install:
[wsInstallApp] Installing Application [C:\smith\projects\motiva\Development\Sour
ce\original\motiva.war]...
[wsadmin] WASX7209I: Connected to process "server1" on node NEWGRANGENode01 us
ing SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\DOCUME~1\c-smit
hm\LOCALS~1\Temp\wsant55873jacl"; exception information: com.ibm.ws.scripting.Sc
riptingException: WASX7134E: "contextroot" option must be specified for war file
installation.

[wsadmin] Java Result: 105
[wsInstallApp] Installed Application [C:\smith\projects\motiva\Development\Sourc
e\original\motiva.war]
[wsStartApp] Starting Application [motiva]...
[wsadmin] WASX7209I: Connected to process "server1" on node NEWGRANGENode01 us
ing SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\DOCUME~1\c-smit
hm\LOCALS~1\Temp\wsant55874jacl"; exception information: javax.management.MBeanE
xception
[wsadmin] com.ibm.ws.exception.ConfigurationWarning: Application motiva not in
stalled

[wsadmin] Java Result: 105
[wsStartApp] Started Application [motiva]

all:

BUILD SUCCESSFUL
Total time: 53 seconds


Thanks a million for whatever help or assistance!
Smith Magadia
Greenhorn

Joined: Jun 29, 2005
Posts: 15
I'm sorry, my sample ant code:

<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/>

<target name="install">
<wsInstallApp ear="${ear.path}"/>
<wsStartApp application="${ant.project.name}"/>
</target>
Smith Magadia
Greenhorn

Joined: Jun 29, 2005
Posts: 15
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/>
<target name="install">
<wsInstallApp ear="${ear.path}"/>
<wsStartApp application="${ant.project.name}"/>
</target>
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
134

Smith,
To get the ant code to display, you need to escape the < as &lt; and the > as &gt;. Eric, one of our bartenders, has a web page that lets you cut and paste code into it to escape the characters for you.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to install application thru ant task?
 
Similar Threads
Trying to deploy ear file with no luck
Maven was5:stopApp and was5:startApp problems
ant script using "wsStopApplication" task doesnt run
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat
AppDeploymentException: []