java.security.KeyStoreException running XMPPServer with Apache Harmony
----------------------------------------------------------------------
Key: VYSPER-188
URL: https://issues.apache.org/jira/browse/VYSPER-188
Project: VYSPER
Issue Type: Bug
Components: authentication
Environment: Ubuntu 9.10
Apache Harmony harmony 5.0 M12a
Reporter: Jean-Sebastien Delfino
Running XMPPServer on Apache Harmony 5.0 M12a causes this exception:
java.lang.RuntimeException: java.security.KeyStoreException: KeyStore JKS
implementation not found
at
org.apache.vysper.xmpp.server.DefaultServerRuntimeContext.setTlsContextFactory(DefaultServerRuntimeContext.java:204)
at org.apache.vysper.xmpp.server.XMPPServer.start(XMPPServer.java:117)
at test.TestVysperServer.main(TestVysperServer.java:60)
Caused by: java.security.KeyStoreException: KeyStore JKS implementation not
found
at java.security.KeyStore.getInstance(KeyStore.java:120)
at
org.apache.vysper.xmpp.cryptography.AbstractTLSContextFactory.createSSLContext(AbstractTLSContextFactory.java:76)
at
org.apache.vysper.xmpp.cryptography.AbstractTLSContextFactory.getSSLContext(AbstractTLSContextFactory.java:70)
at
org.apache.vysper.xmpp.server.DefaultServerRuntimeContext.setTlsContextFactory(DefaultServerRuntimeContext.java:202)
at org.apache.vysper.xmpp.server.XMPPServer.start(XMPPServer.java:117)
... 1 more
The same test [1] runs OK with other JDKs.
Vysper currently hardcodes the Keystore type to JKS [2], which is not supported
by Harmony [3] There should be a way to make this configurable and support
another Keystore type like Bouncy Castle BKS (perhaps a setter method on
AbstractTLSContextFactory and allow for injecting a TLSContextFactory into
XMPPServer.)
[1]
http://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk/components/chat/test/TestVysperServer.java
[2]
http://svn.apache.org/repos/asf/mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/cryptography/AbstractTLSContextFactory.java
[3] http://issues.apache.org/jira/browse/HARMONY-6098
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.