Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat 4 Clustering

Tomcat 4 Clustering

2004-05-06       - By Filip Hanik - Dev

 Back
Reply:     1     2     3     4  

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 Source code of 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: <Jens.Mueller@(protected)>
To: <tomcat-user@(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 Source code of 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 Source code of java.nio.channels.Selector(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 Source code of 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 Source code of java.nio.channels.Selector(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 Source code of java.net.ConnectException: Connection refused
       at java.net.PlainSocketImpl Source code of java.net.PlainSocketImpl(Native Method)
       at java.net.PlainSocketImpl Source code of java.net.PlainSocketImpl(PlainSocketImpl.java:305)
       at
java.net.PlainSocketImpl Source code of java.net.PlainSocketImpl(PlainSocketImpl.java:171)
       at java.net.PlainSocketImpl Source code of java.net.PlainSocketImpl(PlainSocketImpl.java:158)>
       at java.net.Socket Source code of java.net.Socket(Socket.java:452)
       at java.net.Socket Source code of java.net.Socket(Socket.java:402)
       at java.net.Socket Source code of java.net.Socket<init>(Socket.java:309)
       at java.net.Socket Source code of 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 Source code of org.apache.catalina.core.StandardContext(StandardContext.java:3590)
       at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:1188)
       at
org.apache.catalina.core.StandardHost Source code of org.apache.catalina.core.StandardHost(StandardHost.java:754)
       at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:1188)
       at
org.apache.catalina.core.StandardEngine Source code of org.apache.catalina.core.StandardEngine(StandardEngine.java:363)
       at
org.apache.catalina.core.StandardService Source code of org.apache.catalina.core.StandardService(StandardService.java:497)
       at
org.apache.catalina.core.StandardServer Source code of org.apache.catalina.core.StandardServer(StandardServer.java:2190)
       at org.apache.catalina.startup.Catalina Source code of org.apache.catalina.startup.Catalina(Catalina.java:512)
       at org.apache.catalina.startup.Catalina Source code of org.apache.catalina.startup.Catalina(Catalina.java:400)
       at org.apache.catalina.startup.Catalina Source code of org.apache.catalina.startup.Catalina(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 Source code of java.lang.reflect.Method(Method.java:324)
       at org.apache.catalina.startup.Bootstrap Source code of org.apache.catalina.startup.Bootstrap(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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.