Bug 431808
Summary: | Tomcat5 Does Not Start After Recent Update | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bob Cochran <cochranb> | ||||||||
Component: | tomcat5 | Assignee: | Vivek Lakshmanan <viveklak> | ||||||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | 8 | CC: | devrim | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i386 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2008-02-09 05:05:40 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Bob Cochran
2008-02-07 02:11:02 UTC
Created attachment 294289 [details]
catalina.out file
Result of `netstat` netstat results for port 8080 [root@deafeng3 tomcat5]# netstat -an | grep '8080' tcp 0 0 :::8080 :::* LISTEN Note: the above looks like an IPv6 listener [root@deafeng3 tomcat5]# netstat -an | grep '80' tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN tcp 0 0 :::8009 :::* LISTEN tcp 0 0 :::8080 :::* LISTEN tcp 0 0 :::80 :::* LISTEN udp 0 0 fe80::218:deff:fe21:123 :::* unix 2 [ ACC ] STREAM LISTENING 8067 /tmp/keyring-qviH4s/socket unix 2 [ ACC ] STREAM LISTENING 21132 /tmp/orbit-rlc/linc-e6b-0-13880f44e735 unix 2 [ ACC ] STREAM LISTENING 21140 /tmp/orbit-rlc/linc-e69-0-13880f441e498 unix 2 [ ACC ] STREAM LISTENING 21408 /tmp/orbit-rlc/linc-e96-0-378cc180e6ad8 unix 2 [ ACC ] STREAM LISTENING 6807 @/var/run/hald/dbus-slz7r1Gdz1 unix 3 [ ] STREAM CONNECTED 21680 /tmp/orbit-rlc/linc-e41-0-6953386bc62c3 unix 3 [ ] STREAM CONNECTED 21425 /tmp/orbit-rlc/linc-e96-0-378cc180e6ad8 unix 3 [ ] STREAM CONNECTED 21415 /tmp/orbit-rlc/linc-e96-0-378cc180e6ad8 unix 3 [ ] STREAM CONNECTED 21411 /tmp/orbit-rlc/linc-e96-0-378cc180e6ad8 unix 3 [ ] STREAM CONNECTED 21345 /tmp/orbit-rlc/linc-e69-0-13880f441e498 unix 3 [ ] STREAM CONNECTED 21280 /tmp/orbit-rlc/linc-e30-0-19331ff06ff67 unix 3 [ ] STREAM CONNECTED 21269 /tmp/orbit-rlc/linc-e6b-0-13880f44e735 unix 3 [ ] STREAM CONNECTED 21222 /tmp/orbit-rlc/linc-e69-0-13880f441e498 unix 3 [ ] STREAM CONNECTED 21218 /tmp/orbit-rlc/linc-e6b-0-13880f44e735 unix 3 [ ] STREAM CONNECTED 21143 /tmp/orbit-rlc/linc-e69-0-13880f441e498 unix 3 [ ] STREAM CONNECTED 21135 /tmp/orbit-rlc/linc-e6b-0-13880f44e735 unix 3 [ ] STREAM CONNECTED 8093 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 8092 unix 3 [ ] STREAM CONNECTED 6809 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTED 6808 Are you sure that you have installed the tomcat5-webapps application? That is the one that will give you the tomcat5 splash screen when you visit http://localhost:8080... There is clearly something listening on your port 8080. Kill that process, restart tomcat5 and report back. I just installed tomcat5 and tomcat5-webapps on an up-to-date vanilla fedora 8 i386 box and the splash screen comes up fine... Thanks for the feedback and also for your work in attempting to reproduce this problem. Here is some extra information. Another person suggested running lsof and netstat -talpen and here are the results: [root@deafeng3 ~]# lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME java 2548 jetty 24u IPv6 6817 TCP *:webcache (LISTEN) [root@deafeng3 ~]# netstat -talpen | grep ':8080' tcp 0 0 :::8080 :::* LISTEN 496 6817 2548/java However, I don't understand how to interpret the above. I do have the Sun JDK 1.6 installed, but my Java Alternatives are pointing at IcedTea 1.7.0 . Can you suggest the culprit here? Below is a list of my installed tomcat-related applications. As you can see, tomcat5-webapps is included. Do you see anything that might be problematic? [root@deafeng3 ~]# rpm -qa | egrep 'tomcat' jakarta-commons-dbcp-tomcat5-1.2.1-10jpp.2.fc8 tomcat5-webapps-5.5.25-3jpp.1.fc8 jakarta-commons-pool-tomcat5-1.3-9jpp.3.fc8 tomcat-native-1.1.10-1.fc8 tomcat5-common-lib-5.5.25-3jpp.1.fc8 tomcat5-5.5.25-3jpp.1.fc8 tomcat5-server-lib-5.5.25-3jpp.1.fc8 tomcat5-servlet-2.4-api-5.5.25-3jpp.1.fc8 tomcat5-jsp-2.0-api-5.5.25-3jpp.1.fc8 jakarta-commons-collections-tomcat5-3.1-9jpp.2.fc7.1 tomcat5-jasper-5.5.25-3jpp.1.fc8 tomcat5-admin-webapps-5.5.25-3jpp.1.fc8 tomcat5-jasper-eclipse-5.5.25-3jpp.1.fc8 Bob (In reply to comment #4) > Thanks for the feedback and also for your work in attempting to reproduce this > problem. Here is some extra information. Another person suggested running lsof > and netstat -talpen and here are the results: > > [root@deafeng3 ~]# lsof -i :8080 > COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME > java 2548 jetty 24u IPv6 6817 TCP *:webcache (LISTEN) > Well looks like you have jetty installed and it would not surprise me if both Jetty and tomcat listen on the same port by default . Please kill that process/shut Jetty down and try again. Otherwise, edit /etc/tomcat5/tomcat5.conf to uncomment the following line - #CONNECTOR_PORT=8080 and change it to something you know is not being used and restart tomcat. It should come up with the right splash screen at localhost:<your_new_port> Thanks for your help, things are a bit clearer to me now. Jetty is running on port 8080 because it is needed by Fedora Eclipse, which I did install but have not yet used. I uncommented and then changed CONNECTOR_PORT in /etc/tomcat5/tomcat5.conf from 8080 to 8081 and restarted tomcat. Visiting http://localhost:8081/ still did not bring up the splash screen. Then I edited the /etc/tomcat5/server.xml file to change the connector port from 8080 to 8081. I ran 'service stop tomcat5', waited 60 seconds, ran 'service start tomcat5', and again visited http://localhost:8081/. Success! So I guess changes to the tomcat5.conf file are not being applied as expected. I'm attaching both files for your convenience. Also it seems to me that either the Jetty, or the Tomcat5 packages should be changed so each product runs on separate ports by default. Until now, I didn't customize Tomcat5 in any way. I just wanted it to run so I can get started learning how to code servlets. Thank you for your help. Now I realize I can learn not only about using Tomcat, but also Jetty (assuming I can use it for something other than Eclipse.) Bob Created attachment 294445 [details]
tomcat5.conf
Edited to change CONNECTOR_PORT from 8080 to 8081, but has no effect after
restarting tomcat5 service.
Created attachment 294446 [details] tomcat5 server.xml Changing the connector port in this file from 8080 to 8081 and restarting the tomcat5 service does bring up the expected splash screen when visiting http://localhost:8081/. Sorry, but this is not a support forum. Since this is not a *bug*, I'm closing this bug. If you want to get familiar with Tomcat5, please join relevant mailing lists, etc. Regards, Devrim Please don't misunderstand what I am saying here. You do indeed have a bug: two packages, which by default are listening on the same port. That is the issue here. You are free to do what you wish with this. Thanks, Bob |