You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephanos Piperoglou <s...@piperoglou.com> on 2002/06/19 16:37:44 UTC

Can't start Tomcat (java.net.SocketException: Illegal Argument)

Running FreeBSD 4.3, JDK 1.2.2 (also tried with 1.3.1 with identical
results), Tomcat 4.0.3

When trying to start up the server, I get an error (see below for full
output & stacktrace). The [8005] bit is the value of the port attribute
of the Server element in the conf/server.xml file; I tried changing it
around but still got the same problem (with a different port between the
square brackets, of course). I have no clue what this might be. Please
help, I'm completely stuck!

root@stephanos /usr/local/jakarta-tomcat4.0.3# bin/catalina.sh run
Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.0.3
Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.0.3
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.0.3/temp
Using JAVA_HOME:       /usr/local/linux-jdk1.2.2
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
StandardServer.await: create[8005]: java.net.SocketException: Invalid
argument
java.net.SocketException: Invalid argument
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java, Compiled
Code)
        at java.net.ServerSocket.<init>(ServerSocket.java, Compiled
Code)
        at
org.apache.catalina.core.StandardServer.await(StandardServer.java,
Compiled Code)
        at org.apache.catalina.startup.Catalina.start(Catalina.java,
Compiled Code)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java,
Compiled Code)
        at org.apache.catalina.startup.Catalina.process(Catalina.java,
Compiled Code)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java,
Compiled Code)
root@stephanos /usr/local/jakarta-tomcat4.0.3#


-S.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can't start Tomcat (java.net.SocketException: Illegal Argument)

Posted by Markus Colombo <me...@netstore.ch>.
Hi,

Do you have the port number in square brackets in server.xml?
It should be like:
<Server port="8005" shutdown="SHUTDOWN" debug="0">

Markus

-----Original Message-----
From: "Stephanos Piperoglou" <s...@piperoglou.com>
To: <to...@jakarta.apache.org>
Date: Wed, 19 Jun 2002 17:37:44 +0300
Subject: Can't start Tomcat (java.net.SocketException: Illegal Argument)

> Running FreeBSD 4.3, JDK 1.2.2 (also tried with 1.3.1 with identical
> results), Tomcat 4.0.3
> 
> When trying to start up the server, I get an error (see below for
> full
> output & stacktrace). The [8005] bit is the value of the port
> attribute
> of the Server element in the conf/server.xml file; I tried changing
> it
> around but still got the same problem (with a different port between
> the
> square brackets, of course). I have no clue what this might be.
> Please
> help, I'm completely stuck!
> 
> root@stephanos /usr/local/jakarta-tomcat4.0.3# bin/catalina.sh run
> Using CATALINA_BASE:   /usr/local/jakarta-tomcat4.0.3
> Using CATALINA_HOME:   /usr/local/jakarta-tomcat4.0.3
> Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.0.3/temp
> Using JAVA_HOME:       /usr/local/linux-jdk1.2.2
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.3
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> StandardServer.await: create[8005]: java.net.SocketException: Invalid
> argument
> java.net.SocketException: Invalid argument
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java,
> Compiled
> Code)
>         at java.net.ServerSocket.<init>(ServerSocket.java, Compiled
> Code)
>         at
> org.apache.catalina.core.StandardServer.await(StandardServer.java,
> Compiled Code)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java,
> Compiled Code)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java,
> Compiled Code)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java,
> Compiled Code)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java,
> Compiled Code)
> root@stephanos /usr/local/jakarta-tomcat4.0.3#
> 
> 
> -S.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>