Re: [kaffe] issue with https, kaffe 1.1.3, and jessie 0.9.6

2004-02-05 Thread Helmer Krmer
On Wed, 04 Feb 2004 16:05:22 -0800
Mark Maxham [EMAIL PROTECTED] wrote:

 I have a very simple little program:
 
 I'm running kaffe 1.1.3 on Debian, and I have built the GNU Crypto from 
 the latest CVS, as well as Jessie, also from the latest CVS.  Here's my 
 little test app:
 
 [ ... ]

 java -classpath .:/data/workdir/source/gnu-crypto.jar:
   /data/workdir/jce/javax-crypto.jar:
   /data/workdir/security/javax-security.jar:
   /data/jessie-0.9.6/lib/javax-net.jar:
   /data/jessie-0.9.6/lib/javax-security-cert.jar:
   /data/jessie-0.9.6/lib/org-metastatic-jessie.jar HttpsTest
 
 I looked in the jessie.jar file and everything looks like it's there to 
 provide HTTPS, and I get this:
 
 java.net.MalformedURLException: Protocol handler not found: https
 at java.net.URL.init (URL.java:430)
 at java.net.URL.init (URL.java:311)
 at HttpsTest.main (HttpsTest.java:17)
 
 I tried moving the jessie.jar into the BOOTCLASSPATH and got a whole new 
 raft of exceptions, because jessie wants to load some classes by name. 
 But to do so, it has to call [some object].class.getClassLoader().  But 
 if the calling class was loaded by the bootloader, getClassLoader() 
 returns null.  Argh!  It's like I'm stuck in a catch-22 here.
 
 Has anybody else made https work with jessie under kaffe?  If so, what's 
 the trick?

Looks like URL.getURLStreamHandler() is using the wrong
classloader to load the class of the handler (patch is
attached).

Should I check it in and file a bug against classpath?

Regards,
Helmer



URL-patch
Description: Binary data


Re: [kaffe] issue with https, kaffe 1.1.3, and jessie 0.9.6

2004-02-05 Thread Dalibor Topic
Hallo Helmer,

Helmer Krämer wrote:
On Wed, 04 Feb 2004 16:05:22 -0800
Mark Maxham [EMAIL PROTECTED] wrote:

Looks like URL.getURLStreamHandler() is using the wrong
classloader to load the class of the handler (patch is
attached).
Should I check it in and file a bug against classpath?
Yeah, please go ahead. The fix looks good to me.

btw, what is your Classpath paperwork status? If you ask Mark Wielaard 
for the paperwork and file it with the FSF, you can contribute those 
fixes directly to Classpath, too ;)

cheers,
dalibor topic
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] struggling with kaffe and https

2004-02-05 Thread Mark Maxham
I'm running kaffe 1.1.3 on Debian, and I have built the GNU Crypto from 
the latest CVS, as well as Jessie, also from the latest CVS.  Here's my 
little test app:

-

import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
/**
 * @author max
 *
 */
public class HttpsTest
{
public static void main(String[] args) throws Exception
{
System.setProperty(
java.protocol.handler.pkgs,
org.metastatic.jessie);
java.security.Security.addProvider(new gnu.crypto.jce.GnuCrypto());
URL url = new URL(https://www.foo.com;);
URLConnection uc = url.openConnection();
InputStream is = uc.getInputStream();
is.close();
}
}
-

Here's my invocation:

java -classpath .:/data/workdir/source/gnu-crypto.jar:
 /data/workdir/jce/javax-crypto.jar:
 /data/workdir/security/javax-security.jar:
 /data/jessie-0.9.6/lib/javax-net.jar:
 /data/jessie-0.9.6/lib/javax-security-cert.jar:
 /data/jessie-0.9.6/lib/org-metastatic-jessie.jar HttpsTest
I looked in the jessie.jar file and everything looks like it's there to 
provide HTTPS, and I get this:

java.net.MalformedURLException: Protocol handler not found: https
   at java.net.URL.init (URL.java:430)
   at java.net.URL.init (URL.java:311)
   at HttpsTest.main (HttpsTest.java:17)
Please tell me I'm doing something obviously boneheaded.

(I have the same question out to the Jessie list, but the kaffe list 
gets a lot more eyeballs ... )

thanks
max
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Reminder - release this weekend

2004-02-05 Thread Jim Pick
Hi,

Just a reminder, I'm going to cut release 1.1.4 on Sunday, and we're
currently in a feature freeze.

If anybody has some spare time, please try compiling and testing CVS on
your platform.

In other news, Sun has a beta out of J2SE 1.5.0 out:

  http://java.sun.com/j2se/1.5.0/relnotes.html

So we'll have lots of fun things to implement in the coming months and years.  :-)

Cheers,

 - Jim

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Reminder - release this weekend

2004-02-05 Thread Matthias Pfisterer
Hi,

the build problem I reported a while ago is still reproducible with the 
latest CVS:

Making all in libraries/javalib
make[1]: Entering directory `/home/matthias/java/kaffe/libraries/javalib'
rm -rf lib
mkdir lib
/bin/sh ./rebuildLib @essential.files
Compiling classes from  @essential.files  using 
/home/matthias/java/kaffe/kaffe/kaffe/kaffe-bin -verbosegc -mx 256M 
at.dms.kjc.Main
[ start compilation in verbose mode ]
[ parsed gnu/classpath/Configuration.java in 483 ms ]
GC: heap 5124K, total before 4782K, after 3607K (51604/39461 objs)
 29.6% free, alloced 34839K (#106873), marked 615K, swept 1175K (#12143)
 393 objs (9K) awaiting finalization

...and the computer hangs with 100 % CPU load.

I'm willing to help to debug this, but don't know where to start.

And a note to Talibor: Please do NOT sync with the Tritonus CVS. I 
started implementing new features that depend on generics. Taking over 
this code now would break the kaffe build.

Matthias

Jim Pick wrote:
Hi,

Just a reminder, I'm going to cut release 1.1.4 on Sunday, and we're
currently in a feature freeze.
If anybody has some spare time, please try compiling and testing CVS on
your platform.
In other news, Sun has a beta out of J2SE 1.5.0 out:

  http://java.sun.com/j2se/1.5.0/relnotes.html

So we'll have lots of fun things to implement in the coming months and years.  :-)

Cheers,

 - Jim

___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


--
Matthias Pfisterer  Matthias [dot] Pfisterer [at] web [dot] de
Reuchlinstrasse 28  phone ++49-711-62 87 12
D-70176 Stuttgart   (in Deutschland 0711-62 87 12)
GERMANY
Work like you don't need the money.
Love like you've never been hurt.
Dance like nobody is watching.
Java Sound Resources (examples, FAQ, applications):
http://www.jsresources.org/
Tritonus, the open source implementation of the Java Sound API:
http://www.tritonus.org/
--
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe