• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to install application thru ant task?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/>
<target name="install">
<wsInstallApp ear="${ear.path}"/>
<wsStartApp application="${ant.project.name}"/>
</target>
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic