You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ron Andersen <ra...@yahoo.com> on 2003/12/06 20:33:40 UTC

SSL - FileNotFoundException (Access is denied)

Installed SSL by the following(ADV Server 2000 and tomcat build 5.0.16):
 
1) Creating the keystore file
2) Added attribute keystoreFile to the <Factory> tag
3)Added path C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf to keystoreFile 
4) Restarted Tomcat (logged in as Administrator) and received the following error:
 
 
Dec 6, 2003 2:23:57 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Dec 6, 2003 2:23:57 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf (Access is denied)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.<init>(Unknown Source)
 at java.io.FileInputStream.<init>(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:294)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:259)
 at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:172)
 at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:138)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:127)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
 at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
 at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1366)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:633)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:532)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
 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:397)
Dec 6, 2003 2:23:57 PM org.apache.catalina.startup.Catalina load


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Re: SSL - FileNotFoundException (Access is denied)

Posted by Ron Andersen <ra...@yahoo.com>.
Thank you! I wil add it to the Connector tag!!

Bill Barker <wb...@wilshire.com> wrote:You need to put the full path to the file (including the file name :) for
the keystore. Also, for future reference, the tag is deprecated
in Tomcat 5. You should set the attributes on the tag instead.

"Ron Andersen" wrote in message
news:20031206193340.90277.qmail@web60705.mail.yahoo.com...
> Installed SSL by the following(ADV Server 2000 and tomcat build 5.0.16):
>
> 1) Creating the keystore file
> 2) Added attribute keystoreFile to the tag
> 3)Added path C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf
to keystoreFile
> 4) Restarted Tomcat (logged in as Administrator) and received the
following error:
>
>
> Dec 6, 2003 2:23:57 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> Dec 6, 2003 2:23:57 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.io.FileNotFoundException: C:\Program Files\Apache Software
Foundation\Tomcat 5.0\conf (Access is denied)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at java.io.FileInputStream.(Unknown Source)
> at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory
.java:294)
> at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFact
ory.java:259)
> at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14Soc
ketFactory.java:172)
> at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory
.java:138)
> at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFac
tory.java:127)
> at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:297)
> at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
> at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
66)
> at
org.apache.catalina.core.StandardService.initialize(StandardService.java:633
)
> at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:532)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
> 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:397)
> Dec 6, 2003 2:23:57 PM org.apache.catalina.startup.Catalina load
>
>
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Re: SSL - FileNotFoundException (Access is denied)

Posted by Bill Barker <wb...@wilshire.com>.
You need to put the full path to the file (including the file name :) for
the keystore.  Also, for future reference, the <Factory> tag is deprecated
in Tomcat 5.  You should set the attributes on the <Connector> tag instead.

"Ron Andersen" <ra...@yahoo.com> wrote in message
news:20031206193340.90277.qmail@web60705.mail.yahoo.com...
> Installed SSL by the following(ADV Server 2000 and tomcat build 5.0.16):
>
> 1) Creating the keystore file
> 2) Added attribute keystoreFile to the <Factory> tag
> 3)Added path C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf
to keystoreFile
> 4) Restarted Tomcat (logged in as Administrator) and received the
following error:
>
>
> Dec 6, 2003 2:23:57 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> Dec 6, 2003 2:23:57 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.io.FileNotFoundException: C:\Program Files\Apache Software
Foundation\Tomcat 5.0\conf (Access is denied)
>  at java.io.FileInputStream.open(Native Method)
>  at java.io.FileInputStream.<init>(Unknown Source)
>  at java.io.FileInputStream.<init>(Unknown Source)
>  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory
.java:294)
>  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFact
ory.java:259)
>  at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14Soc
ketFactory.java:172)
>  at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory
.java:138)
>  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFac
tory.java:127)
>  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:297)
>  at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
>  at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
66)
>  at
org.apache.catalina.core.StandardService.initialize(StandardService.java:633
)
>  at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)
>  at org.apache.catalina.startup.Catalina.load(Catalina.java:532)
>  at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>  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:397)
> Dec 6, 2003 2:23:57 PM org.apache.catalina.startup.Catalina load
>
>
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org