From owner-freebsd-questions@FreeBSD.ORG Mon Nov 6 10:49:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33A7816A416 for ; Mon, 6 Nov 2006 10:49:52 +0000 (UTC) (envelope-from rberens@osirion.nl) Received: from server1.nedstars.nl (adam80.dsdeurne.nl [82.150.128.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B43843D53 for ; Mon, 6 Nov 2006 10:49:49 +0000 (GMT) (envelope-from rberens@osirion.nl) Received: (qmail 9254 invoked from network); 6 Nov 2006 11:49:49 +0100 Received: from n010019.nbs.netland.nl (HELO RBE4) (217.170.45.50) by adam80.dsdeurne.nl with SMTP; 6 Nov 2006 11:49:49 +0100 Message-ID: <002401c70191$447e6bd0$6400a8c0@RBE4> From: "Rob Berens" To: Date: Mon, 6 Nov 2006 11:49:29 +0100 Organization: Osirion B.V. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Subject: IPv6/IPv4 problems? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 10:49:52 -0000 I have some problems that seem to be related to the interoperation of ipv4 client programs and ipv6 servers or the other way round. I'm running FreeBSD 6.1 RELEASE. I have the following problems: MySQL and JDBC client -------------------------- I run MySQL 5.1 server at the FreeBSD machine. The msyql jconnecter version is 5.0.4. Via netstat I can see MySQL run as a tcp4 server only. When connecting to mysql from the server running mysql via the mysql client program everything works as expected. When connecting from a remote machine running ipv4 via both the mysql clent program and via JDBC again everything works as expected. When connecting from the server running mysql via JDBC I get the exception: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: java.net.SocketException: java.netConnectionException: Connection refused Jetty (org.mortbay.org) ----------------------- When running jetty as a servelet engine/web server at the FreeBSD machine. I cannot connect to the server from a remote machine running IPv4. Via netstat I can see that jetty runs as a tcp6 server only. SVN (subversion.tigirs.org) --------------------------- Originally I had a simular problem connecting to svn from a ipv4 machine, when svn was running as a tcp6 server. Via a strange startup option (--listen-host=0.0.0.0) I could force svn to run as tcp4. And connection from the remote host worked fine. Tomcat -------- I installed tomcat 5.5.20 from the BSD port. Tomcat does not start. The log files shows the following: Nov 6, 2006 8:22:39 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5.0/jre/lib/i386:/usr/local/jdk1.5.0/jre/../lib/i386:/usr/lib:/usr/local/lib Nov 6, 2006 8:22:40 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Nov 6, 2006 8:22:40 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1303 ms Nov 6, 2006 8:22:40 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Nov 6, 2006 8:22:40 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 Nov 6, 2006 8:22:40 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Nov 6, 2006 8:22:41 AM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Nov 6, 2006 8:22:41 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Nov 6, 2006 8:22:41 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Nov 6, 2006 8:22:41 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Nov 6, 2006 8:22:41 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Nov 6, 2006 8:22:42 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Nov 6, 2006 8:22:42 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Nov 6, 2006 8:22:42 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/33 config=null Nov 6, 2006 8:22:42 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Nov 6, 2006 8:22:42 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 2196 ms Nov 6, 2006 8:22:42 AM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Can't assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:372) at org.apache.catalina.startup.Catalina.await(Catalina.java:615) at org.apache.catalina.startup.Catalina.start(Catalina.java:575) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Has anyone got any ideas what is wrong and how to solve these problems? Is there a way to force the server to only run ipv4 or to force some programs to run ipv4? Please help! Rob Berens