• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kenneth gilpin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic