Which CR2 package did you download? jboss-5.0.0.CR2.zip or jboss-5.0.0.CR2-jdk6.zip? Since you are using jdk 1.6 you need to download jboss-5.0.0.CR2-jdk6.zip.
If that does not resolve the issue, what are the contents of your /etc/hosts file?
Have you deployed any apps? Are you starting the 'all' or 'default' configuration? Are you running as root or as a user?
The "Socket bind failed" error usually indicated a port conflict. But this is the first time I can recall seeing the "Invalid argument" detail message (it is usually reads "Address already in use"). In those cases this might help: http://wiki.jboss.org/wiki/DebugBindException
Or see http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121889
I did some search on google and probably the reason for this "invalid argument" error was the ipv6 service is enabled on fedora9. But after disabling ipv6, I'm stuck with a different error "Address family not supported". I'm using jboss-5.0.0.CR2-jdk6.zip so thats probably not the issue.
Here is the log:
22:51:47,548 ERROR [Http11AprProtocol] Error starting endpoint
org.apache.tomcat.jni.Error: Address family not supported by protocol
at org.apache.tomcat.jni.Socket.create(Native Method)
at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
You should double-check that your /etc/hosts file does not have any IPv6 addresses.
I just now checked my 32-bit Kubuntu 8.04 system - it has IPv6 installed and IPv6 addresses have been assigned. I can run CR2 with JDK 6 just fine. I haven't checked my 64-bit Kubuntu system as regards to IPv6, but I know I have run CR2 with JDK 6 successfully there also. Ditto for my Fedora 8 system at work.
By the way, there is a JVM command line option to prefer the use of IPv4, and it is already set in conf.sh.
I get the same problem with Jboss 5.0.0.GA/debian/sun-java-jdk-1.6.0_10
20:34:04,497 ERROR [Http11AprProtocol] Error initializing endpoint org.apache.tomcat.jni.Error: Address family not supported by protocol at org.apache.tomcat.jni.Socket.create(Native Method) at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:600)
I already removed all IPv6 adresses vom /etc/hosts and disabled IPv6 in the kernel. The Jboss run.sh script already adds the "-Djava.net.preferIPv4Stack=true".
What else can I try to get rid of this startup error? Anybody out there already solved this problem?
I got the solution...
I had to remove the libtcnative-1 package from my linux installation - used by previous Jboss versions.