-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marseldi,

On 3/11/2011 9:27 AM, Marseld Dedgjonaj wrote:
> I am new to Tomcat and more detailed help would be more valuable to me.

Welcome.

> I am trying to use Ant to reload a tomcat application. I write the build.xml
> file based on "Managing Applications with Ant" section of the "Professional
> Apache Tomcat" book.

Okay. You should also read this:

http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Executing_Manager_Commands_With_Ant

You didn't say which version of Tomcat you were using: I'll assume you
are using the latest in the 7.0.x line.

>   <!-- Configure properties to access the Manager application -->
> 
>   <property name="url"      value="http://localhost:8080/manager/html"/>

Look carefully at the configuration in the above documentation link
versus what you have there for your URL. I suspect that is the real problem.

> +Target: undeploy
> 
> [antlib:org.apache.tools.ant] Could not load definitions from resource
> org/apache/tools/ant/antlib.xml. It could not be found.

This doesn't look like an error... only an info/warn message.

> reload:
> 
>    [reload] <html>
> 
>    [reload] <head>
> 
>    [reload] <style>
> 
>  
> 
> ....
> 
>  
> 
>   [reload] </html>
> 
>  
> 
> BUILD FAILED

So the build fails, but you didn't provide all the [reload] output. What
happened?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk16PsgACgkQ9CaO5/Lv0PAj2wCglrKFnSvkVvm1AQSE90Q1HQEZ
j2cAn0zmBHi8sjU5BD8cH5QlrxOvr3lI
=WZJR
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to