When I try to run my servlet coding deployed in tomcat5 I get the display of the HTML page...but when I click a button and the servlet gets called I get the following message. This is my first servlet program .please do help.Thanks in advance.
By the way: Running Tomcat (or any other container for that matter) as root is a real bad idea. Once you get past this issue, you should look into reworking your permissions so that it can run as a lesser user.
I become the root user and run the "service tomcat5 start" command...When I make some changes to the code I restart tomcat using "service tomcat5 restart" I am still working my way around file permissions etc in linux as I am just 2 weeks old to linux.Thanks...
I hope you mean this...but it says command not found
[root@localhost bin]# startup.sh -bash: startup.sh: command not found
Thanks for your patience...
posted 11 years ago
I just looked around and found a file called tomcat.conf and I am copy-pasting a part of its contents
# System-wide configuration file for tomcat5 services
# This will be sourced by tomcat5 and any secondary service # Values will be overridden by service-specific configuration # files in /etc/sysconfig # Use this one to change default values for all services # Change the service specific ones to affect only one service # (see, for instance, /etc/sysconfig/tomcat5) # # tomcat5 service configuration file
# you could also override JAVA_HOME here # Where your java installation lives JAVA_HOME="/usr/java/jdk1.6.0_04"
I also tried restarting my system a couple of times.
Also, did you dowload and install Tomcat from the Apache site or are you using a version that shipped with your OS?
Personally, I like to use the versions from the site. The versions that ship with the Linux distros are usually heavily configured and spread out all over the machine. This might make sense from a Unix standpoint but when learning Tomcat or trying to stay on top of Tomcat upgrades, I find it easier to have the whole thing in one, self contained directory. [ February 19, 2008: Message edited by: Ben Souther ]
That's the same as the one that would ship with Redhat.
My advice: Remove that version of Tomcat and go get one from Tomcat's site. Installing and running is as easy as unpacking a zipped tarball, setting your JAVA_HOME environment variable, and executing the startup.sh script.