aspose file tools*
The moose likes Tomcat and the fly likes unable to deploy war file on tomcat5.5 (JVM 1.5.0) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "unable to deploy war file on tomcat5.5 (JVM 1.5.0)" Watch "unable to deploy war file on tomcat5.5 (JVM 1.5.0)" New topic
Author

unable to deploy war file on tomcat5.5 (JVM 1.5.0)

kenneth gilpin
Greenhorn

Joined: Oct 11, 2010
Posts: 3
Hi Everyone,

I've been given my own server (Debian) at work, with the condition that I will get no support... I program in Java/ Flex mostly and am green in linux so this is a poison chalice if ever there was one.

I'm trying to upload a 'hello world' style jsp onto the server. It works fine on my own computer, within a NetBeans/virtual tomcat enviroment. I can build a war then deploy the file from within the tomcat manager. This all works fine.

When I move the file to the server then try to deploy the war from the tomcat manager I get the following message:

FAIL - Deploy Upload Failed, Exception: Processing of multipart/form-data request failed. /var/cache/tomcat5.5/Catalina/localhost/manager/upload_4qzgbu_gf5g1gok.0_00000007.tmp (Permission denied)

I don't understand this and there is no information in the logs. I'm logged onto my server as an administrator so can't see how tomcat can have permission denied for a file.

Where do I go from here?

with grateful thanks,

kenneth
kenneth gilpin
Greenhorn

Joined: Oct 11, 2010
Posts: 3
sorry to update:

I've manually put the war file into the webapps directory and restarted tomcat. The files unpacked okay and I can see the files in the manager. When I try to go to the address I get the error message:





I got stuck here before. Is this something to do with the privileges that Tomcat runs under?

kenneth
samuel smith
Greenhorn

Joined: Sep 28, 2010
Posts: 13
Are you logged on as ether root of the tomcat5.5 user?
It is a permissions thing - my directory /var/cache/tomcat6 is owed by tomcat6 user, which will probably be the same for you.

Check that dir is owned by your relevant tomcat user (and pref sub-directories). When deploying, check that that directory is using the correct permissions.
Try to deploy using the web-manager and see if that runs ok.

Just a few ideas!
kenneth gilpin
Greenhorn

Joined: Oct 11, 2010
Posts: 3
Thanks,

The 'work' folder and subfolders within the tomcat folder were owned by root. I changed them to being owned by tomcat and it worked!

Kenneth
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to deploy war file on tomcat5.5 (JVM 1.5.0)
 
Similar Threads
Tomcat does not list *.war
how to install tomcat 5.5 in windows vista
Tomcat 6.0.30: cannot deploy application: access denied.
HTTP Status 404. My project runs ok w/ eclipse +tomcat; fails when exporting to .war
Serialization Problem