Re: Fwd: catalina ant deploy task problem...

Stefan Armbruster <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Jake,

I'm using the deploy task with the same attributes and it works.
Thinking of the IO exception you might take a look at the following
areas:

1) the URL. Speaking of unix, there we have
file:///home/stefan/whatever.war
The first two "//" belong to the protocol specification, the last one to
the path in the filesystem. So when using a Micro$oft OS, an absolute
path starts with the drive letter. Following this, your URL should be
file://C:/anypath/anyfile.war (you are using three "///"). Im not sure
if you have to use "\" instead of "/" in the path.

2) Did you check check your file access permissions? AFAIK tomcat
receives the war file using a HTTP PUT and places it somewhere in the
work subdirectory. Do you see your war file here?

3) Try to increase the debug attribute of the manager context in
server.xml, to get more logging info. Hopefully you get a hint in the
logs what's going wrong.

4) Does your server.xml have unpackWARs="true" autoDeploy="true" set in
the Host element?

Another short note for the deploy task specific to barracuda:
Tomcat processes META-INF/context.xml as a context configuration into
server.xml. So I think we should move WEB-INF/ccf.xml to
META-INF/context.xml. 

Regards,
Stefan

Am Son, 2003-01-19 um 01.28 schrieb Jacob Kjome:
> Hi Everyone,
> 
> I posted this to the Tomcat list and got zero response.  Anyone have
> an answer for this one?  I'm trying to enabled the catalina-deploy
> task for Barracuda.  I made a new target to build the .war file and I
> changed the existing catalina-deploy to look like this...
> 
> <catalina-deploy
>             url="${manager.url}"
>             username="${manager.username}"
>             password="${manager.password}"
>             path="${app.path}"
>             war="${app.war}" />
> 
> catalina-install works just fine as do all of the other Ant Catalina
> tasks.  It is just catalina-deploy that is failing.  Has anyone gotten
> this to work?  I'm using Tomcat-4.1.19.
> 
> Jake
> 
> 
> > Date: Sat, 18 Jan 2003 03:27:59 -0600
> > To: "Tomcat Users List" <[email protected]>
> > From: Jacob Kjome <[email protected]>
> > Subject: catalina ant deploy task problem...
> > 
> > 
> > I have always used the "install" task, so I haven't run into this
> > issue until now.  I have a .war file which I want to deploy to
> > Tomcat.  The path is correct because I've tried the same file:///
> > URL to do an "install" from the manager web GUI and that was
> > successful.  I also use the same path, username, and password as the
> > install task.  However, I am getting the following error:
> > 
> > catalina-deploy:
> >      [echo]
> > file:///D:/myclasses/Repository/Enhydra/BarracudaMVC_2003-01-15/Barracuda/Barracuda.war
> > 
> > BUILD FAILED
> > file:./catalina-tasks.incl:50: java.io.IOException: Server returned
> > HTTP respons
> > e code: 403 for URL:
> > http://localhost:8080/manager/deploy?path=%2FBarracuda
> > 
> > Anyone know why this might be?  I am logged in as administrator so
> > it shouldn't be a file/directory permissions problem.  What the
> > heck?
> > 
> > Jake
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.