You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by fatzopilot <fa...@gmx.net> on 2010/01/27 01:16:19 UTC
Tomcat on Ubuntu 8.04 VPS and presumably multiple socket problems
Hi,
I switched from a Windows XP based VPS to a Ubuntu 8.04 linux machine. Both
run Tomcat 6.0.18 and 2.2.8 on tcp4. I now face several problems that might
be related to some low level socket issue but do not necessarily need to. I
am already glad to receive some hints to further boil down the issues.
1st issue: I cannot connect to a socket server embedded in a webapp and
listening on port 10000 any more in all cases. If I do it from a mobile
device, it works, if i do it from my laptop over a dsl connection (router in
between), a channel is opened and instantly closed.
2nd issue: mod_jk does not work. I think I replayed multiple instructions to
set it up multiple times but in all cases it finally says "Could not find a
worker for worker name=myWorker"
3rd issue: GWT-RPC calls do not get delivered any more to the browser on my
laptop.
IPtables is turned off.
netstat -npl
gives
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN
17648/sw-cp-serverd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
17447/apache2
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
13847/couriertcpd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
13882/couriertcpd
tcp 0 0 127.0.0.1:8009 0.0.0.0:* LISTEN
29931/jsvc
tcp 0 0 0.0.0.0:106 0.0.0.0:* LISTEN
14178/xinetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
13704/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
14178/xinetd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
13868/couriertcpd
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
13816/couriertcpd
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
29931/jsvc
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
29931/jsvc
tcp 0 0 0.0.0.0:8880 0.0.0.0:* LISTEN
17648/sw-cp-serverd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
17447/apache2
tcp 0 0 127.0.0.1:10001 0.0.0.0:* LISTEN
17648/sw-cp-serverd
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
14178/xinetd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
14178/xinetd
tcp 0 0 83.169.23.236:53 0.0.0.0:* LISTEN
12281/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
12281/named
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
13913/cupsd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
14178/xinetd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
12281/named
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
20331/sshd: nx@nott
tcp6 0 0 :::22 :::* LISTEN
13464/sshd
tcp6 0 0 ::1:6010 :::* LISTEN
20331/sshd: nx@nott
udp 0 0 0.0.0.0:5353 0.0.0.0:*
13545/avahi-daemon:
udp 0 0 0.0.0.0:47737 0.0.0.0:*
13545/avahi-daemon:
udp 0 0 83.169.23.236:53 0.0.0.0:*
12281/named
udp 0 0 127.0.0.1:53 0.0.0.0:*
12281/named
udp 0 0 0.0.0.0:43854 0.0.0.0:*
32643/adept_manager
udp 0 0 0.0.0.0:37455 0.0.0.0:*
12281/named
udp6 0 0 :::37787 :::*
12281/named
Any thoughts on this? Your help is really appreciated.
Thanks
fatzopilot
--
View this message in context: http://old.nabble.com/Tomcat-on-Ubuntu-8.04-VPS-and-presumably-multiple-socket-problems-tp27332135p27332135.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat on Ubuntu 8.04 VPS and presumably multiple socket
problems
Posted by fatzopilot <fa...@gmx.net>.
Rainer,
Thanks for clarification. There are a lot of misleading configuration
'tweaks' roaming around which do not seem to have any effect (or at least
not in recent versions). The minimal config now works well for me.
Cheers
fatzopilot
Rainer Jung-3 wrote:
>
> On 30.01.2010 17:41, fatzopilot wrote:
>>> 2nd issue: mod_jk does not work. I think I replayed multiple
>>> instructions
>>> to
>>> set it up multiple times but in all cases it finally says "Could not
>>> find
>>> a
>>> worker for worker name=myWorker"
>>
>> Solved by using the procedure described here (till item 11):
>> http://ubuntuforums.org/showthread.php?t=971517
>>
>> I now use (for worker.properties):
>> workers.tomcat_home=/usr/share/tomcat5.5
>
> This attribute doesn't do anything, the line can be deleted.
>
>> workers.java_home=/usr/lib/jvm/java-1.5.0-sun
>
> This attribute doesn't do anything, the line can be deleted.
>
>> ps=/
>
> This attribute doesn't do anything, the line can be deleted.
>
>> worker.list=myWorker
>> worker.myWorker.port=8009
>> worker.myWorker.host=localhost
>> worker.myWorker.type=ajp13
>> worker.myWorker.lbfactor=1
>
> OK, ver ybasic but should work.
>
>> which before was
>> workers.list=myWorker,ajp13
>> workers.myWorker.type=ajp13
>> workers.myWorker.host=localhost
>> workers.myWorker.port=8009
>
> The problem was the plural "workers", which was wrong. After fixing this
> your original configuration should have worked, at least after dropping
> the non-defined worker "ajp13" from worker.list.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Tomcat-on-Ubuntu-8.04-VPS-and-presumably-multiple-socket-problems-tp27332135p27386170.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat on Ubuntu 8.04 VPS and presumably multiple socket problems
Posted by Rainer Jung <ra...@kippdata.de>.
On 30.01.2010 17:41, fatzopilot wrote:
>> 2nd issue: mod_jk does not work. I think I replayed multiple instructions
>> to
>> set it up multiple times but in all cases it finally says "Could not find
>> a
>> worker for worker name=myWorker"
>
> Solved by using the procedure described here (till item 11):
> http://ubuntuforums.org/showthread.php?t=971517
>
> I now use (for worker.properties):
> workers.tomcat_home=/usr/share/tomcat5.5
This attribute doesn't do anything, the line can be deleted.
> workers.java_home=/usr/lib/jvm/java-1.5.0-sun
This attribute doesn't do anything, the line can be deleted.
> ps=/
This attribute doesn't do anything, the line can be deleted.
> worker.list=myWorker
> worker.myWorker.port=8009
> worker.myWorker.host=localhost
> worker.myWorker.type=ajp13
> worker.myWorker.lbfactor=1
OK, ver ybasic but should work.
> which before was
> workers.list=myWorker,ajp13
> workers.myWorker.type=ajp13
> workers.myWorker.host=localhost
> workers.myWorker.port=8009
The problem was the plural "workers", which was wrong. After fixing this
your original configuration should have worked, at least after dropping
the non-defined worker "ajp13" from worker.list.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat on Ubuntu 8.04 VPS and presumably multiple socket
problems
Posted by fatzopilot <fa...@gmx.net>.
Hi Chris,
Thank you for your response and time.
> Okay. Generally, it's considered polite to ask a single question in a
> single thread. Next time, just post them separately.
You are right and I would have done that but thought the issues might be
connected and caused by some low level system problem (firewall etc.) thence
I bundled them.
Luckily, meanwhile all issues are gone. Not sure what actually caused them
but I will post my assumptions.
> 1st issue: I cannot connect to a socket server embedded in a webapp and
> listening on port 10000 any more in all cases. If I do it from a mobile
> device, it works, if i do it from my laptop over a dsl connection (router
> in
> between), a channel is opened and instantly closed.
This seemed to be caused by connecting too fast to the socket server.
Lowering the sending frequency solved the issue.
> 2nd issue: mod_jk does not work. I think I replayed multiple instructions
> to
> set it up multiple times but in all cases it finally says "Could not find
> a
> worker for worker name=myWorker"
Solved by using the procedure described here (till item 11):
http://ubuntuforums.org/showthread.php?t=971517
I now use (for worker.properties):
workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/lib/jvm/java-1.5.0-sun
ps=/
worker.list=myWorker
worker.myWorker.port=8009
worker.myWorker.host=localhost
worker.myWorker.type=ajp13
worker.myWorker.lbfactor=1
which before was
workers.list=myWorker,ajp13
workers.myWorker.type=ajp13
workers.myWorker.host=localhost
workers.myWorker.port=8009
> 3rd issue: GWT-RPC calls do not get delivered any more to the browser on
> my
> laptop.
After having solved 1) I switched back to IPV6. Not sure if exactly this
caused the calls to work again but now they work :)
Cheers and sorry for bugging
fatzopilot
--
View this message in context: http://old.nabble.com/Tomcat-on-Ubuntu-8.04-VPS-and-presumably-multiple-socket-problems-tp27332135p27385269.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat on Ubuntu 8.04 VPS and presumably multiple socket problems
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Fatzopilot,
On 1/26/2010 7:16 PM, fatzopilot wrote:
> I switched from a Windows XP based VPS to a Ubuntu 8.04 linux machine.
Good choice! Are you still on a virtualized platform?
> Both run Tomcat 6.0.18 and 2.2.8 on tcp4.
Could that mean Apache httpd 2.2.8 on IPv4?
> I now face several problems that might
> be related to some low level socket issue but do not necessarily need to. I
> am already glad to receive some hints to further boil down the issues.
Okay. Generally, it's considered polite to ask a single question in a
single thread. Next time, just post them separately.
> 1st issue: I cannot connect to a socket server embedded in a webapp and
> listening on port 10000 any more in all cases. If I do it from a mobile
> device, it works, if i do it from my laptop over a dsl connection (router in
> between), a channel is opened and instantly closed.
Hmm... so, on the Linux install, mobile devices (presumably through the
wireless provider's network) connect correctly, but non-mobile devices fail?
This sounds like it might be a firewall issue. Does your laptop allow
outgoing connections to port 10000? How about your router? Are you on a
corporate network with IT Nazis preventing you from doing anything but
using ports 80 and 443? You can use traceroute or other tools to confirm
connectivity independently of the server software. Telnet also helps,
sometimes, too.
> 2nd issue: mod_jk does not work. I think I replayed multiple instructions to
> set it up multiple times but in all cases it finally says "Could not find a
> worker for worker name=myWorker"
Please post the relevant parts of your httpd.conf and
jk_workers.properties. Most often, I've seen configurations where the
JkWorkersFile directive is in the wrong place. Also, please post as much
error information as mod_jk provides in your mod_jk.log file.
> 3rd issue: GWT-RPC calls do not get delivered any more to the browser on my
> laptop.
This is probably due to issue #1 above, no?
> IPtables is turned off.
On your laptop, on the server, or both?
> tcp 0 0 127.0.0.1:8009 0.0.0.0:* LISTEN
> 29931/jsvc
So, Tomcat is listening on port 8009, which is the default AJP port in
server.xml. Tomcat looks like it's expecting to receive requests from
httpd via AJP (provided by mod_jk).
> tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
> 29931/jsvc
Also good: Tomcat is listening to port 10000. This means that your
Tomcat configuration appears to be correct in terms of SecurityManager
(if present), socket binding rights, etc.
> tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
> 29931/jsvc
Note that Tomcat is also listening to port 8080, which is the default
HTTP port in server.xml. If you don't want connections to circumvent
httpd, you might want to disable this connector.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktgjyEACgkQ9CaO5/Lv0PCO3ACfU1bRXkSPB6Ra3WiepoMMmdUN
V1wAoJuA6cOFHCG1EQnBxH9Ex30ADjMM
=XGBZ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org