This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Install task cannot find file

 
Vinod Maladkar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed the build.xml with Deploytask..

getting.. java.io.FileNotFoundException: SpringApp (The system cannot find the file specified)

I am using Windows7 laptop and runing Spring samples..........................



<target name="install" description="Install application in Tomcat">
<echo message="-------------${name}----------------" />
<install url="${tomcat.manager.url}"
username="${tomcat.manager.username}"
password="${tomcat.manager.password}"
path="/${name}"
war="${name}"/>
</target>


Does anyone why this is happening? It is creating folders in Tomcat webapps folders without any issues....From below example: name = SpringApp....I tried with other values too....but fails in Install task...

below is entire build.xml

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinod, welcome to Java Ranch!

The error message says it all, you should have been able to fix the problem based on that alone. But here are some hints:

Look at line 60 where you declare the name of your war file.

Then compare that to line 107 where you tell the <install> task the name of the war file.

What's missing on line 107?
 
Damian Kober
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Vinod, welcome to Java Ranch!

The error message says it all, you should have been able to fix the problem based on that alone. But here are some hints:

Look at line 60 where you declare the name of your war file.

Then compare that to line 107 where you tell the <install> task the name of the war file.

What's missing on line 107?


adding the .war at the end made it work altough every single example you find on the web just uses the name with no .war ending

however, it didn't quite worked until I put the full path. I ended up with something like:

<install url="${tomcat.manager.url}"
username="${tomcat.manager.username}"
password="${tomcat.manager.password}"
path="/${name}"
war="C:/dev/research/springtest/${name}.war"/>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic