Schölver, Andreas a écrit :

Hi Eric

Does your test class use a package definition?
my test class (MyServeur2Secure.java) is in a package fr.insat;

It might be neccessary to put the key file somewhere in the classpath,
How can you put the key file in the classpath ?

but it should IMO not be inside of a package.
what is IMO ?

Eric
Thanks for your answers ...

Andreas

-----Original Message-----
From: Eric BOYER [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 4:54 PM
To: [email protected]
Subject: Newbie question - HTTPS and testkeys


Hello,

I try to set up a HTTPS xmlrpc server but i've got an exception :
java.io.FileNotFoundException: testkeys (No such file or directory)

with the code :
"
SecureWebServer server = new SecureWebServer(port);
server.addHandler("bonjour", new HelloWorld2());

server.start();
"

So I generated a testkey file with :
"
keytool -genkey -alias duke -keystore testkeys -keyalg rsa
"

I put the testkey file in the directory of *.java and *.class but I always have got the exception.

Could help me please ?

Thanks,

Eric



Reply via email to