
Originally Posted by
zimmaro
hello hannah

I hope you understand [I state that I understand little or nothing]
Hi zimmaro..thanks mate but I am sorry I did not quite understand what you mean here..
Anyway no love from tomcat as yet..
I have now done a whole lot of work but I believe I now have broke it completely..let me explain step by step:
I have decided to completely remove tomcat and re-install it and this is what I have done:
Code:
dpkg -l|grep tomcat
then
sudo dpkg -P tomcat6
then
apt-get purge tomcat6
I still see a lot instances of tomcat6 by running:
Code:
oot@bt:~/scripts# dpkg -l|grep tomcat
ii libtomcat6-java 6.0.24-2ubuntu1.10 Servlet and JSP engine -- core libraries
ii tomcat6-admin 6.0.24-2ubuntu1.10 Servlet and JSP engine -- admin web applications
ii tomcat6-common 6.0.24-2ubuntu1.10 Servlet and JSP engine -- common files
ii tomcat6-docs 6.0.24-2ubuntu1.10 Servlet and JSP engine -- documentation
ii tomcat6-examples 6.0.24-2ubuntu1.10 Servlet and JSP engine -- example web applications
Then I manually remove this folder
rm -R /etc/tomcat6
I then see traces of tomcat6 here:
Code:
Then I see tarces of tomcat6 here:
root@bt:/usr/share# ls -l | grep tomcat6
drwxr-xr-x 4 root root 4096 2012-10-18 10:20 tomcat6
drwxr-xr-x 4 root root 4096 2012-10-17 12:53 tomcat6-admin
drwxr-xr-x 3 root root 4096 2012-10-17 12:53 tomcat6-docs
drwxr-xr-x 3 root root 4096 2012-10-17 12:53 tomcat6-examples
I remove those files manually as well.
Then I fire up synaptic and surprise I see a lot of traces of tomcat6 ..see the pic..

then I install tomcat6 from Synaptic

tried to start the service throug init.d but now getting fail
Anyway so I remove this Synaptic installation and install it with apt-get
Code:
apt-get install tomcat6 tomcat6-admin tomcat6-examples tomcat6-docs
After installation tomcat6 service tried to start but getting error
Code:
After installation:
Setting up tomcat6 (6.0.24-2ubuntu1.10) ...
* Starting Tomcat servlet engine tomcat6 [fail]
invoke-rc.d: initscript tomcat6, action "start" failed.
Setting up tomcat6-admin (6.0.24-2ubuntu1.10) ...
Setting up tomcat6-docs (6.0.24-2ubuntu1.10) ...
Setting up tomcat6-examples (6.0.24-2ubuntu1.10) ...
So I manually tried to start tomcat with start up script located here:
Code:
root@bt:/usr/share/tomcat6/bin# ./startup.sh
Using CATALINA_BASE: /usr/share/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar
touch: cannot touch `/usr/share/tomcat6/logs/catalina.out': No such file or directory
/usr/share/tomcat6/bin/catalina.sh: line 332: /usr/share/tomcat6/logs/catalina.out: No such file or directory
So I manually created the folder logs and file catalina.out
Now I currently have this: /usr/share/tomcat6/logs/catalina.out
Now running the start up script again and getting no error there:
Code:
root@bt:/usr/share/tomcat6/bin# ./startup.sh
Using CATALINA_BASE: /usr/share/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat6/bin/bootstrap.jar
So I go back to init.d
Code:
root@bt:/etc/init.d# ./tomcat6 restart
* Starting Tomcat servlet engine tomcat6 [fail]
YUP...very much so... [fail]
Yes I just managed to lot of work and achieved nothing...
Help plz...some one..