Seems to be a problem with Java 6 in combinaison with GRSecutity.

Use the - Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider flag. I don't see any other solution...

Fu-Tung Cheng wrote:
Hi Emmanuel, Good suggestion. Unfortunately I get the same error - the stack trace line number did change though so it would seem that I am using the new java version - that's what the ps -ef and the which java are supposed to show below..
Any other ideas?

Oh I am using tomcat 6.0.16 if that matters.

Fu-Tung

$ java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

$ which java
/usr/local/jdk1.6/bin/java

$ ps -ef
1011     29014     1  0 13:44 pts/1    00:00:00 /usr/local/jdk1.6/bin/java ...

May 29, 2008 1:44:30 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of 
class org.apache.directory.samples.embed.webapp.StartStopListener
java.lang.InternalError: unable to get address of epoll functions, pre-2.6 
kernel?
        at sun.nio.ch.EPollArrayWrapper.init(Native Method)
        at un.nio.ch.EPollArrayWrapper.<clinit>(EPollArrayWrapper.java:258)
        at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
        at 
sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
        at java.nio.channels.Selector.open(Selector.java:209)
        at 
org.apache.mina.transport.socket.nio.SocketAcceptor.startupWorker(SocketAcceptor.java:172)
        at 
org.apache.mina.transport.socket.nio.SocketAcceptor.bind(SocketAcceptor.java:140)
        at 
org.apache.directory.server.jndi.ServerContextFactory.startLDAP0(ServerContextFactory.java:488)
        at 
org.apache.directory.server.jndi.ServerContextFactory.startLDAP(ServerContextFactory.java:413)
        at 
org.apache.directory.server.jndi.ServerContextFactory.afterStartup(ServerContextFactory.java:212)
        at org.apache.directory.server.core.DefaultDirectoryService.startup(Defa


--- On Wed, 5/28/08, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:

From: Emmanuel Lecharny <[EMAIL PROTECTED]>
Subject: Re: unable to get address of epoll functions, pre-2.6 kernel
To: [email protected]
Date: Wednesday, May 28, 2008, 9:12 PM
Hi,

seems to be a pretty common error on Lunux with Java 6...

Have you tried with an more recent version of JDK? Sun
JDK's current version is 1.6.0_06-b02, when JDK 1.6.0-b105 was the very first version of Java 6.

Fu-Tung Cheng wrote:
Anyone get this error before?  It prevents apache-ds
from loading as the web application.
I see this in:

# uname -r
2.6.23.14-grsec

I have found that to fix it I can append:


-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
but I'd prefer not to have to do this.
This is on java:

$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed
mode, sharing)
Error stack trace

SEVERE: Exception sending context initialized event to
listener instance of class
org.apache.directory.samples.embed.webapp.StartStopListener
java.lang.InternalError: unable to get address of
epoll functions, pre-2.6 kernel?
        at sun.nio.ch.EPollArrayWrapper.init(Native
Method)
        at
sun.nio.ch.EPollArrayWrapper.<clinit>(EPollArrayWrapper.java:227)
        at
sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
        at
sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
        at
java.nio.channels.Selector.open(Selector.java:209)
        at
org.apache.mina.transport.socket.nio.SocketAcceptor.startupWorker(SocketAcceptor.java:172)
        at
org.apache.mina.transport.socket.nio.SocketAcceptor.bind(SocketAcceptor.java:140)
        at
org.apache.directory.server.jndi.ServerContextFactory.startLDAP0(ServerContextFactory.java:488)
        at
org.apache.directory.server.jndi.ServerContextFactory.startLDAP(ServerContextFactory.java:413)
        at
org.apache.directory.server.jndi.ServerContextFactory.afterStartup(ServerContextFactory.java:212)
        at
org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:239)
        at
org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:118)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at
javax.naming.InitialContext.init(InitialContext.java:223)
        at
javax.naming.InitialContext.<init>(InitialContext.java:197)
        at
javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)


--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org





--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to