tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11632] - java.net.BindException: The socket name is already in use.
Date Tue, 13 Aug 2002 19:11:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11632>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11632

java.net.BindException: The socket name is already in use.





------- Additional Comments From simon_lessard@canammanac.com  2002-08-13 19:11 -------
Hi again,

I keep tring to startup Tomcat 4.0.4. This is waht I did lately. Hope this will 
help.

- After tring many time, I decided to use the older version. So I downloaded 
version 4.0.1, 4.0.2

- Version 4.0.1 starup fine. I was able to acces the default Home page of Tomcat

- Version 4.0.2 startup also but gave me the error in the summary and I was 
able to access the default Home page

- Seeing that I tried to start Version 4.0.3. For unknow reason, it acted up 
exactly as Version 4.0.2 did. I was able to access the default Home page of 
version 4.0.3.

- I did modified the "tomcat-users.xml" file and added the "manager" user.

- From there, I was able to send the command:

      http://ibm44p:8080/manager/list

- It did asked for the user / password and it work fine.

- Confident, I tried to start the Version 4.0.4.

- I had the same result as before.

- So, what follow is my complete session for Version 4.0.3

I am lost in the process. Is my environment wrong? Is it the JDK? IS there 
anyting missng?

Hope to find out,

Simon Lessard

=========================================================================

root@ibm44p(/root)# su - wbmaster
TERM = (vt420)
Terminal type is vt420
setting JAVA environment (default is last)...
Enter 1 = Ver base
      2 = Ver 130
      3 = Ver 131
      Choice: 3
Setting to JAVA 131...
setting TOMCAT environment (default is last)...
Enter 1 = Ver 324
      2 = Ver 401
      3 = Ver 402
      4 = Ver 403
      5 = Ver 404
      6 = Ver 415
      7 = Ver 416
      8 = Ver 417 Beta
      9 = Ver 418 Beta
      Choice: 4
Setting to Tomcat Ver 403...
wbmaster@ibm44p(/home/wbmaster)# ls -l
total 239
-rw-r--r--   1 wbmaster wbmaster     104 Nov 15 2001  @LongLink
-rw-r--r--   1 wbmaster wbmaster     590 May 09 10:16 HelloClientServlet.java
-rwxr-xr-x   1 wbmaster wbmaster  113135 Jun 28 10:07 allelements.xml
-rw-r--r--   1 wbmaster wbmaster     374 Aug 08 14:36 setenv_java_130
-rw-r--r--   1 wbmaster wbmaster     213 Aug 13 14:35 setenv_java_131
-rw-r--r--   1 wbmaster wbmaster     378 Aug 08 14:37 setenv_java_base
-rw-r--r--   1 root     system       179 Aug 08 08:35 setenv_tomcat324
-rw-r--r--   1 wbmaster wbmaster     108 Aug 12 15:17 setenv_tomcat401
-rw-r--r--   1 wbmaster wbmaster     108 Aug 13 09:07 setenv_tomcat402
-rw-r--r--   1 wbmaster wbmaster      75 Aug 13 14:36 setenv_tomcat403
-rw-r--r--   1 wbmaster wbmaster     214 Aug 13 13:43 setenv_tomcat404
-rw-r--r--   1 wbmaster wbmaster     108 Aug 12 15:16 setenv_tomcat415
-rw-r--r--   1 wbmaster wbmaster     127 Aug 08 14:46 setenv_tomcat416
-rw-r--r--   1 wbmaster wbmaster     108 Aug 08 11:38 setenv_tomcat417
-rw-r--r--   1 wbmaster wbmaster     108 Aug 12 14:49 setenv_tomcat418
wbmaster@ibm44p(/home/wbmaster)#
wbmaster@ibm44p(/home/wbmaster)# cat setenv_java_131
unset LIBPATH
unset CLASSPATH
unset LD_LIBRARY_PATH
unset JAVA_COMPILER
unset JAVA_HOME
 
export PATH=/usr/java131/jre/bin:/usr/java131/bin:$PATH
 
export LIBPATH=/usr/java131/jre/lib
 
export JAVA_HOME=/usr/java131
wbmaster@ibm44p(/home/wbmaster)#
wbmaster@ibm44p(/home/wbmaster)#
wbmaster@ibm44p(/home/wbmaster)# cat setenv_tomcat403
unset  CATALINA_HOME
 
CATALINA_HOME=/db04/tomcat_403
 
export CATALINA_HOME
wbmaster@ibm44p(/home/wbmaster)#
wbmaster@ibm44p(/home/wbmaster)#
wbmaster@ibm44p(/home/wbmaster)# cd /prog/tomcat_403
wbmaster@ibm44p(/prog/tomcat_403)#
wbmaster@ibm44p(/prog/tomcat_403)#
wbmaster@ibm44p(/prog/tomcat_403)# ls -l logs
total 0
wbmaster@ibm44p(/prog/tomcat_403)#
wbmaster@ibm44p(/prog/tomcat_403)#
wbmaster@ibm44p(/prog/tomcat_403)# ls -l temp
total 0
wbmaster@ibm44p(/prog/tomcat_403)#
wbmaster@ibm44p(/prog/tomcat_403)#
wbmaster@ibm44p(/prog/tomcat_403)# cd bin
wbmaster@ibm44p(/prog/tomcat_403/bin)# startup.sh
Using CATALINA_BASE:   /prog/tomcat_403
Using CATALINA_HOME:   /prog/tomcat_403
Using CATALINA_TMPDIR: /prog/tomcat_403/temp
Using JAVA_HOME:       /usr/java131
wbmaster@ibm44p(/prog/tomcat_403/bin)#
wbmaster@ibm44p(/prog/tomcat_403/bin)#
wbmaster@ibm44p(/prog/tomcat_403/bin)# ps -ef | grep java
wbmaster  4998     1   0 14:39:25  pts/0  0:27 /usr/java131/bin/java -Djava.endo
rsed.dirs=/prog/tomcat_403/bin:/prog/tomcat_403/common/lib -classpath /usr/java1
31/lib/tools.jar:/prog/tomcat_403/bin/bootstrap.jar -Dcatalina.base=/prog/tomcat
_403 -Dcatalina.home=/prog/tomcat_403 -Djava.io.tmpdir=/prog/tomcat_403/temp org
.apache.catalina.startup.Bootstrap start
wbmaster 19840 18694   0 14:38:12  pts/0  0:00 grep java
wbmaster@ibm44p(/prog/tomcat_403/bin)#
wbmaster@ibm44p(/prog/tomcat_403/bin)#
wbmaster@ibm44p(/prog/tomcat_403/bin)# cd ../logs
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)# ls -l
total 40
-rw-r--r--   1 wbmaster wbmaster    1258 Aug 13 14:39 catalina.out
-rw-r--r--   1 wbmaster wbmaster    1009 Aug 13 14:39 catalina_log.2002-08-13.tx
t
-rw-r--r--   1 wbmaster wbmaster       0 Aug 13 14:39 localhost_access_log.2002-
08-13.txt
-rw-r--r--   1 wbmaster wbmaster    1139 Aug 13 14:39 localhost_examples_log.200
2-08-13.txt
-rw-r--r--   1 wbmaster wbmaster    4166 Aug 13 14:39 localhost_log.2002-08-13.t
xt
wbmaster@ibm44p(/prog/tomcat_403/logs)# cat catalina.out
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
java.net.BindException: The socket name is already in use.
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:430)
        at java.net.ServerSocket.<init>(ServerSocket.java:191)
        at java.net.ServerSocket.<init>(ServerSocket.java:142)
        at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
        at org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:752)
        at org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:943)
        at org.apache.catalina.core.StandardService.start(StandardService.java:3
95)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:506
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
java.lang.NullPointerException
        at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:792)
        at java.lang.Thread.run(Thread.java:512)
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)# cat catalina_log.2002-08-13.txt
2002-08-13 14:39:35 HttpConnector Opening server socket on all host IP addresses
2002-08-13 14:39:53 HttpConnector[8080] Starting background thread
2002-08-13 14:39:53 HttpProcessor[8080][0] Starting background thread
2002-08-13 14:39:53 HttpProcessor[8080][1] Starting background thread
2002-08-13 14:39:53 HttpProcessor[8080][2] Starting background thread
2002-08-13 14:39:53 HttpProcessor[8080][3] Starting background thread
2002-08-13 14:39:53 HttpProcessor[8080][4] Starting background thread
2002-08-13 14:39:53 Ajp13Connector[8009] Opening server socket on all host IP ad
dresses
2002-08-13 14:39:53 Ajp13Connector[8009] Starting background thread
2002-08-13 14:39:53 Ajp13Processor[8009][0] Starting background thread
2002-08-13 14:39:53 Ajp13Processor[8009][1] Starting background thread
2002-08-13 14:39:53 Ajp13Processor[8009][2] Starting background thread
2002-08-13 14:39:53 Ajp13Processor[8009][3] Starting background thread
2002-08-13 14:39:53 Ajp13Processor[8009][4] Starting background thread
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)# les_log.2002-08-13.txt               <
2002-08-13 14:39:36 WebappLoader[/examples]: Deploying class repositories to wor
k directory /prog/tomcat_403/work/localhost/examples
2002-08-13 14:39:36 WebappLoader[/examples]: Reloading checks are enabled for th
is Context
2002-08-13 14:39:36 StandardManager[/examples]: Seeding random number generator
class java.security.SecureRandom
2002-08-13 14:39:36 StandardManager[/examples]: Seeding of random number generat
or has been completed
2002-08-13 14:39:45 ContextConfig[/examples]: Added certificates -> request attr
ibute Valve
2002-08-13 14:39:45 ContextConfig[/examples]: Configured an authenticator for me
thod FORM
2002-08-13 14:39:46 ContextListener: contextInitialized()
2002-08-13 14:39:46 SessionListener: contextInitialized()
2002-08-13 14:39:46 ContextListener: attributeReplaced('org.apache.catalina.WELC
OME_FILES', '[Ljava.lang.String;@6043f16f')
2002-08-13 14:39:46 StandardWrapper[/examples:default]: Loading container servle
t default
2002-08-13 14:39:46 default: init
2002-08-13 14:39:46 StandardWrapper[/examples:invoker]: Loading container servle
t invoker
2002-08-13 14:39:46 invoker: init
2002-08-13 14:39:47 jsp: init
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)#
wbmaster@ibm44p(/prog/tomcat_403/logs)# cat localhost_log.2002-08-13.txt
2002-08-13 14:39:48 WebappLoader[/manager]: Deploying class repositories to work
 directory /prog/tomcat_403/work/localhost/manager
2002-08-13 14:39:49 StandardManager[/manager]: Seeding random number generator c
lass java.security.SecureRandom
2002-08-13 14:39:49 StandardManager[/manager]: Seeding of random number generato
r has been completed
2002-08-13 14:39:49 ContextConfig[/manager]: Added certificates -> request attri
bute Valve
2002-08-13 14:39:50 ContextConfig[/manager]: Configured an authenticator for met
hod BASIC
2002-08-13 14:39:50 StandardWrapper[/manager:default]: Loading container servlet
 default
2002-08-13 14:39:50 default: init
2002-08-13 14:39:50 StandardWrapper[/manager:invoker]: Loading container servlet
 invoker
2002-08-13 14:39:50 invoker: init
2002-08-13 14:39:51 jsp: init
2002-08-13 14:39:52 StandardHost[localhost]: Installing web application at conte
xt path /tomcat-docs from URL file:/prog/tomcat_403/webapps/tomcat-docs
2002-08-13 14:39:52 WebappLoader[/tomcat-docs]: Deploying class repositories to
work directory /prog/tomcat_403/work/localhost/tomcat-docs
2002-08-13 14:39:52 StandardManager[/tomcat-docs]: Seeding random number generat
or class java.security.SecureRandom
2002-08-13 14:39:52 StandardManager[/tomcat-docs]: Seeding of random number gene
rator has been completed
2002-08-13 14:39:52 ContextConfig[/tomcat-docs]: Added certificates -> request a
ttribute Valve
2002-08-13 14:39:52 StandardWrapper[/tomcat-docs:default]: Loading container ser
vlet default
2002-08-13 14:39:52 default: init
2002-08-13 14:39:52 StandardWrapper[/tomcat-docs:invoker]: Loading container ser
vlet invoker
2002-08-13 14:39:52 invoker: init
2002-08-13 14:39:52 jsp: init
2002-08-13 14:39:52 StandardHost[localhost]: Installing web application at conte
xt path /webdav from URL file:/prog/tomcat_403/webapps/webdav
2002-08-13 14:39:52 WebappLoader[/webdav]: Deploying class repositories to work
directory /prog/tomcat_403/work/localhost/webdav
2002-08-13 14:39:52 StandardManager[/webdav]: Seeding random number generator cl
ass java.security.SecureRandom
2002-08-13 14:39:52 StandardManager[/webdav]: Seeding of random number generator
 has been completed
2002-08-13 14:39:52 ContextConfig[/webdav]: Added certificates -> request attrib
ute Valve
2002-08-13 14:39:52 StandardWrapper[/webdav:default]: Loading container servlet
default
2002-08-13 14:39:52 default: init
2002-08-13 14:39:52 StandardWrapper[/webdav:invoker]: Loading container servlet
invoker
2002-08-13 14:39:52 invoker: init
2002-08-13 14:39:52 jsp: init
2002-08-13 14:39:52 StandardHost[localhost]: Installing web application at conte
xt path  from URL file:/prog/tomcat_403/webapps/ROOT
2002-08-13 14:39:52 WebappLoader[]: Deploying class repositories to work directo
ry /prog/tomcat_403/work/localhost/_
2002-08-13 14:39:52 StandardManager[]: Seeding random number generator class jav
a.security.SecureRandom
2002-08-13 14:39:52 StandardManager[]: Seeding of random number generator has be
en completed
2002-08-13 14:39:53 ContextConfig[]: Added certificates -> request attribute Val
ve
2002-08-13 14:39:53 StandardWrapper[:default]: Loading container servlet default
2002-08-13 14:39:53 default: init
2002-08-13 14:39:53 StandardWrapper[:invoker]: Loading container servlet invoker
2002-08-13 14:39:53 invoker: init
2002-08-13 14:39:53 jsp: init
2002-08-13 14:39:53 StandardHost[localhost]: Installing web application at conte
xt path /soap from URL jar:file:/prog/tomcat_403/webapps/soap.war!/
2002-08-13 14:39:53 WebappLoader[/soap]: Deploying class repositories to work di
rectory /prog/tomcat_403/work/localhost/soap
2002-08-13 14:39:53 StandardManager[/soap]: Seeding random number generator clas
s java.security.SecureRandom
2002-08-13 14:39:53 StandardManager[/soap]: Seeding of random number generator h
as been completed
2002-08-13 14:39:53 ContextConfig[/soap]: Added certificates -> request attribut
e Valve
2002-08-13 14:39:53 StandardWrapper[/soap:default]: Loading container servlet de
fault
2002-08-13 14:39:53 default: init
2002-08-13 14:39:53 StandardWrapper[/soap:invoker]: Loading container servlet in
voker
2002-08-13 14:39:53 invoker: init
2002-08-13 14:39:53 jsp: init
wbmaster@ibm44p(/prog/tomcat_403/logs)#

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message