Problem in using SSL (secure socket) with classpath 0.98 and Jamvm 1.5.3

"alk.shr" <[email protected]>
Newsgroups gmane.comp.java.classpath.devel
Message-ID <[email protected]>
I am getting below mentioned exception while creating secure socket through
https -
 	ava.security.KeyStoreException: JKS
	   at java.security.KeyStore.getInstance(KeyStore.java:203)
	   at java.security.KeyStore.getInstance(KeyStore.java:130)
	   at
org.mortbay.jetty.security.SslSocketConnector.createFactory(SslSocketConnector.java:198)
	   at
org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:407)
	   at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
	   at
org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:272)
	   at
org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
	   at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	   at org.mortbay.jetty.Server.doStart(Server.java:233)
	   at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
	   at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
	   at java.lang.reflect.VMMethod.invoke(Native Method)
	   at java.lang.reflect.Method.invoke(Method.java:327)
	   at org.mortbay.start.Main.invokeMain(Main.java:194)
	   at org.mortbay.start.Main.start(Main.java:509)
	   at org.mortbay.start.Main.main(Main.java:119)
	   at java.lang.reflect.VMMethod.invoke(Native Method)
	   at java.lang.reflect.Method.invoke(Method.java:327)
	   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
	Caused by: java.security.NoSuchAlgorithmException: Algorithm [JKS] of type
[KeyStore] from provider [gnu.javax.security.auth.callback.GnuCallbacks:
name=GNU-CALLBACKS version=2.1] is not found
	   at gnu.java.security.Engine.getInstance(Engine.java:191)
	   at gnu.java.security.Engine.getInstance(Engine.java:105)
   at java.security.KeyStore.getInstance(KeyStore.java:188)
   
 It seems that keystore of type 'JKS' is not supported by classpath. is
there any way to use keystore of type 'JKS' with classpath?
 I heard that classpath uses 'gkr' type keystore but i am getting following
error while generating keystore by using gkeytool provided by
 classpath-
 	
 	aException in thread "main" java.lang.UnsatisfiedLinkError: Native library
`gconfpeer' not found (as file `libgconfpeer.so') in
gnu.classpath.boot.library.path and java.library.path
	   at java.lang.Runtime.loadLibrary(Runtime.java:763)
	   at java.lang.System.loadLibrary(System.java:670)
	   at
gnu.java.util.prefs.gconf.GConfNativePeer.<clinit>(GConfNativePeer.java:283)
	   at
gnu.java.util.prefs.GConfBasedPreferences.<clinit>(GConfBasedPreferences.java:83)
	   at
gnu.java.util.prefs.GConfBasedFactory.<clinit>(GConfBasedFactory.java:52)
	   at java.lang.reflect.VMConstructor.construct(Native Method)
	   at java.lang.reflect.Constructor.newInstance(Constructor.java:319)
	   at java.lang.Class.newInstance(Class.java:1154)
	   at
gnu.classpath.ServiceProviderLoadingAction.run(ServiceProviderLoadingAction.java:140)
	   at
java.security.AccessController.doPrivileged(AccessController.java:195)
	   at
gnu.classpath.ServiceFactory$ServiceIterator.loadNextServiceProvider(ServiceFactory.java:529)
	   at
gnu.classpath.ServiceFactory$ServiceIterator.<init>(ServiceFactory.java:435)
	   at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:305)
	   at gnu.classpath.ServiceFactory.lookupProviders(ServiceFactory.java:229)
	   at java.util.prefs.Preferences.getFactory(Preferences.java:214)
	   at java.util.prefs.Preferences.systemRoot(Preferences.java:139)
	   at
java.util.prefs.Preferences.systemNodeForPackage(Preferences.java:257)
	   at
gnu.classpath.tools.keytool.Command.getSelfSignedCertificate(Command.java:876)
	   at gnu.classpath.tools.keytool.GenKeyCmd.start(GenKeyCmd.java:346)
	   at gnu.classpath.tools.keytool.Command.doCommand(Command.java:206)
	   at gnu.classpath.tools.keytool.Main.start(Main.java:238)
   at gnu.classpath.tools.keytool.Main.main(Main.java:144)
   
   i suspect that above error is coming because i had disabled gconfpeer
package at the time of configuring classpath. I will try 
   to resove above issue but can somebody help me how to get or generate
keystore file supported by the classpath ?
   is it possible to generate keystore supported by classpath bu some other
tool like keytool from sun or can i get some sample
   keystore ?
-- 
View this message in context: http://www.nabble.com/Problem-in-using-SSL-%28secure-socket%29-with-classpath-0.98-and-Jamvm-1.5.3-tp23997596p23997596.html
Sent from the Gnu - Classpath - General mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.