• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Tomcat 5.0.28 Installation problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

When i start tomcat server i am getting the following exceptions.Please help.

Feb 12, 2005 4:10:18 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.SocketException: Invalid argument: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:343)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1429)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
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:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Feb 12, 2005 4:10:18 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.SocketException: Invalid argument: listen failed
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1431)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
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:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Feb 12, 2005 4:10:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1702 ms
Feb 12, 2005 4:10:18 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 12, 2005 4:10:18 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Feb 12, 2005 4:10:18 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 12, 2005 4:10:18 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Feb 12, 2005 4:10:18 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
Feb 12, 2005 4:10:20 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Feb 12, 2005 4:10:20 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Feb 12, 2005 4:10:21 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Feb 12, 2005 4:10:23 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
Feb 12, 2005 4:10:23 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
Feb 12, 2005 4:10:23 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
Feb 12, 2005 4:10:23 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
Feb 12, 2005 4:10:23 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.SocketException: Invalid argument: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:343)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:281)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Feb 12, 2005 4:10:23 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.net.SocketException: Invalid argument: listen failed
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1529)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Feb 12, 2005 4:10:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5308 ms
StandardServer.await: create[8005]: java.net.SocketException: Invalid argument: listen failed
java.net.SocketException: Invalid argument: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:343)
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:496)
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Feb 12, 2005 4:10:23 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-9090
Feb 12, 2005 4:10:23 PM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
at org.apache.catalina.core.StandardService.stop(StandardService.java:521)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:648)
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you tell us a little about your install?
What OS?
What JDK?
Are you running any firewalls, Norton?

How did you install it? Zip file? Exe file? as a service?
How are you starting Tomcat, script files, batch files, start menu items, windows service manager???

Have you properly set all of your environment variable?
 
sreedhar boggarapu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ben Souther,

Thanks for the response.Please find the details you asked for.

OS : Windows XP Home Edition
JDK : JDK 1.4
Firewalls : No
AntiVirus : mccafe
Tomcat 5.0.28 : .exe , Service as Manual
Start Up : windows service manager

Environment Variable :
JAVA_HOME pointing to the c:\JDK 1.4 which is JDK Home.

Thanks & Regards,
Sreedhar
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sreedhar,

Did you also set environment variables for J2EE and Tomcat?
The ones on my computer are set as: J2EE_HOME -> c:\j2sdkee1.3.1
and CATALINA_HOME -> C:\Program Files\Apache Software Foundation\Tomcat 5.0
(where I had Tomcat installed).

Also note that in some intallations, Tomcat will automatically
start whenever your computer is started. Attempting to restart Tomcat
when it is already running will not work but I believe that the error
message is different that the ones that you received. (You can also
shutdown and then restart Tomcat as an option).

Paul Heckman.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Heckman:
Hi Sreedhar,

Did you also set environment variables for J2EE and Tomcat?
The ones on my computer are set as: J2EE_HOME -> c:\j2sdkee1.3.1
and CATALINA_HOME -> C:\Program Files\Apache Software Foundation\Tomcat 5.0
(where I had Tomcat installed).

Also note that in some intallations, Tomcat will automatically
start whenever your computer is started. Attempting to restart Tomcat
when it is already running will not work but I believe that the error
message is different that the ones that you received. (You can also
shutdown and then restart Tomcat as an option).

Paul Heckman.




Tomcat, when installed with the .exe installer, doesn't rely on environment variables.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sreedhar boggarapu:
Hi Ben Souther,

Thanks for the response.Please find the details you asked for.

OS : Windows XP Home Edition
JDK : JDK 1.4
Firewalls : No
AntiVirus : mccafe
Tomcat 5.0.28 : .exe , Service as Manual
Start Up : windows service manager

Environment Variable :
JAVA_HOME pointing to the c:\JDK 1.4 which is JDK Home.

Thanks & Regards,
Sreedhar



Have you tried disabling your anti-virus software before starting up Tomcat?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any answer on this one? I may be having a similar problem.

Help please (if this is the wrong forum, please let me know)!

Hi, I installed a fresh JDK (1_5_0_02-windows-i586-p), JRE (1.5.0_01), J2EE (1.4_2005Q1), Apache web server (2.0.53-win32-x86-no_ssl) and Tomcat (5.5.7 - I also tried it with 5.0) . I installed XP Service Pack 2 (don't know if that is relevant at all).

The Tomcat service seems to start (green light and all), but in the first couple of seconds, Tomcat takes over my processor (at like 80%) and it starts writing to the stdout log (stdout was set to auto), repeatedly. After being up for like 20 min the log was well over 1 GB in size. It showed the below exceptions repeating ad infinitum.

I uninstalled and reinstalled all of the above - does anyone have any ideas of how I can fix this (Question #1)?

Is it possible this is resulting from classpaths not being setup correctly? Could someone please tell me what my CLASSPATH and PATH enviro variables should be fod JDK, J2EE, JRE, etc... (Question #2)? Both in general and specifically to be found by Tomcat. They are installed in:

C:\Program Files\Java\jdk1.5.0_02
C:\Program Files\Java\jre1.5.0_02
C:\Sun\AppServer

PATH was: .;C:\Sun\AppServer\bin;C:\Program Files\Java\jre1.5.0_02\bin;C:\Program Files\Java\jdk1.5.0_02\bin
CLASSPATH was: .;C:\tomcat\webapps\project\WEB-INF\classes;C:\Sun\AppServer\lib;C:\Program Files\Java\jdk1.5.0_02\lib;C:\Program Files\Java\jre1.5.0_02\lib;C:\Sun\AppServer\lib

I even tried using shortnames for my paths. I don't need to do this, do I (Question #3)? Here's what my variables are now. I did this all manually and I have no idea if I did it right:

J2EE_HOME = C:\Sun\AppSer~1
JAVA_HOME = C:\Progra~1\Java\jdk15~1.0_0
JRE_HOME = C:\Progra~1\Java\jdk15~1.0_0\jre\lib (?? or should I use jre15~1.0_0??)
CLASSPATH = C:\Progra~1\Java\jre15~1.0_0.;%JAVA_HOME%\lib;%JRE_HOME%\lib;%J2EE_HOME%\lib
PATH = %JAVA_HOME%\jre\bin;.;%J2EE_HOME%\bin;%JAVA_HOME%\bin

Version incompatibility (Question #4)??

Thanks! I am totally stumped.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the same problem. Do you have any solution for this?
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic