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.<init>(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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to