----- "Mark Eggers" <its_toas...@yahoo.com> wrote:

> A couple of things come to mind:
> 
> Could this be a remote firewall issue? If you have an LDAP client that
> can go
> against your server, that would answer that question.
> 
> I did a quick search, and there are a lot of messages concerning
> Debian and
> java.net.SocketException: Network is unreachable messages.
> 
> The underlying theme seems to be IPv6. Although I didn't see any IPv6
> listings
> in your netstat command, you might try adding
> -Djava.net.preferIPv4Stack=true to
> JAVA_OPTS (make a file called setenv.sh in $CATALINA_HOME/bin and set
> it).

Thanks, that fixes the Sun SDK issue.

> Other than that, I'm just guessing at this point.
> 
> . . . . just my two cents.
> 
> /mde/
> 
> 
> ----- Original Message ----
> From: Igor Galić <i.ga...@brainsware.org>
> To: Tomcat Users List <users@tomcat.apache.org>
> Sent: Sun, August 15, 2010 9:28:31 AM
> Subject: Re: JNDI: LDAPv3 with StartTLS
> 
> 
> This is getting out of hand...
> 
> 
> i.ga...@pheme /opt/tomcat6 % sudo netstat -nalpt | grep -w LISTEN|grep
> 80
> tcp        0      0 0.0.0.0:8088            0.0.0.0:*              
> LISTEN
> 30503/traffic_manag
> tcp        0      0 0.0.0.0:8091            0.0.0.0:*              
> LISTEN
> 30513/traffic_serve
> tcp        0      0 127.0.0.1:8000          0.0.0.0:*              
> LISTEN
> 17112/httpd-prefork
> tcp        0      0 127.0.0.1:8001          0.0.0.0:*              
> LISTEN
> 16454/httpd-worker
> tcp        0      0 0.0.0.0:80              0.0.0.0:*              
> LISTEN
> 30503/traffic_manag
> tcp        0      0 0.0.0.0:8081            0.0.0.0:*              
> LISTEN
> 30503/traffic_manag
> tcp        0      0 0.0.0.0:8083            0.0.0.0:*              
> LISTEN
> 30503/traffic_manag
> tcp        0      0 0.0.0.0:8084            0.0.0.0:*              
> LISTEN
> 30513/traffic_serve
> i.ga...@pheme /opt/tomcat6 % java -version
> java version "1.6.0_21"
> Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
> i.ga...@pheme /opt/tomcat6 % sudo rm -rf logs/*
> i.ga...@pheme /opt/tomcat6 % sudo /etc/init.d/tomcat6 start
> Starting Tomcat6 Container: :Using CATALINA_BASE:   /opt/tomcat6
> Using CATALINA_HOME:   /opt/tomcat6
> Using CATALINA_TMPDIR: /opt/tomcat6/temp
> Using JRE_HOME:        /usr/lib/jvm/java-6-sun/jre
> Using CLASSPATH:       /opt/tomcat6/bin/bootstrap.jar
> i.ga...@pheme /opt/tomcat6 % less logs/catalina.out
> 
> Aug 15, 2010 4:25:30 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.net.SocketException: Invalid argument
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
>         at java.net.ServerSocket.bind(ServerSocket.java:319)
>         at java.net.ServerSocket.<init>(ServerSocket.java:185)
>         at
> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:56)
> 
>         at
> org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:540)
>         at
> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
>         at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>         at
> org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>         at
> org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>         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:597)
>         at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Aug 15, 2010 4:25:30 PM org.apache.catalina.startup.Catalina load
> SEVERE: Catalina.start
> LifecycleException:  Protocol handler initialization failed:
> java.net.SocketException: Invalid argument
>         at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>         at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>         at
> org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>         at
> org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>         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:597)
>         at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Aug 15, 2010 4:25:30 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 355 ms
> Aug 15, 2010 4:25:30 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Aug 15, 2010 4:25:30 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> Aug 15, 2010 4:25:35 PM org.apache.catalina.realm.JNDIRealm open
> WARNING: Exception performing authentication
> javax.naming.CommunicationException: mail.brainsware.org:389 [Root
> exception is
> java.net.ConnectException: Network is unreachable]
>         at com.sun.jndi.ldap.Connection.<init>(Connection.java:200)
>         at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
>         at
> com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
>         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2652)
>         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:293)
> 
> 
> etc...
> I'll try to figure out WTF that is, while wondering if this is
> Debian's work or
> Sun/Oracle's..
> 
> So long,
> 
> --
> Igor Galić
> 
> Tel: +43 (0) 664 886 22 883
> Mail: i.ga...@brainsware.org
> URL: http://brainsware.org/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to