Hi,

I'm trying to set the ServerSocketFactory in Tomcat 4.1.24.  My factory
is getting created (by the catalina digester), but it never actually
gets used by the PoolTcpEndpoint. I can see this from debugging I am
using.  Its using the DefaultServerSocketFactory instead of mine.

0 [main] INFO net.BlahServerSocketFactory  - new
BlahServerSocketFactory()
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
        at java.net.ServerSocket.bind(ServerSocket.java:318)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at ....net.DefaultServerSocketFactory.createSocket(:102)
        at ....PoolTcpEndpoint.initEndpoint(:277)
        at ....http11.Http11Protocol.init(:150)
        at ....CoyoteConnector.initialize(:1117)


My class is like (I also tried extending
tomcat.util.ServerSocketFactory)

public final class BlahServerSocketFactory 
implements org.apache.catalina.net.ServerSocketFactory {
    ....
}

My config is 

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               address="localhost" port="80"
               minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="60000"
               useURIValidationHack="false" disableUploadTimeout="true">
      <Factory className="com.zed.tomcat.net.BlahServerSocketFactory" />
    </Connector>

  
I searched for anywhere PoolTcpEndpoint.setServerSocketFactory() gets
called, but I don't think it ever is.

Could someone let me know how I am meant to achieve this?

Thanks.

--
Yuri Schimke
Aqris Software
+372 53 415 579

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

Reply via email to