documented here http://tomcat.apache.org/tomcat-6.0-doc/config/http.html -Djava.net.preferIPv4Stack=true
Filip Peter wrote:
Hi I'm trying to use the Nio connector with Tomcat 6.0.13 running with Java 1.5.0_07 on OSX 10.4.9. When trying to access port 8080 which was declared with the Nio connector I just get a blank response and see the following in catalina.out: Jun 13, 2007 10:47:02 AM org.apache.tomcat.util.net.NioEndpoint setSocketOptions SEVERE: java.net.SocketException: Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at sun.nio.ch.Net.setIntOption(Net.java:152) at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372) at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46) at sun.nio.ch.SocketOptsImpl$IP.typeOfService(SocketOptsImpl.java:249) at sun.nio.ch.OptionAdaptor.setTrafficClass(OptionAdaptor.java:158) at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:330) at org.apache.tomcat.util.net.SocketProperties.setProperties(SocketProperties.java:171) at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:967) at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:1183) at java.lang.Thread.run(Thread.java:613) I also use the native library: Jun 13, 2007 10:46:30 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [false], accept filters [false], random [true].Incidentally, does APR not support sendfile on OSX?Here are my connector definitions: <Connector port="8080" connectionTimeout="20000" redirectPort="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"/> <Connector port="8443" maxHttpHeaderSize="8192" maxThreads="300" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" SSLEngine="on" SSLCertificateFile="${catalina.base}/conf/x.crt" SSLCertificateKeyFile="${catalina.base}/conf/x.key" SSLPassword="x" /> Any ideas? Thanks Peter --------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
