• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Install task cannot find file

 
Greenhorn
Posts: 1
  • 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

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 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?
 
Greenhorn
Posts: 2
  • 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"/>
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic