Re: Fwd: catalina ant deploy task problem...
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Stefan,
Thanks for the hints. I'll check these things out. As far a renaming
ccf.xml, there is no need to do that. For one, sampl.ccf.xml always has
the filter tokens. ccf.xml will have the necessary info for running the
"catalina-install" task. All I do for the "catalina-deploy" task is to do
another filter copy of sample.ccf.xml to WEB-INF/tmp$/META-INF with the
docBase being the name of the .war file (Barracuda.war) rather than the
physical path to the "Barracuda" directory like ccf.xml has. Leaving
things in place will work just fine.
In reference to your first point, thanks for providing the information
about the multiple forward slashes. However, curiously, the 3 forward
slashes work just fine for the install task....and when I go directly to
the Tomcat manager GUI app and use the path from the original email to
enter as the URL for the .war file, it installs Barracuda just fine. So, I
think Tomcat is able to find the app just fine. I will look into
increasing debugging and checking file permissions. However, I am logged
in as Administrator and tried both starting Tomcat from the command line
and having the service log in as "Administrator". So, it should have had
full write access. I didn't know that it sent the file to the "work"
directory. I'll check there to see if it shows up. Oh, and "yes" for #4.
thanks,
Jake
At 11:10 AM 1/19/2003 +0100, you wrote:
>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
>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda