aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 7 startup.bat throws exception while starting up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 startup.bat throws exception while starting up" Watch "Tomcat 7 startup.bat throws exception while starting up" New topic
Author

Tomcat 7 startup.bat throws exception while starting up

Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

Hi

I just downloaded Tomcat 7 from apache's site. I extracted it in a folder and started the server. I am getting some exceptions as follows:

Jan 23, 2013 4:28:32 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
Jan 23, 2013 4:28:32 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jan 23, 2013 4:28:33 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)
Jan 23, 2013 4:28:33 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Jan 23, 2013 4:28:33 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
java.lang.Exception: Socket bind failed: [730013] An attempt was made to access a socket in a way forbidden by its access permissions.
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:433)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
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:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Jan 23, 2013 4:28:33 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
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:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.lang.Exception: Socket bind failed: [730013] An attempt was made to access a socket in a way forbidden by its access permiss
ions.
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:433)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
... 13 more
Jan 23, 2013 4:28:33 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 714 ms
Jan 23, 2013 4:28:33 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 23, 2013 4:28:33 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.35
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\WORKSPACE\Apache\apache-tomcat-7.0.35\webapps\docs
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\WORKSPACE\Apache\apache-tomcat-7.0.35\webapps\examples
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\WORKSPACE\Apache\apache-tomcat-7.0.35\webapps\host-manager
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\WORKSPACE\Apache\apache-tomcat-7.0.35\webapps\manager
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\WORKSPACE\Apache\apache-tomcat-7.0.35\webapps\MyApp
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\WORKSPACE\Apache\apache-tomcat-7.0.35\webapps\ROOT
Jan 23, 2013 4:28:33 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Jan 23, 2013 4:28:33 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 335 ms

Why am I getting these socket exceptions? How to resolve this?


~ Mansukh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7 startup.bat throws exception while starting up