It is running as root with j2se 1.4.2, so I think it must be an other
problem.
Could it be, that java miss some nativ libraries? The tomcat's are running
in a chroot-environment.

Jens

-----Ursprüngliche Nachricht-----
Von: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 6. Mai 2004 18:18
An: Tomcat Users List
Betreff: Re: Tomcat 4 Clustering


this code uses Java.nio packages.
if you are running this as a non privileged user, there is a chance that it
fails to open the socket.

as you can see, the problem is in native code, 
java.io.IOException: No such file or directory
        at sun.nio.ch.DevPollArrayWrapper.init(Native Method)

try to run it as root and see if that solves it, if it does, you have to
figure out what permissions to add to your user

Filip

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 06, 2004 10:59 AM
Subject: WG: Tomcat 4 Clustering


Hi all,

I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules
with 2 tomcat instances).
The only usefull solution I found, is your replicator
(tomcat-replication.jar).
But there are some problems and I hope that you can help me. :)

When I start tomcat 1, I'll see the following message/exception:

----------------------------------------------------------------------------
-------------------
[FH] Starting member listener local:tcp://eules:4001
port =45566
Replication multicast service started...
Replication Worker Thread:Tcp Replication Thread[2] is ready to handle
requests.
Replication Worker Thread:Tcp Replication Thread[1] is ready to handle
requests.
Replication listener listening on address eules/169.46.84.13 and port 4001
java.io.IOException: No such file or directory
        at sun.nio.ch.DevPollArrayWrapper.init(Native Method)
        at
sun.nio.ch.DevPollArrayWrapper.<init>(DevPollArrayWrapper.java:59)
        at
sun.nio.ch.DevPollSelectorImpl.<init>(DevPollSelectorImpl.java:54)
        at
sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java
:18)
        at java.nio.channels.Selector.open(Selector.java:209)
        at
org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j
ava:65)
        at
org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java
:46)
[InMemoryReplicationManager] No other members, skipping session state
transfer
----------------------------------------------------------------------------
-------------------

I don't know, if this is really a problem, but when I start tomcat 2, I'll
see the following message/exception:

tomcat 1:
----------------------------------------------------------------------------
-------------------
[InMemoryReplicationManager] Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46.
84.13,4002]
Member added:tcp://eules:4002
----------------------------------------------------------------------------
-------------------

tomcat 2:
----------------------------------------------------------------------------
-------------------
[FH] Starting member listener local:tcp://eules:4002
port =45566
Replication Worker Thread:Tcp Replication Thread[1] is ready to handle
requests.
Replication multicast service started...
Replication Worker Thread:Tcp Replication Thread[2] is ready to handle
requests.
Replication listener listening on address eules/169.46.84.13 and port 4002
[InMemoryReplicationManager] Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.
84.13,4001]
Member added:tcp://eules:4001
java.io.IOException: No such file or directory
        at sun.nio.ch.DevPollArrayWrapper.init(Native Method)
        at
sun.nio.ch.DevPollArrayWrapper.<init>(DevPollArrayWrapper.java:59)
        at
sun.nio.ch.DevPollSelectorImpl.<init>(DevPollSelectorImpl.java:54)
        at
sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java
:18)
        at java.nio.channels.Selector.open(Selector.java:209)
        at
org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j
ava:65)
        at
org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java
:46)
[InMemoryReplicationManager] Retrieving session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.13,
4001], will timeout after 2 minutes.
[InMemoryReplicationManager] Unable to send message through TCP channel
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)> 
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at java.net.Socket.<init>(Socket.java:309)
        at java.net.Socket.<init>(Socket.java:153)
        at
org.apache.catalina.cluster.SocketSender.connect(SocketSender.java:50)
        at
org.apache.catalina.cluster.SocketSender.sendMessage(SocketSender.java:107)
        at
org.apache.catalina.cluster.ReplicationTransmitter.sendMessage(ReplicationTr
ansmitter.java:78)
        at
org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe
moryReplicationManager.java:753)
        at
org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe
moryReplicationManager.java:721)
        at
org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe
moryReplicationManager.java:721)
        at
org.apache.catalina.session.InMemoryReplicationManager.start(InMemoryReplica
tionManager.java:618)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3590)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[InMemoryReplicationManager] Session state NOT received after 120061 ms.
TIMING OUT
----------------------------------------------------------------------------
-------------------

This happens directly after starting the instances without browsing the
content of the containers.
Do you have an idea, what the reasion is?

Thanx a lot
Greets Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to