| Author |
Ant deploy not working
|
Uma Bandaru
Ranch Hand
Joined: Jul 30, 2009
Posts: 31
|
|
Hi,
I am trying to deploy an application (named springapp) on Apache by using ANT build files. I followed the tutorial exactly and wrote the build.xml and build.properties files. The "ant" command and the "ant deploy" command did not throw any errors. But "ant list" command does not list my application and I could not view my "index.jsp" page in the website. Can any one help me with this ?
E:\apps\Eclipse32\Workspacenew\springapp>ant
Buildfile: E:\apps\Eclipse32\Workspacenew\springapp\build.xml
usage:
[echo]
[echo] springapp build file
[echo] -----------------------------------
[echo]
[echo] Available targets are:
[echo]
[echo] build --> Build the application
[echo] deploy --> Deploy application as directory
[echo] deploywar --> Deploy application as a WAR file
[echo] install --> Install application in Tomcat
[echo] reload --> Reload application in Tomcat
[echo] start --> Start Tomcat application
[echo] stop --> Stop Tomcat application
[echo] list --> List Tomcat applications
[echo]
BUILD SUCCESSFUL
Total time: 0 seconds
E:\apps\Eclipse32\Workspacenew\springapp>ant deploy
Buildfile: E:\apps\Eclipse32\Workspacenew\springapp\build.xml
build:
[javac] E:\apps\Eclipse32\Workspacenew\springapp\build.xml:45: warning: 'inc
ludeantruntime' was not set, defaulting to build.sysclasspath=last; set to false
for repeatable builds
deploy:
BUILD SUCCESSFUL
Total time: 0 seconds
E:\apps\Eclipse32\Workspacenew\springapp>ant list
Buildfile: E:\apps\Eclipse32\Workspacenew\springapp\build.xml
list:
[list] OK - Listed applications for virtual host localhost
[list]
[list] /manager:running:0:../server/webapps/manager
[list]
[list] /:running:0:ROOT
[list]
[list] /webdav:running:0:E:\Uma\apache\webapps\webdav
[list]
[list] /examples:running:0:examples
[list]
[list] /Beerv1:running:0:E:\Uma\apache\webapps\Beerv1
[list]
[list] /tomcat-docs:running:0:E:\Uma\apache\webapps\tomcat-docs
[list]
[list] /myclinic:running:0:E:\Uma\apache\webapps\myclinic
[list]
BUILD SUCCESSFUL
Total time: 1 second
|
 |
Uma Bandaru
Ranch Hand
Joined: Jul 30, 2009
Posts: 31
|
|
Hi all,
I sorted out the problem myself. I realised that there have been some unnessary files in my springapp folder in the webapps directory of apache. I deleted everything and entered ant, ant deploy commands again and it worked !
|
 |
Allwyn Joseph
Greenhorn
Joined: Feb 11, 2011
Posts: 5
|
|
|
Hey Thanks I was stuck for 2 days and cannot figure out wt was the problem
|
 |
 |
|
|
subject: Ant deploy not working
|
|
|