i used sudo apt-get install tomcat7
to install tomcat7 on ubuntu 13.04 server, the tomcat installed on my machine but there were few problems :
- OpenJDK also installed on my machine and i don't want that (i am using oracke jdk7)
- after tomcat installation i couldn't find the webapp folder in which i should deploy my war fies,
so i removed tomcat and downloaded the binary package from apache website . would you please guide me on following matters :
- i need to install tomcat as a service for all users (tomcat should be started automatically on system reboot)
- all the users should be able to browse the deployed application with their Internet browsers but none of them should be able to delete/modify/create any file in webapp directory without root password
thank you all.
EDIT :
i followed the instruction here http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/ to install tomcat manually as a service
after getting permission errors when trying to start tomcat i used the accepted answer here a lots of (Permission denied) in catalina.out and fixed that. but now for no reason tomcat fails to start and just show me these lines
raysis@raysis-server:~$ sudo /etc/init.d/tomcat start
[sudo] password for raysis:
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/jdk1.7.0
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
raysis@raysis-server:~$