FAQ
Hi,
I got the error shown below when i run startup.bat. Seems to have 2 main
error here:
1. Tomcat not able to find the library that allows optimal performance in
production environment.
2. There is a Permission Denied while trying to initialize endpoint.

Currently using:
Microsoft Vista
jdk1.6.0_10 (tried jdk1.5.16 also does not work)

What I have tried:
* has disabled the firewall
* start the DOS session as administrator
* change the port number 8080 in server.xml to 8383.

Run out of ideas on how to solve it...so any help will be much appreciated.

Regards,
yclim





06-Aug-08 PM 12:02 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Program
Files\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows
;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows
;C:\Windows\System32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\Program
Files\No
rman\Npm\Bin;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\
06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.SocketException: Permission denied: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:105
8)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed:
java.net.SocketExce
ption: Permission denied: listen failed
at
org.apache.catalina.connector.Connector.initialize(Connector.java:106
0)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 904 ms
06-Aug-08 PM 12:02 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
06-Aug-08 PM 12:02 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.SocketException: Permission denied: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
faultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203
)
at
org.apache.catalina.connector.Connector.start(Connector.java:1131)
at
org.apache.catalina.core.StandardService.start(StandardService.java:5
31)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start
fail
ed: java.net.SocketException: Permission denied: listen failed
at
org.apache.catalina.connector.Connector.start(Connector.java:1138)
at
org.apache.catalina.core.StandardService.start(StandardService.java:5
31)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1501 ms

Search Discussions

  • Martin Gainty at Aug 6, 2008 at 12:48 pm
    download and install tcnative libraries
    http://tomcat.apache.org/native-doc

    HTH
    Martin
    ______________________________________________
    Disclaimer and confidentiality note
    Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.

    Date: Wed, 6 Aug 2008 12:10:52 +0800
    From: charlesyclim@gmail.com
    To: users@tomcat.apache.org
    Subject: Permission Denied

    Hi,
    I got the error shown below when i run startup.bat. Seems to have 2 main
    error here:
    1. Tomcat not able to find the library that allows optimal performance in
    production environment.
    2. There is a Permission Denied while trying to initialize endpoint.

    Currently using:
    Microsoft Vista
    jdk1.6.0_10 (tried jdk1.5.16 also does not work)

    What I have tried:
    * has disabled the firewall
    * start the DOS session as administrator
    * change the port number 8080 in server.xml to 8383.

    Run out of ideas on how to solve it...so any help will be much appreciated.

    Regards,
    yclim





    06-Aug-08 PM 12:02 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performanc
    e in production environments was not found on the java.library.path:
    C:\Program
    Files\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows
    ;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows
    ;C:\Windows\System32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\Program
    Files\No
    rman\Npm\Bin;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\
    06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.SocketException: Permission denied: listen failed
    at java.net.PlainSocketImpl.socketListen(Native Method)
    at java.net.PlainSocketImpl.listen(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at
    org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
    faultServerSocketFactory.java:50)
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
    at
    org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
    at
    org.apache.catalina.connector.Connector.initialize(Connector.java:105
    8)
    at
    org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:677)
    at
    org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:795)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed:
    java.net.SocketExce
    ption: Permission denied: listen failed
    at
    org.apache.catalina.connector.Connector.initialize(Connector.java:106
    0)
    at
    org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:677)
    at
    org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:795)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 904 ms
    06-Aug-08 PM 12:02 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    06-Aug-08 PM 12:02 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.SocketException: Permission denied: listen failed
    at java.net.PlainSocketImpl.socketListen(Native Method)
    at java.net.PlainSocketImpl.listen(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at
    org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
    faultServerSocketFactory.java:50)
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
    at
    org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:519)
    at
    org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203
    )
    at
    org.apache.catalina.connector.Connector.start(Connector.java:1131)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:5
    31)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:710
    )
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start
    fail
    ed: java.net.SocketException: Permission denied: listen failed
    at
    org.apache.catalina.connector.Connector.start(Connector.java:1138)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:5
    31)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:710
    )
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1501 ms
    _________________________________________________________________
    Your PC, mobile phone, and online services work together like never before.
    http://clk.atdmt.com/MRT/go/108587394/direct/01/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriestomcat
postedAug 6, '08 at 4:11a
activeAug 6, '08 at 12:48p
posts2
users2
websitetomcat.apache.org
irc#tomcat

2 users in discussion

Martin Gainty: 1 post Charles Lim: 1 post

People

Translate

site design / logo © 2022 Grokbase