Re: [kaffe] CVS kaffe (dalibor): Fix to get Tomcat 4.1.27 to run
Dalibor Topic wrote: Kaffe CVS wrote: PatchSet 4033 Date: 2003/09/14 20:01:45 Author: dalibor Branch: HEAD Tag: (none) Log: Fix to get Tomcat 4.1.27 to run Tomcat loads without errors with this fix. In order to get JSPs to work, one has to set kjc as the JSP compiler in tomcat's conf/web.xml. Works best with lots of memory. so set JAVA_OPTS to something high enough, like -mx256M before you run tomcat. Attached is a diff to conf/web.xml that sets the default JSP compiler to kjc. When you get into the management console, you should see a picture like this: http://www.kaffe.org/~robilad/tomcat-4.1.27-screenshot.png where you can see at the bottom that tomcat is running on kaffe. thanks to Helmer for providing very useful ideas for patches on the irc channel. It would be nice if someone could take a look into merging the URL* classes from GNU Classpath into kaffe. One more thing: you may need to put struts-legacy.jar from jakarta-struts into $CATALINA_HOME/server/lib/ to get it to work . cheers, dalibor topic ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] JOrbis 0.0.12 works
I tried another sound application, and it worked well with kaffe from CVS: JOrbis, a pure java ogg player. It takes only about 6 megs (-mx 6M) to play a file and is quite fast on i386-linux-jit3. So now you can play both your mp3s and Ogg Vorbis files in kaffe with pure java players. cheers, dalibor topic ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
FW: [kaffe] bug report
Just wondering if anyone knows what the problem is below. I've attached the output from gnu debugger. I cant get the make check to run completely on my system. Cheers, thomas -Original Message- From: Thomas Keane [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 19:06 To: 'Helmer Krämer' Subject: RE: [kaffe] bug report That seemed to work - here's the output: (gdb) run Starting program: /root/kaffe/kaffe/kaffe/.libs/lt-kaffe-bin at.dms.kjc.Main Program received signal SIGSEGV, Segmentation fault. start_this_sucker_on_a_new_frame () at jthread.c:1453 1453if ((currentJThread-flags THREAD_FLAGS_KILLED) != 0) { (gdb) where #0 start_this_sucker_on_a_new_frame () at jthread.c:1453 #1 0x400af194 in jthread_create (pri=11 '\v', func=0x400dbede __DTOR_END__+2054, daemon=1, jlThread=0xc5d00, threadStackSize=0) at jthread.c:1533 (gdb) Let me know if you need more information to figure out what the problem is? thomas -Original Message- From: Helmer Krämer [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 18:55 To: Thomas Keane Subject: Re: [kaffe] bug report On Thu, 4 Sep 2003 18:20:33 +0100 Thomas Keane [EMAIL PROTECTED] wrote: Unfortunately gdb isn_t liking that - kaffe wont start so I cant get the stack trace. Here_s the bash output: primordialbiosoup:~/kaffe# . BUILD_ENVIRONMENT ; libtool --mode=execute gdb $JAVA GNU gdb 2002-04-01-cvs Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as hppa-linux... (gdb) set args at.dms.kjc.Main (gdb) run Starting program: /root/kaffe/kaffe/kaffe/.libs/lt-kaffe-bin at.dms.kjc.Main Couldn't find or load essential class `java/lang/Object' java.lang.ClassNotFoundException java/lang/Object Program received signal SIGABRT, Aborted. 0x401c06c4 in kill () from /lib/libc.so.6 Looks like the classpath might not be working (even though it is set in the BUILD_ENVIRONMENT). hmpf, should've remembered this ... Kaffe clearly can't find java/lang/Object, since BUILD_ENVIRONMENT only adds libraries/javalib/rt.jar to the classpath, which obviously can't work, since you don't have that yet ... If you modify the first line of the BUILD_ENVIRONMENT script to look like this (assuming that /root/kaffe contains the sources): BOOTCLASSPATH=${BOOTCLASSPATH}':'//root/kaffe/libraries/javalib/rt.jar': '//root/kaffe/libraries/javalib/Klasses.jar.bootstrap; export BOOTCLASSPATH libraries/javalib/Klasses.jar.bootstrap is a precompiled jar archive that contains the classes that are required to be able to run our java compiler, kjc. So adding that one to the bootclasspath will hopefully help (unless I forgot something else, that is). Helmer ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Regarding labels !!
Akash Mahajan wrote: I meant the label structure defined in labels.h, something more simpler and understandable than what is written in that file. Which labels.h? The one in jit or jit3? And, what in particular don't you understand? tim ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] CVS kaffe (dalibor): Resynced with GNU JAXP
PatchSet 4037 Date: 2003/09/15 15:47:59 Author: dalibor Branch: HEAD Tag: (none) Log: Resynced with GNU JAXP Jim's patch has made it into GNU JAXP, so I resynced with their CVS. Members: ChangeLog:1.1633-1.1634 libraries/javalib/javax/xml/parsers/DocumentBuilder.java:1.1-1.2 libraries/javalib/javax/xml/parsers/DocumentBuilderFactory.java:1.1-1.2 libraries/javalib/javax/xml/parsers/SAXParser.java:1.1-1.2 libraries/javalib/javax/xml/transform/TransformerConfigurationException.java:1.1-1.2 libraries/javalib/javax/xml/transform/TransformerException.java:1.1-1.2 libraries/javalib/javax/xml/transform/sax/SAXSource.java:1.2-1.3 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.1633 kaffe/ChangeLog:1.1634 --- kaffe/ChangeLog:1.1633 Sun Sep 14 21:49:34 2003 +++ kaffe/ChangeLog Mon Sep 15 15:47:59 2003 @@ -1,3 +1,13 @@ +2003-09-15 Dalibor Topic [EMAIL PROTECTED] + + * libraries/javalib/javax/xml/parsers/DocumentBuilder.java, + libraries/javalib/javax/xml/parsers/DocumentBuilderFactory.java, + libraries/javalib/javax/xml/parsers/SAXParser.java, + libraries/javalib/javax/xml/transform/TransformerConfigurationException.java, + libraries/javalib/javax/xml/transform/TransformerException.java, + libraries/javalib/javax/xml/transform/sax/SAXSource.java: + Resynced with GNU JAXP. + 2003-09-14 Dalibor Topic [EMAIL PROTECTED] * libraries/javalib/Klasses.jar.bootstrap: Index: kaffe/libraries/javalib/javax/xml/parsers/DocumentBuilder.java diff -u kaffe/libraries/javalib/javax/xml/parsers/DocumentBuilder.java:1.1 kaffe/libraries/javalib/javax/xml/parsers/DocumentBuilder.java:1.2 --- kaffe/libraries/javalib/javax/xml/parsers/DocumentBuilder.java:1.1 Mon Dec 2 15:01:14 2002 +++ kaffe/libraries/javalib/javax/xml/parsers/DocumentBuilder.java Mon Sep 15 15:48:01 2003 @@ -1,5 +1,5 @@ /* - * $Id: DocumentBuilder.java,v 1.1 2002/12/02 15:01:14 dalibor Exp $ + * $Id: DocumentBuilder.java,v 1.2 2003/09/15 15:48:01 dalibor Exp $ * Copyright (C) 2001 Andrew Selkirk * Copyright (C) 2001 David Brownell * @@ -46,7 +46,7 @@ /** * Uses an XML parser to construct a DOM document. * @author Andrew Selkirk, David Brownell - * @version$Id: DocumentBuilder.java,v 1.1 2002/12/02 15:01:14 dalibor Exp $ + * @version$Id: DocumentBuilder.java,v 1.2 2003/09/15 15:48:01 dalibor Exp $ */ public abstract class DocumentBuilder { @@ -96,17 +96,30 @@ /** * Constructs an InputSource from the file, and invokes parse (). * The InputSource includes the URI for the file. + * @param file the file to parse + * @return the DOM representation of the xml document + * @exception IOException + * @exception SAXException if parse errors occur + * @exception IllegalArgumentException if the file is null */ public Document parse (File file) throws SAXException, IOException { - InputSource source; - - source = new InputSource (fileToURL (file)); - source.setByteStream (new FileInputStream(file)); - return parse (source); +if (file==null) + { +throw new IllegalArgumentException(File si 'null'); + } +InputSourcesource; + +source = new InputSource (fileToURL (file)); +source.setByteStream (new FileInputStream(file)); +return parse (source); } - + + /** + * + * @exception IllegalArgumentException if InputSource is null + */ public abstract Document parse(InputSource source) throws SAXException, IOException; @@ -114,15 +127,28 @@ * Avoid using this call; provide the system ID wherever possible. * System IDs are essential when parsers resolve relative URIs, * or provide diagnostics. + * @exception IllegalArgumentException if InputStream is null */ public Document parse(InputStream stream) throws SAXException, IOException { +if (stream==null) +{ + throw new IllegalArgumentException(InputStream si 'null'); +} return parse(new InputSource(stream)); } // parse() + /** + * + * @exception IllegalArgumentException if InputStream is null + */ public Document parse(InputStream stream, String systemID) throws SAXException, IOException { +if (stream==null) + { +throw new IllegalArgumentException(InputStream si 'null'); + } // Variables InputSource source; @@ -135,11 +161,19 @@ } // parse() + /** + * + * @exception IllegalArgumentException if the URI is null + */ public Document parse(String uri) throws SAXException, IOException { +if (uri==null) + { +throw new IllegalArgumentException(URI si 'null'); + } return parse(new
[kaffe] Re: JavaLayer 0.3.0 works
Hi, just a quick heads up, since this his been a busy weekend getting applications to work: JavaLayer 0.3.0 works with kaffe from CVS. JavaLayer is a free software MP3 player, available at http://www.javazoom.net/javalayer/javalayer.html . It's quite fast, and takes about 18M to play a file on i686-linux-jit3. The threaded player works as well. The memory usage seems to come from jit-temp-data: Nr179 Mem 8980K, which doesn't get freed as it should be, so it's impossible to run with less then -mx 16M. I think the gc should try to free jit temp data when it runs out of memory. Tim, Helmer, what do you think? The GC doesn't track this, its kept around in a pool which isn't freed if it passes some threshold. cheers, dalibor topic tim ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] Which libtool?
At present libtool is messing up my build system. Which one is the one needed to work. At present libtool 1.5 fubars tha build system. ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] test
test ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] A matter of performance
Hi, I am using Kaffe but with hesitation at this point. I have build kaffe from the CVS copy with the following config options. ./configure --enable-shared --disable-static --with-awt=X --with-x --with-engine=jit3 --with-jvmpi The issue I have is that an application takes really long time in to run on Kaffe as compared to JDK. I wonder is this just my configuration or is it something inherent in Kaffe? waiting for reply, -- Venkatesh Prasad Ranganath, Dept. Computing and Information Science, Kansas State University, US. web: http://www.cis.ksu.edu/~rvprasad ___ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] put mathod can not be found
Hi, I'm porting kaffe 1.0.7 to TriCore-Linux platform. I am faced with the following problem: When native function: java_lang_System_initProperties() is executed the "put" method can not be found. I have found out that findMethodLocal() searches in (class-superclass is java/lang/VirtualMachineError) :java/lang/StackOverflowError, java/lang/VirtualMachineError, java/lang/Error, java/lang/Throwable, java/lang/Object and "put" method is not present there. I compared it with kaffe running on i386-Linux (which has been made with the same options as for TriCore). I noticed thatfindMethodLocal() starts with (class-superclass is java/util/Hashtable) java/util/properties and finds "put" in java/util/Hashtable. Could you give me any hints? Thanks for help. Regards, Greg Tyma
[kaffe] kaffe plugin
hi, Is there any open source for kaffe plugin for applets? regards Hemanth