Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I install the apache-tomcat-5.5.23, but I can't view page http://localhost:8080. Is there any error in following message?
Code:
root@localhost apache-tomcat-5.5.23> /usr/src/apache-tomcat-5.5.23/bin/startup.sh
Using CATALINA_BASE: /usr/src/apache-tomcat-5.5.23
Using CATALINA_HOME: /usr/src/apache-tomcat-5.5.23
Using CATALINA_TMPDIR: /usr/src/apache-tomcat-5.5.23/temp
Using JRE_HOME: /usr/java/jdk1.5.0_07
root@localhost apache-tomcat-5.5.23>
Or do I neet to paste out other file for discussion?
Thanks,
EDIT: by the way, it seems that I have different jave modules installed, do I need to uninstall the previous version?
Last edited by brave heart; 08-02-2007 at 04:50 AM.
There is no error in the execution of the startup.sh script assuming that the CATALINA_* variables it uses are correct. To verify that tomcat is running and listening on port 8080, run:
Code:
ps -ef|grep tomcat
netstat -tan|grep 8080
You can check the logfile catalina.out to see if you find anything wrong.
As for the java version it's better to keep the modules you have because they might be in use by other applications.
That's strange, since startup.sh produces no errors but tomcat is not running. According to catalina.out the startup process is stopping somewhere in the middle but with no errors.
One thing I've noticed is the path to catalina.out (and admin.xml, balancer.xml) that is /var/www/tomcat. If this is correct, then your CATALINA_* variables should point to /var/www/tomcat
Where is tomcat installed? And how did you installed it?
Because the only thing you need to define in order to run tomcat is JAVA_HOME. The various CATALINA_* variables are taken from the path to the startup script.
And I installed apache-tomcat-5.5.23 in /usr/java via instruction of
The instructions you mentioned are for building jsvc which is used to run tomcat as daemon and /usr/java is the path to the jdk needed. I think that you've extracted the tomcat archive under /usr/src, so the CATALINA_* are /usr/src/apache-tomcat-5.5.23. If that's the case, remove (or comment out) the TOMCAT_HOME from your /etc/profile, or edit it to be the same as CATALINA_HOME and then logout/login again to re-read your profile. Or run
Code:
source /etc/profile
Then try to start tomcat using the /usr/src/apache-tomcat-5.5.23/bin/startup.sh script.
I've changed from "JAVA_HOME=/usr/java/jdk1.5.0_07" to "JAVA_HOME=/usr/java/jdk1.5.0_12" in /etc/profile, and reinstall tomcat in /usr/java.
Then I can see the default webpage of tomcat, but I can't see the other jsp file which I put on the webapps/ROOT, do I need to install the ant and cvs as the manual said?
What you mean when you say that you cannot see other jsp. You get a 404 error (file not found) or you get nothing at all. Do the jsp examples provided in the default tomcat page work?
I'm not a java programmer to help you further, but I think you should take a look at catalina.out for error mesages. If the examples work, then there is something in your code that causes the error.
I can find the error of"at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)"in catalina.out, but I don't how to correct it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.