tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Van Damme <chava...@gmail.com>
Subject Re: My web application to use SSL (JSSE - RSA)
Date Fri, 10 Jun 2011 15:18:46 GMT
Dear Pid,

Yes, RSA fails, and I'm wondering why.
Meantime, in 'server.xml' (see my previous email sending, I changed RSA by
TLS. Only that.

Output tabs :
1.1) Tomcat 7.0 :
Using CATALINA_BASE:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11"
Using CATALINA_HOME:   "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11"
Using CATALINA_TMPDIR: "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.6.0_22"
Using CLASSPATH:       "C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\bin\bootstrap.jar;C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11\bin\tomcat-juli.jar"
10-jun-2011 17:13:56 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:\Program
Files\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\Program
Files\Java\jdk1.6.0_22\bin;C:\Program Files\ApacheSoftwFound\Apache Tomcat
7.0.11
10-jun-2011 17:13:57 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-nio-443"]
10-jun-2011 17:13:57 org.apache.coyote.AbstractProtocolHandler init
SEVERE: Failed to initialize end point associated with ProtocolHandler
["http-nio-443"]
java.security.UnrecoverableKeyException: Cannot recover key
    at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
    at
sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121)
    at
sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:38)
    at java.security.KeyStore.getKey(KeyStore.java:763)
    at
com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:113)
    at
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
    at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
    at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:568)
    at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:507)
    at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:479)
    at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:483)
    at
org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:345)
    at
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
    at
org.apache.catalina.connector.Connector.initInternal(Connector.java:910)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
    at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
    at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
    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:262)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
10-jun-2011 17:13:57 org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector
[Connector[org.apache.coyote.http11.Http11NioProtocol-443]]
org.apache.catalina.LifecycleException: Protocol handler initialization
failed
    at
org.apache.catalina.connector.Connector.initInternal(Connector.java:912)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
    at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
    at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:572)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:595)
    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:262)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
    at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
    at
sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121)
    at
sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:38)
    at java.security.KeyStore.getKey(KeyStore.java:763)
    at
com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:113)
    at
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:48)
    at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
    at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:568)
    at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:507)
    at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:479)
    at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:483)
    at
org.apache.coyote.AbstractProtocolHandler.init(AbstractProtocolHandler.java:345)
    at
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
    at
org.apache.catalina.connector.Connector.initInternal(Connector.java:910)
    ... 13 more
10-jun-2011 17:13:57 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
10-jun-2011 17:13:57 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1384 ms
10-jun-2011 17:13:57 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
10-jun-2011 17:13:57 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.11
10-jun-2011 17:13:57 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml from C:\Program
Files\ApacheSoftwFound\Apache Tomcat 7.0.11\conf\Catalina\localhost
10-jun-2011 17:13:58 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor Opinion.xml from C:\Program
Files\ApacheSoftwFound\Apache Tomcat 7.0.11\conf\Catalina\localhost
10-jun-2011 17:13:58 org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Documents and
Settings\Papa\My Documents\Applic Program\eId Applet\build\web does not
exist or is not a readable directory
    at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
    at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4794)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
    at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:633)
    at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:558)
    at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1305)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
    at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
    at
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
    at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
    at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
    at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
    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.start(Bootstrap.java:303)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
10-jun-2011 17:13:58 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
10-jun-2011 17:13:58 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
10-jun-2011 17:13:58 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/Opinion] startup failed due to previous errors
10-jun-2011 17:13:58 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor Test1.xml from C:\Program
Files\ApacheSoftwFound\Apache Tomcat 7.0.11\conf\Catalina\localhost
10-jun-2011 17:13:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
10-jun-2011 17:13:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
10-jun-2011 17:13:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
10-jun-2011 17:13:58 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
10-jun-2011 17:13:59 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
10-jun-2011 17:13:59 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1246 ms

1.2) Test1 (run)
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Starting of Tomcat failed, the server port 443 is already in use.
C:\Documents and Settings\Papa\My Documents\Applic
Program\JSP\VDAB\Test1\nbproject\build-impl.xml:718:
Deployment error:
Starting of Tomcat failed, the server port 443 is already in use.
See the server log for details.
    at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:200)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
    at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
    at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154)
BUILD FAILED (total time: 4 seconds)


At which moment does NetBeans start the Tomcat server ?
If I operate a shutdown.bat and a startup.bat from start > Cmd , how does it
interfere with the Tomcat server thread started up by NetBeans ?

Thanks.
Chavadam





On Fri, Jun 10, 2011 at 4:45 PM, Pid <pid@pidster.com> wrote:

> On 10/06/2011 14:25, Charles Van Damme wrote:
> > java.security.NoSuchAlgorithmException: RSA SSLContext not available
>
> It seems pretty clear that "RSA" isn't accepted by Java as a valid
> algorithm.
>
>
> p
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message