It's not a secret anymore!*
The moose likes Ant, Maven and Other Build Tools and the fly likes Reload error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Reload error" Watch "Reload error" New topic
Author

Reload error

Ramesh Etta
Ranch Hand

Joined: Sep 18, 2007
Posts: 46
hi,

I had written a build.xml and its working well. When i had installed Oracle 9i in my system, port no 8080 is not working for tomcat. So i have changed the port to 6060. Now when i am trying to reload the application its giving an error like
Buildfile: D:\........\build.xml
prepare:
compile:
reload:

BUILD FAILED
D:\Projects\ncd-admin\source\build.xml:123: java.io.FileNotFoundException: http://localhost:8080/manager/reload?path=%24%7Bapp.absolutepath%7D

Not only for Reload but for Remove operatiion also.

I had written the code for reomve and Reload like this

<target name="reload" depends="compile" description="Reload application on servlet container">
<reload url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}"/>
</target>

<target name="remove" description="Remove application on servlet container">
<undeploy url="${manager.url}" username="${manager.username}" password="${manager.password}" path="${app.path}"/>
</target>


I couldnt understand what the problem is. Please suggest any changes,
or if there is any correction to be made?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Well, the path parameter in the URL doesn't look quite right to me. Looks a little bit like an encoded name of an Ant property, so I'd guess that some property isn't set properly (pun not intended).


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reload error
 
Similar Threads
Problems with Tomcat Ant Tasks
Ant 1.5.1 works with Tomcat 5.0, but not 4.1
/build.xml:372: java.net.UnknownHostException: root +ant
exception wile running build.xml
Ant Build Failed for uninstall