By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,728 Members | 2,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,728 IT Pros & Developers. It's quick & easy.

I have a problem with reload my servlet with tomcat 5.0.27

P: 1
Hi all,

I have a problem with reload my servlet with tomcat 5.0.27
My servlet is the one example of the struts "struts-example".
I also make changes and want to reload it by tomcat 5.0.27.

So I tried it with ant and I 've following relevant entrys in the build.xml file :


<project name="My Project" default="compile" basedir=".">
....

<property name="app.name" value="struts-example"/>
<property name="app.path" value="/${app.name}"/>

<property name="manager.url" value="http://localhost:8080/manager"/>
<property name="manager.username" value="tomcat"/>
<property name="manager.password" value="tomcat"/>

...


<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>

...
</project>


I type "ant reload" in the shell


after compiling (simple compiling works)
I get following errormessage :

....
BUILD FAILED
D:\Aktuell\Develop\webapps\struts-example\build.xml:535: java.net.ConnectExcepti
on: Connection refused: connect


Can anybody help to solve my problem ?
Jun 30 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.