Protocol handler initialization failed

0 votes

Hi when I try to start my Tomcat 6.0 I got such an error mentioned below so can I get some help regarding this doubt?

Mar 9, 2011 5:29:00 PM org.apache.catalina.core.AprLifecycleListener init 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Java/jre6/bin/client;C:/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Java\jdk1.5\bin\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Liquid Technologies\Liquid XML Studio 2009\XmlDataBinder7\Redist7\cpp\win32\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.0\bin Mar 9, 2011 5:29:00 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081

Mar 9, 2011 5:29:00 PM org.apache.tomcat.util.net.jsse.JSSESocketFactory getStore 
SEVERE: Failed to load keystore type JKS with path C:\Documents and Settings\sanjay.prajapati/.keystore due to C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) java.io.FileNotFoundException: C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) 
at java.io.FileInputStream.open(Native Method) 
at java.io.FileInputStream.<init>(Unknown Source) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:347) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:269) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:482) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:419) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:130) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538) 
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) 
at org.apache.catalina.connector.Connector.initialize(Connector.java:1014) 
at org.apache.catalina.core.StandardService.initialize(StandardService.java:680) 
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) 
at org.apache.catalina.startup.Catalina.load(Catalina.java:524) 
at org.apache.catalina.startup.Catalina.load(Catalina.java:548) 
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) 

Mar 9, 2011 5:29:00 PM org.apache.coyote.http11.Http11Protocol init 
SEVERE: Error initializing endpoint java.io.FileNotFoundException: C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) 
at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:347) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:269) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:482) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:419) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:130) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538) 
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) 
at org.apache.catalina.connector.Connector.initialize(Connector.java:1014) 
at org.apache.catalina.core.StandardService.initialize(StandardService.java:680) 
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) 
at org.apache.catalina.startup.Catalina.load(Catalina.java:524) 
at org.apache.catalina.startup.Catalina.load(Catalina.java:548) 
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) 

Mar 9, 2011 5:29:00 PM org.apache.catalina.startup.Catalina load 
SEVERE: Catalina.start 
LifecycleException: Protocol handler initialization failed: java.io.FileNotFoundException: C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:680) 
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) 
at org.apache.catalina.startup.Catalina.load(Catalina.java:524) 
at org.apache.catalina.startup.Catalina.load(Catalina.java:548) 
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) 

Mar 9, 2011 5:29:00 PM org.apache.catalina.startup.
Catalina load INFO: Initialization processed in 506 ms Mar 9, 2011 5:29:00 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 9, 2011 5:29:00 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.26 Mar 9, 2011 5:29:00 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8081 Mar 9, 2011 5:29:00 PM org.apache.tomcat.util.net.jsse.JSSESocketFactory getStore SEVERE: Failed to load keystore type JKS with path C:\Documents and Settings\sanjay.prajapati/.keystore due to C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) java.io.FileNotFoundException: C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) 
at java.io.FileInputStream.<init>(Unknown Source) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:347) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:269) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:482) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:419) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:130) at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538) 
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565) 
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203) 
at org.apache.catalina.connector.Connector.start(Connector.java:1087) 
at org.apache.catalina.core.StandardService.start(StandardService.java:534) 
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) 
at org.apache.catalina.startup.Catalina.start(Catalina.java:581) 
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) 

Mar 9, 2011 5:29:00 PM org.apache.coyote.http11.Http11Protocol start SEVERE: Error starting endpoint java.io.FileNotFoundException: C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) 
at java.io.FileInputStream.<init>(Unknown Source) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:347) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:269) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:482) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:419) 
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:130) 
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538) 
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565) 
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203) 
at org.apache.catalina.connector.Connector.start(Connector.java:1087) 
at org.apache.catalina.core.StandardService.start(StandardService.java:534) 
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) 
at org.apache.catalina.startup.Catalina.start(Catalina.java:581) 
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) 

Mar 9, 2011 5:29:00 PM org.apache.catalina.startup.Catalina start 
SEVERE: Catalina.start: 
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.io.FileNotFoundException: C:\Documents and Settings\sanjay.prajapati\.keystore (The system cannot find the file specified) 
at org.apache.catalina.connector.Connector.start(Connector.java:1094) 
at org.apache.catalina.core.StandardService.start(StandardService.java:534) 
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) 
at org.apache.catalina.startup.Catalina.start(Catalina.java:581) 
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) 
Mar 9, 2011 5:29:00 PM org.apache.catalina.startup.
Catalina start INFO: Server startup in 302 ms
Feb 17 in Java by Rahul
• 9,680 points
624 views

1 answer to this question.

0 votes

For me the protocol handler initialization failed was caused by "java.net.BindException: Address already in use: bind". To fix it I had to run the command prompt as administrator. Since I was trying to run on port 8080 I typed the following command:

netstat -ano | findStr 8080

image

This showed that the port was in fact in use. I then used the following to kill the task and clear the port:

TaskKill.exe /F /PID 24216


This killed the task and I was able to run my intellij on port 8080 again.

answered Feb 17 by Aditya
• 7,660 points

Related Questions In Java

0 votes
2 answers

One line initialization of an ArrayList object in Java

In Java 8 or earlier: List<String> string = ...READ MORE

answered Jul 26, 2018 in Java by samarth295
• 2,220 points
3,011 views
0 votes
1 answer

How to fix the error failed to load the JNI shared Library?

You need these three things : 64-bit OS 64-bit ...READ MORE

answered Apr 19, 2018 in Java by sophia
• 1,400 points
1,854 views
0 votes
1 answer

Static Map initialization in Java

I would suggest you to use the ...READ MORE

answered May 4, 2018 in Java by Akrati
• 3,190 points
11,426 views
0 votes
2 answers

Resolving PKIX path building failed Error?

You need to add the certificate for App2 to ...READ MORE

answered Sep 24, 2018 in Java by Sushmita
• 6,900 points
39,176 views
0 votes
1 answer

How can a war file be deployed in Tomcat 7?

You can access your application from: http://localhost:8080/sample Deploying ...READ MORE

answered Apr 20, 2018 in Java by sophia
• 1,400 points
1,627 views
0 votes
1 answer
0 votes
2 answers

can i run two tomcat servers on the same linux VM machine?

Hello @Ganesh, To run and configure multiple instances ...READ MORE

answered Jul 30, 2020 in Java by Niroj
• 82,800 points
2,876 views
0 votes
1 answer

Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”

If you have a jstl.jar file while ...READ MORE

answered Feb 17 in Java by Aditya
• 7,660 points
3,512 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP