Yoav,

Thanks for the reply, but I am not sure what to do with the information you
gave me. My objective is to use my ant build file to deploy. I have
experimented with combinations of the information u gave me in my build.xml
below, but still am not able to deploy from my local machine to a remote
server. I have verified that if I ftp from my local machine to a remote
machine, then run the build file there, everthing works great. But this is
not what I want. As I mentioned earlier, I am able to do a list task from my
build.xml, so I know that the manager URL and login information are set
correctly. I just don't know what to put in the line:

localWar="file://${build.home}"

Can u make a suggestion to how I would modify the build file below in the
form of an example please?

Thanks,

Harry



-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 8:53 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: ant build remote java.net.MalformedURLException (newbie Q)


Hi,
Make sure the URL conforms to the one in the documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Deplo
y%20A%20New%20Application%20from%20a%20Local%20Path.  Specifically, note
things like the ! at the end of the WAR file name of deploying a WAR.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Harry Hartley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 21, 2004 6:49 AM
>To: [EMAIL PROTECTED]
>Subject: ant build remote java.net.MalformedURLException (newbie Q)
>
>I am trying to use the sample to deploy the test application from my
local
>machine to my remote server.
>
>
>
>I have done all builds and deployments successfully, and everything
works
>fine (yippy!).
>
>I have modified the build.xml to use the url and password for the
manager
>app on my remote server. This works partially. I am able to do lists,
but
>when I try to install, I get a  java.net.MalformedURLException error.
>Looking at the build.xml, this makes sense. My assumption is that the
>manager application looks at the
>
> <deploy url="${manager.url}"
>
>            uername="${manager.username}"
>
>            password="${manager.password}"
>
>                        path="${app.path}"
>
>            localWar="file://${build.home}"/>
>
>
>
>and tells me hey dude, aint no such directory on my server.
>
>
>
>So the question is, how to do an install from a local machine, running
>build
>on a local machine (with tomcat installed), and install my war on a
remote
>machine. A couple of thoughts come to mind:
>
>1)       FTP files to remote system using ant tasks.
>
>2)       Use something other than 'file://' as designator of location.
>
>3)       There is some other task or property for ant that handles
this.
>
>
>
>I should mention that locally I am behind a nat and using a typical
cable
>HSD account with dynamic ip assignment, so using my own IP is probably
not
>feasible.
>
>
>
>Any Help? Thanks,
>
>
>
>Harry
>
>




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to