| 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: 26193
|
|
Smith, To get the ant code to display, you need to escape the < as < and the > as >. 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
|
 |
 |
|
|
subject: how to install application thru ant task?
|
|
|