It looks like the deployment directory is configured to be /var/lib/tomcat6.0/webapps. This service goes and unzips the war and deploys it.
However the service and the deployment manager are configured to look in /usr/share/tomcat6.0-webapps. So if you try to browse to your deployed website it turns up nothing.
I would update the config files for tomcat and the deployment manager but cftuser does not have permission to access the directory and Elastic VM's don't permit sudo access to this directory.
Is there a workaround for this or am I missing a piece of information?
You should be able to sudo to root and modify the configuration files.
I've just looked in a build image for a Tomcat 6 VM and managed to use sudo successfully.
Currently there should be no limitation on what the cftuser can do via sudo, so if you've found a specific command that doesn't work please post it here so we can investigate.
Please try "sudo su" and use cftuser's password. You will become root. cd is a tricky command, as it's a shell built-in and it doesn't play well with sudo the way one might expect.
5 comments:
Hello,
I'm having trouble with the Tomcat6 package.
It looks like the deployment directory is configured to be /var/lib/tomcat6.0/webapps. This service goes and unzips the war and deploys it.
However the service and the deployment manager are configured to look in /usr/share/tomcat6.0-webapps. So if you try to browse to your deployed website it turns up nothing.
I would update the config files for tomcat and the deployment manager but cftuser does not have permission to access the directory and Elastic VM's don't permit sudo access to this directory.
Is there a workaround for this or am I missing a piece of information?
Any info is appreciated.
Thanks
Jeff,
You should be able to sudo to root and modify the configuration files.
I've just looked in a build image for a Tomcat 6 VM and managed to use sudo successfully.
Currently there should be no limitation on what the cftuser can do via sudo, so if you've found a specific command that doesn't work please post it here so we can investigate.
Thanks.
Hi N,
Ok, I unzipped a brand new VM from the zip file I downloaded off the Elastic Server site.
I think what I'm missing is the default root password for a new VM.
I logged in as cftuser and cd'd to: /var/lib/tomcat6.0.
I then tried 'su root cd conf' with the cftuser password, the string 'password' and the string 'admin' and got no luck.
I next tried 'sudo cd conf' and got 'sudo: cd: command not found'.
I'll fully admit to not being the greatest Unix admin so if I'm missing a step here please let me know. :)
Thanks.
Hi Jeff,
Please try "sudo su" and use cftuser's password. You will become root. cd is a tricky command, as it's a shell built-in and it doesn't play well with sudo the way one might expect.
Dmitriy
That did it!
Thanks!
Post a Comment