From owner-freebsd-java Sun Nov 18 5:40:48 2001 Delivered-To: freebsd-java@freebsd.org Received: from mta6.srv.hcvlny.cv.net (mta6.srv.hcvlny.cv.net [167.206.5.17]) by hub.freebsd.org (Postfix) with ESMTP id 48EFB37B417 for ; Sun, 18 Nov 2001 05:40:33 -0800 (PST) Received: from [192.168.1.100] (ool-18be4d4b.dyn.optonline.net [24.190.77.75]) by mta6.srv.hcvlny.cv.net (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GN000MCY0NE7I@mta6.srv.hcvlny.cv.net> for java@freebsd.org; Sun, 18 Nov 2001 08:40:28 -0500 (EST) Date: Sun, 18 Nov 2001 08:37:25 -0500 From: John Clayton Subject: Re: jdk13 port installation problems In-reply-to: <5.1.0.14.2.20011116153707.05ac0d88@mail.vpr.uiowa.edu> To: Chris Manjoine , java@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I haven't as of yet. I've been pulled away on another project though. here's an update of how far I've gotten: * the issue with InvokersGen was solved by moving the build directory to the top level, instead of in the default, which on this "virtual private" server setup was something like /usr/tmp/usr/tmp/usr/ports/java/jdk13 - whew! There is some weirdness because the /usr/tmp directory is not what it seems to be, I'm convinced. I think I did this by specifying WRKDIR on the command line. Look in the make files for where it sets it up. Interland/Host Pro had added some config settings of their own to this, but specifying on the command-line got around it. * I then encountered another issue which I haven't yet solved: > Error: failed ../../../../build/bsd-i386/lib/i386/classic/libjvm.so, > because ../../../../build/bsd-i386/lib/i386/classic/libjvm.so: > Undefined symbol "__muldi3" > gmake[4]: *** See this thread: http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=22449+25737+/usr/local/www/db/te xt/2001/freebsd-java/20011111.freebsd-java I am NOT too confident I will overcome that one any time soon. Greg suggested that I needed to do make clean, that something was left in an inconsistent state from previous install attempts, but I had done that, so I think it's going to take some more detective work ... which unfortunately I won't get to for a while [sigh]. Any help out there on this? Just curious, are you also trying to install on a "virtual private" server? Good Luck, John ######################################### # John Clayton # john@5squaresoftware.com # NY :: 646.418.3452 # NJ :: 973.361.8392 # Open Source & Object-Oriented Solutions # Web Enabled eBusiness Applications # Knowledge Management Consulting # Content Publishing Consulting # Mac OSX Software Development ######################################### > From: Chris Manjoine > Date: Fri, 16 Nov 2001 15:37:39 -0600 > To: john@5squaresoftware.com > > did you ever solve your bsd jdk13 port install question? > > http://groups.google.com/groups?hl=en&threadm=9s4fbc%24ir0%241%40FreeBSD.csie. > NCTU.edu.tw&rnum=1&prev=/groups%3Fq%3Dgmake%255B3%255D:%2B***%2B%255Bswing-htm > l32dtd%255D%2BError%2B2%26hl%3Den%26rnum%3D1%26selm%3D9s4fbc%2524ir0%25241%254 > 0FreeBSD.csie.NCTU.edu.tw > I have the same probelem. > > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~= > Christopher A. Manjoine > Senior Systems Analyst > Research Information Systems > The University of Iowa > 2 Gilmore Hall > Iowa City, IA 52242 > > Voice: 319-335-3019 > Fax: 319-335-2130 > Email: chris-manjoine@uiowa.edu > =~=~=~=~=~=~=~=~=~=~=~=~=~=~= > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Nov 18 10: 1:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by hub.freebsd.org (Postfix) with ESMTP id B7A7937B405 for ; Sun, 18 Nov 2001 10:01:45 -0800 (PST) Received: from [166.70.6.245] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.22 #1) id 165WGG-0001W3-00; Sun, 18 Nov 2001 11:01:45 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id fAII1ec98784; Mon, 19 Nov 2001 04:31:40 +1030 (CST) (envelope-from glewis) Date: Mon, 19 Nov 2001 04:31:40 +1030 From: Greg Lewis To: Mark Evenson Cc: java@FreeBSD.ORG Subject: Re: jdk1.3.1 and JRE netscape/mozilla plugin Message-ID: <20011119043139.A98747@misty.eyesbeyond.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from evenson@panix.com on Sat, Nov 17, 2001 at 05:22:19AM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Nov 17, 2001 at 05:22:19AM -0500, Mark Evenson wrote: > The 'java/jdk1.3.1' port does not seem to build the Netscape browser > interface plugin. Thats correct. > I assume that this is because there is some technical difficulty in getting > the port to build the plugin corectly. Does anyone have a pointer to more > information on what these technical issues might be? There is no problem building it, running it is the problem... :). > It sure would be nice to have a Java plugin for the native Mozilla. . . Read some of the BUILD file in the JDK patchset. That will hopefully help you figure out how to build the plugin. If you're interested in debugging it please let me know. The problem appears to lie in the java_vm program which is exec'ed by the plugin. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 765 1887 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Nov 18 23:23:27 2001 Delivered-To: freebsd-java@freebsd.org Received: from espresso.syncrontech.com (espresso-adsl.syncrontech.com [213.28.98.39]) by hub.freebsd.org (Postfix) with ESMTP id E504737B417 for ; Sun, 18 Nov 2001 23:23:23 -0800 (PST) Received: from there (coffee.syncrontech.com [62.71.8.37]) by espresso.syncrontech.com (8.9.3/8.9.3) with SMTP id JAA69134; Mon, 19 Nov 2001 09:23:14 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-Id: <200111190723.JAA69134@espresso.syncrontech.com> Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari To: "Andrew Atrens" , "Koster, K.J." Subject: Re: Small prog to demonstrate linux-jdk1.3.x signal handling prob lem. Date: Sun, 18 Nov 2001 09:20:22 +0200 X-Mailer: KMail [version 1.3.1] Cc: java@FreeBSD.ORG References: <20011116091808.M10243-100000@hcarp00g.ca.nortel.com> In-Reply-To: <20011116091808.M10243-100000@hcarp00g.ca.nortel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, > > I differ with Ari's view that only 'Hello World' can be run on HotSpot. > Indeed the buggy app I'm trying to run is a full-on class-parser/native > code generator - it's pretty massive. And it does run, and fast. It's just > this niggly SEGV signal handling problem that's driving me nuts. > Sorry, maybe I was giving to strong opinion on this. It is mostly because I have been trying to get Apache JServ (or Tomcat) to run with linux jdk and it definitively does not work with hotspot enabled (and without it things are too slow for production environment). These problems resulted in having to switch a couple of servers from FreeBSD to Linux - a switch that I really hated to do. Anyway, now that we have such a very simple java test program that can be used to crash to Linux vm under linuxlator, maybe this could be discussed on freebsd-emulation or -current mailing list ? Or is this something like a large piece of stuff missing from linuxlator that will take ages to fix (hopefully not) ? Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 4:49:46 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail3.panix.com (mail3.panix.com [166.84.0.167]) by hub.freebsd.org (Postfix) with ESMTP id 5719637B417 for ; Mon, 19 Nov 2001 04:49:42 -0800 (PST) Received: from panix3.panix.com (panix3.panix.com [166.84.1.3]) by mail3.panix.com (Postfix) with ESMTP id 05D57982D2 for ; Mon, 19 Nov 2001 07:49:41 -0500 (EST) Received: (from evenson@localhost) by panix3.panix.com (8.11.3nb1/8.8.8/PanixN1.0) id fAJCnfY18078; Mon, 19 Nov 2001 07:49:41 -0500 (EST) X-Authentication-Warning: panix3.panix.com: evenson set sender to evenson@panix.com using -f To: java@FreeBSD.ORG Subject: Re: jdk1.3.1 and JRE netscape/mozilla plugin References: <20011119043139.A98747@misty.eyesbeyond.com> From: Mark Evenson Date: 19 Nov 2001 07:49:41 -0500 In-Reply-To: Greg Lewis's message of "Mon, 19 Nov 2001 04:31:40 +1030" Message-ID: Lines: 42 User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greg Lewis writes: > On Sat, Nov 17, 2001 at 05:22:19AM -0500, Mark Evenson wrote: > > The 'java/jdk1.3.1' port does not seem to build the Netscape browser > > interface plugin. > > Thats correct. > > > I assume that this is because there is some technical difficulty in getting > > the port to build the plugin corectly. Does anyone have a pointer to more > > information on what these technical issues might be? > > There is no problem building it, running it is the problem... :). > > > It sure would be nice to have a Java plugin for the native Mozilla. . . > > Read some of the BUILD file in the JDK patchset. That will hopefully > help you figure out how to build the plugin. > > If you're interested in debugging it please let me know. The problem > appears to lie in the java_vm program which is exec'ed by the plugin. Well, I made it to the point of mozilla reporting "failed to exec 'java_vm'". I don't know how far I can get in debugging this at this point, as my knowledge of how to debug mozilla is rather scanty, but I offer the observation that the 'java_vm' executable gets placed into the 'native_threads' section of the filepath where no other files seem to be located. quid:~/src/jdk-1.3.1/j2sdk1.3.1/build/bsd-i386$ find . -name java_vm -print ./bin/i386/native_threads/java_vm ./jre-image-i386/bin/i386/native_threads/java_vm ./jdk-image-i386/jre/bin/i386/native_threads/java_vm ./jdk-image-i386/bin/i386/native_threads/java_vm That raise any flags to anybody? -- Mark Evenson "A screaming comes across the sky. It has happened before, but there is nothing to compare to it now." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 5:17:48 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id EE4E137B418; Mon, 19 Nov 2001 05:17:37 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAJDHRi12634; Mon, 19 Nov 2001 14:17:27 +0100 (CET) (envelope-from ernst) Message-Id: <200111191317.fAJDHRi12634@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: John Merryweather Cooper Subject: Re: A Modest Proposal for Java(tm) dependency selection among ports Date: Mon, 19 Nov 2001 14:17:27 +0100 X-Mailer: KMail [version 1.3] Cc: freebsd-java@freebsd.org, freebsd-ports@freebsd.org References: <20011115130202.E33074@johncoop.MSHOME> <200111161042.fAGAg8V55897@zaphod.euronet.nl> <20011116084005.A40560@johncoop.MSHOME> In-Reply-To: <20011116084005.A40560@johncoop.MSHOME> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John and all, I'm setting up a web page which contains the complete proposal (work in progress!) see: * http://www.metaverse.nl/~ernst/freebsd-java-proposal-20011116.html > My thought here is that a "black box" application, where the user could > care less if it's Java(tm) under the hood, is a very good candidate for > a JRE, but the nature of development tools is that they need a JDK > (debugging sucks without a debugger, etc.) Agreed, development tools need the JDK, but we are not going to set up a system for just Java-based development tools, but a generic system for all Java applications, *including* development tools. The focus should be on a clean generic system for Java-based programs. Suggestion: First phase will just be applications, and it should cover the most common needs. It should separate all current Java-based applications from the actual JDK used. Second (or later) phase will then look at requirements for libraries and at more specific needs, like a Linux JDK instead of a FreeBSD JDK. IMHO support for this feature should be delayed so we can discuss it a bit more first, and it's not necessary to cover 90% of the applications. > In my experience (yours may be different), the dividing line for most > apps is whether they work better (or at all) with a Java or Java2 > JRE/JDK. I've yet to find an app/tool that whines too much about the > many variations of Java2 (1.2.x and up), but many are unhappy with > first generation Java (1.1.8 and before)--and vice versa. Hence, > following IBM's breakdown--call one set JAVA11 and the other set > JAVA2. Getting more fine-grained than necessary leads back to the > current situation--where I effectively have ALL the JDK's installed. > In reality, two should cover most of the known world. People who > simply must have every JDK can still install them. :) Well, this is just a matter of time. I already know tools that are explicitly demanding Java 1.3, at least on FreeBSD. An example is BugSeeker from Karmira(java/bugseeker and java/bugseeker-demo). Again, I would like to set this system up to be generic, I don't want to introduce quirks. *If* we are going to want to distinguish between 1.2, 1.3, 1.4, 1.5, 2.0 etc in the future, then we should set the system up so that it will be able to deal with it when this is reality. > My thought here is that a single JDK versus JRE switch can be used to > influence the version selection mechanism--and avoid proliferating > switches unnecessarily. Yeah, sounds good to me. I modified my proposal for this. > > > WANT_LINUX_JAVA=[yes|no] > > > same as above except Linux version Java's > > > are used and USE_JAVA11 will abort build. > > > > I suggest not introducing this flag in the first phase. We can discuss > > it's > > usefullness later. > > I can definitely understand why! But, practically, a user who wants > Java(tm) only/mostly for her favorite Linux application--Star Office is > an example--wants a JRE/JDK that works (I can almost get Star Office to > do Java with a Linux JDK--no dice (probably because there's no emulator > support) for a native JDK). Of course, the solution is native versions > of BOTH the JDK/JRE and the application. At the glacial rate this is > happening with Sun, some of us may need to chain themselves to the > front doors of their main office and chant "Free BSD" until the > powers-that-be allow native binaries . . . (rant off--sorry) Are there any examples of programs in the tree that explicitly demand a Linux JDK because they cannot work with a FreeBSD JDK? I don't think so, and I hope not, either. I still doubt the importance of this feature for now. > > > JAVA_VER reports Java(tm) detected or built by > > > USE_JAVA* > > > > Hmm, what *exactly* would you like this variable to return as its > > value? > > CLASSPATH and/or environment variable construction for an install-user > script on the Makefiles. For example, a whole host of environment > variables need to be correctly set for my NetRexx port to function. If > they're not set correctly, the port acts like it is broken. But unless > I get really tyrannical (YOU user SHALL have the following ports > installed and NO OTHERS . . .) it's not practical to construct such a > script. NetRexx will run with ANY of the JDK's. But which one to > setup? That is the problem. If I know: 1) whether or not it is linux > based on the WANT_LINUX_JAVA flag; and 2) what JAVA_VER it is (1.1.8, > 1.2.2, etc.), I can construct the necessary environment variables. In > fact, for Java2 (if I know Java2 is the target), I can install my JAR > file in the EXT portion of the JDK tree and eliminate setting/changing > the CLASSPATH (same also with JGNAT). But I don't know, so I can't. Yeah, I was keeping this in mind. See my proposal. -- Ernst zNerd@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 8:15:52 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id E5D2E37B418 for ; Mon, 19 Nov 2001 08:15:50 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 165r6o-000EZy-00 for java@freebsd.org; Mon, 19 Nov 2001 16:17:22 +0000 Date: Mon, 19 Nov 2001 16:17:22 +0000 From: Rasputin To: java@freebsd.org Subject: Re: tomcat port Message-ID: <20011119161722.A56021@shikima.mine.nu> Reply-To: Rasputin References: <20011112165306.H67713-100000@mail.wlcg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011112165306.H67713-100000@mail.wlcg.com>; from rsimmons@wlcg.com on Mon, Nov 12, 2001 at 04:53:59PM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Rob Simmons [011117 13:30]: > Is there a specific reason why the tomcat port's run dependency jdk has > not been updated to jdk13? If it doesn't need 1.3 features, I think it's right that it uses the simplest one it can 'get by' with. make install clean JAVADIR=/usr/local/jdk1.3 seemed to work Ok though? -- Imagination is the one weapon in the war against reality. -- Jules de Gaultier Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 8:30:59 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id 4E2BE37B419 for ; Mon, 19 Nov 2001 08:30:44 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 165rLE-000EbF-00 for java@freebsd.org; Mon, 19 Nov 2001 16:32:16 +0000 Date: Mon, 19 Nov 2001 16:32:16 +0000 From: Rasputin To: java@freebsd.org Subject: Re: A Modest Proposal for Java(tm) dependency selection among ports Message-ID: <20011119163216.B56021@shikima.mine.nu> Reply-To: Rasputin References: <20011115130202.E33074@johncoop.MSHOME> <200111161042.fAGAg8V55897@zaphod.euronet.nl> <20011116084005.A40560@johncoop.MSHOME> <200111191317.fAJDHRi12634@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111191317.fAJDHRi12634@zaphod.euronet.nl>; from znerd@freebsd.org on Mon, Nov 19, 2001 at 02:17:27PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sorry to jump in after the fact ,but I wondered if there was a specific problem with JAVA_VER - this would tie in nicely with things like XFREE86_VERSION and OS_VERSION, etc, and could be compared against in the same way that many ports use OS_VERSION (i.e. numerically > ) In any case, I think make.conf would be suitable to hold relevant variables (once we decide what they are). If an app needs a specific version of a JRE/JDK surely it can just have a RUN_DEPENDS clause that points to an absolute path e.g. (syntax may be wrong but you get the idea) RUN_DEPENDS= ${LOCALBASE}/linux-jdk1.3.1/bin/java:${PORTDIR}/java/linux-jdk1.3.1 Although I've no idea how to handle an app that runs on multiple JVMS; perhaps we should check each in order of preference, and use the first that fits? Also most ports seem to use JAVADIR or JAVA_HOME - the two seem fairly interchangable so perhaps they could be merged in here as well?? A lot of ports seem to use dependencies specific to whoever wrote the port, so this is a mess worth fixing - roll on bsd.java.mk :) -- Anyone who goes to a psychiatrist ought to have his head examined. -- Samuel Goldwyn Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 8:40: 5 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 2AF5D37B416 for ; Mon, 19 Nov 2001 08:39:59 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAJGdro13223; Mon, 19 Nov 2001 17:39:53 +0100 (CET) (envelope-from ernst) Message-Id: <200111191639.fAJGdro13223@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Rasputin , java@freebsd.org Subject: Re: A Modest Proposal for Java(tm) dependency selection among ports Date: Mon, 19 Nov 2001 17:39:53 +0100 X-Mailer: KMail [version 1.3] References: <20011115130202.E33074@johncoop.MSHOME> <200111191317.fAJDHRi12634@zaphod.euronet.nl> <20011119163216.B56021@shikima.mine.nu> In-Reply-To: <20011119163216.B56021@shikima.mine.nu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rasputin and all, > Sorry to jump in after the fact ,but I wondered if there > was a specific problem with JAVA_VER > > - this would tie in nicely with things like > > XFREE86_VERSION and OS_VERSION, etc, > and could be compared against in the same way that > many ports use OS_VERSION (i.e. numerically > ) Sounds reasonable. I was trying to keep things simple, dividing the Java version number into minor/medior/major, but you're right, this functionality is already available, so why not use it. Okay, then I suggest using "JAVA_VERSION" instead of "JAVA_VER" to keep in sync with "XFREE86_VERSION" and "OS_VERSION". I will update the proposal. > In any case, I think make.conf would be suitable to hold > relevant variables (once we decide what they are). Sounds reasonable. Will think this over. > If an app needs a specific version of a JRE/JDK surely it can > just have a RUN_DEPENDS clause that points to an absolute path This is always possible, perhaps we can improve this as well. > Also most ports seem to use JAVADIR or JAVA_HOME - > the two seem fairly interchangable so perhaps they could be merged in here > as well?? We should choose the name that covers the load best. Perhaps one or more out of these: JAVA_HOME JDK_HOME JRE_HOME > A lot of ports seem to use dependencies specific to whoever > wrote the port, so this is a mess worth fixing - roll on bsd.java.mk :) /me hi5s rasputin Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 9:22: 1 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id 732AC37B405 for ; Mon, 19 Nov 2001 09:21:58 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 165s8a-000EfS-00; Mon, 19 Nov 2001 17:23:16 +0000 Date: Mon, 19 Nov 2001 17:23:16 +0000 From: Rasputin To: Rob Simmons Cc: java@freebsd.org Subject: Re: tomcat port Message-ID: <20011119172316.A56349@shikima.mine.nu> Reply-To: Rasputin References: <20011119161722.A56021@shikima.mine.nu> <20011119113239.U41811-100000@mail.wlcg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011119113239.U41811-100000@mail.wlcg.com>; from rsimmons@wlcg.com on Mon, Nov 19, 2001 at 11:34:17AM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Rob Simmons [011119 16:36]: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > If the applications that are being run with tomcat need jdk13, why install > two jdks if tomcat runs fine with 1.3.1? Ugh, this is another reason the JDK dependency mess needs sorting. I'm in the same boat as you - at present I have 3 JDKs installed, because I have plenty of disk space free. Doesn't overriding JAVADIR when you build tomcat get around this problem? STR I had to edit the first couple of lines in /usr/local/etc/rc.d/tomcat.sh as well... -- I am a PC technician - however, this has unfortunately caused my computer to be running Win98. -- seen on a FreeBSD mailing-list Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 10: 5:20 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id 1948337B417 for ; Mon, 19 Nov 2001 10:05:16 -0800 (PST) Received: (qmail 95904 invoked by uid 1001); 19 Nov 2001 18:06:27 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="NDJejMx8bV" Content-Transfer-Encoding: 7bit Message-ID: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> Date: Mon, 19 Nov 2001 10:06:26 -0800 To: freebsd-java@freebsd.org Subject: Plugin status -Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --NDJejMx8bV Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit I have been working on the plugin for Mozilla for a while, so I guess I should post my results and maybe someone can improve on them. The plugin compiles, with a few changes to the master Makefile in the port. I attach the diffs at the end of this message. Basically, the plugin needs to find glib12, gmodule12, gdk12, gtk12, and nspr4 libraries. The first four come from the glib12 and gtk12 ports, so I added LIB_DEPENDS to cover those. nspr4 is inthe mozilla port, so I added a dependency on mozilla to the port. I don't mind adding the glib and gtk dependencies, but the mozilla dependency seems like a stretch, especially for someone who doesn't want the plugin. Anyway, the plugin makefile cannot find the libraries directly, since it is looking for -lglib instead of -lglib12, so I added a pre-patch set to create a directory and place symbolic links to the actual libraries. Then, we can merely set the appropriate make environment variables, and the patch builds nicely. We can solve the nspr4/mozilla problem by including a copy of the i386 nspr4 library in j2sdk1.3.1/plugin/.oji-plugin/src/motif/lib/solaris/i386/libnspr4.so as part of the port. It's up to Greg. Also, there is a false comment about needing to build images before plugin on i386 in some makefile somewhere. This is just wrong. If you don't build the plugin before images, the plugin will not be included in the installed images. So, I changed the all target to "all plugin images" and everything seems to work. If you are interested in testing, have a look at j2sdk1.3.1/ext/plugin/oji-plugin/src/motif/Notes. This explains how to set up the plugin for debugging. You need to at least set the environment variable THREADS_FLAG=green before starting mozilla, or you will get nowhere. You can also set JAVA_PLUGIN_TRACE to enable the creation of plugin trace files in /tmp named plugin_parent131.trace and child_java_vm131.trace. My experiments show that the child runs up to the point of calling JNI_CreateJavaVM and dies somewhere in that function. Any furhter details require work with gdb. I hope this encourages others to help inthe debugging process. /Joe --NDJejMx8bV Content-Type: text/plain Content-Description: diff Content-Disposition: inline; filename="Makefile.diff" Content-Transfer-Encoding: 7bit --- Makefile.orig Tue Oct 16 05:43:07 2001 +++ Makefile Mon Nov 19 09:48:25 2001 @@ -19,7 +19,10 @@ zip:${PORTSDIR}/archivers/zip \ gtar:${PORTSDIR}/archivers/gtar \ ${JDK13DIR}/bin/javac:${PORTSDIR}/java/linux-jdk13 \ - ${X11BASE}/lib/libMrm.a:${PORTSDIR}/x11-toolkits/open-motif-devel + ${X11BASE}/lib/libMrm.a:${PORTSDIR}/x11-toolkits/open-motif-devel \ + mozilla:$(PORTSDIR)/www/mozilla +LIB_DEPENDS= glib12:$(PORTSDIR)/devel/glib12 \ + gtk12:$(PORTSDIR)/x11-toolkits/gtk12 RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper WRKSRC= ${WRKDIR}/j2sdk1.3.1/make @@ -38,8 +41,14 @@ SYS_CFLAGS="${CFLAGS}" \ CLASSPATH="" \ LD_LIBRARY_PATH="" \ - JAVA_COMPILER="" -ALL_TARGET= all images + JAVA_COMPILER="" \ + LIBG_HDRS=/usr/local/include/glib12 \ + GTK_HDRS=/usr/X11R6/include/gtk12 \ + LIBIDL_HDRS= \ + LIBG_LIB_DIR=${WRKDIR}/j2sdk1.3.1/ext/plugin/build/bsd \ + GTK_LIB_DIR=${WRKDIR}/j2sdk1.3.1/ext/plugin/build/bsd \ + LIBIDL_LIB_DIR=/usr/X11R6/lib/mozilla +ALL_TARGET= all plugin images TAR= gtar # Necessary for proper extraction of sources BSD_TAR= /usr/bin/tar PLIST_SUB+= JDK_VERSION=${JDK_VERSION} @@ -71,6 +80,11 @@ ${MKDIR} -p j2sdk1.3.1/ext/plugin/oji-plugin/include/bsd/jdk12 && \ ${MKDIR} -p j2sdk1.3.1/ext/plugin/oji-plugin/include/solaris/navig5/private && \ ${MKDIR} -p j2sdk1.3.1/src/bsd/doc/man && \ + ${MKDIR} -p j2sdk1.3.1/ext/plugin/build/bsd && \ + ln -s /usr/local/lib/libglib12.so j2sdk1.3.1/ext/plugin/build/bsd/libglib.so && \ + ln -s /usr/local/lib/libgmodule12.so j2sdk1.3.1/ext/plugin/build/bsd/libgmodule.so && \ + ln -s /usr/X11R6/lib/libgdk12.so j2sdk1.3.1/ext/plugin/build/bsd/libgdk.so && \ + ln -s /usr/X11R6/lib/libgtk12.so j2sdk1.3.1/ext/plugin/build/bsd/libgtk.so && \ ${PATCH} < ${WRKDIR}/jdk131.patches .if !defined(NODEBUG) --NDJejMx8bV-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 10:11: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from smtp.bmi.net (smtp.bmi.net [204.57.191.31]) by hub.freebsd.org (Postfix) with ESMTP id F1B9E37B405; Mon, 19 Nov 2001 10:10:44 -0800 (PST) Received: from johncoop.MSHOME (drumheller-router.bmi.net [206.63.201.3] (may be forged)) by smtp.bmi.net (Pro-8.9.3/Pro-8.9.3) with ESMTP id SAA05275; Mon, 19 Nov 2001 18:18:19 -0800 Date: Mon, 19 Nov 2001 10:10:36 -0800 From: John Merryweather Cooper To: Ernst de Haan Cc: freebsd-java@freebsd.org, freebsd-ports@freebsd.org Subject: Re: A Modest Proposal for Java(tm) dependency selection among ports Message-ID: <20011119101036.A91514@johncoop.MSHOME> Disposition-Notification-To: John Merryweather Cooper References: <20011115130202.E33074@johncoop.MSHOME> <200111161042.fAGAg8V55897@zaphod.euronet.nl> <20011116084005.A40560@johncoop.MSHOME> <200111191317.fAJDHRi12634@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <200111191317.fAJDHRi12634@zaphod.euronet.nl>; from znerd@freebsd.org on Mon, Nov 19, 2001 at 05:17:27 -0800 X-Mailer: Balsa 1.2.3 Lines: 198 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 2001.11.19 05:17 Ernst de Haan wrote: > John and all, > > > I'm setting up a web page which contains the complete proposal (work > in > progress!) see: > > * http://www.metaverse.nl/~ernst/freebsd-java-proposal-20011116.html > Looks good . . . a big step in the right direction. > > My thought here is that a "black box" application, where the user > could > > care less if it's Java(tm) under the hood, is a very good candidate > for > > a JRE, but the nature of development tools is that they need a JDK > > (debugging sucks without a debugger, etc.) > > Agreed, development tools need the JDK, but we are not going to set up > a > system for just Java-based development tools, but a generic system for > all > Java applications, *including* development tools. The focus should be > on a > clean generic system for Java-based programs. > Precisely, the build environment should accomodate both applications and development tools. Hence, the JRE/JDK knob . . . > Suggestion: First phase will just be applications, and it should cover > the > most common needs. It should separate all current Java-based > applications > from the actual JDK used. Second (or later) phase will then look at > requirements for libraries and at more specific needs, like a Linux > JDK > instead of a FreeBSD JDK. IMHO support for this feature should be > delayed so > we can discuss it a bit more first, and it's not necessary to cover > 90% of > the applications. > Actually, some of us will be interested in development tools, and some of us will be interested in applications. A quick review of freebsd-java (and in particular, the effort going into a native 1.3.1) should indicate that there are plenty of us interested in development tools. And the same can be said for appliations porting too. Phase one should be getting a working bsd.java.mk. Phase two should be getting ALL ports in the tree (or coming in) to use the build environment extentions. Phase three should be to port like crazy to get the desirable development tools and applications into the tree. :) Phase two comes first so we can work the kinks out (there'll be some). Of course, all of these phases can pretty much occur in parallel except the first one. We need to be "born" first. > > In my experience (yours may be different), the dividing line for > most > > apps is whether they work better (or at all) with a Java or Java2 > > JRE/JDK. I've yet to find an app/tool that whines too much about > the > > many variations of Java2 (1.2.x and up), but many are unhappy with > > first generation Java (1.1.8 and before)--and vice versa. Hence, > > following IBM's breakdown--call one set JAVA11 and the other set > > JAVA2. Getting more fine-grained than necessary leads back to the > > current situation--where I effectively have ALL the JDK's installed. > > In reality, two should cover most of the known world. People who > > simply must have every JDK can still install them. :) > > Well, this is just a matter of time. I already know tools that are > explicitly > demanding Java 1.3, at least on FreeBSD. An example is BugSeeker from > Karmira(java/bugseeker and java/bugseeker-demo). Again, I would like > to set > this system up to be generic, I don't want to introduce quirks. *If* > we are > going to want to distinguish between 1.2, 1.3, 1.4, 1.5, 2.0 etc in > the > future, then we should set the system up so that it will be able to > deal with > it when this is reality. > A better way to handle this, IMHO, would be for the JAVA_VER[SION] switch to perform double duty. It would work like this: JAVA_VER would, by default be set to "" entering into the JDK/JRE selection logic. This allows automagical selection of the appropriate version. However, JAVA_VER[SION] could also be manually set to select a specific version. > > My thought here is that a single JDK versus JRE switch can be used > to > > influence the version selection mechanism--and avoid proliferating > > switches unnecessarily. > > Yeah, sounds good to me. I modified my proposal for this. > > > > > WANT_LINUX_JAVA=[yes|no] > > > > same as above except Linux version > Java's > > > > are used and USE_JAVA11 will abort > build. > > > > > > I suggest not introducing this flag in the first phase. We can > discuss > > > it's > > > usefullness later. > > > > I can definitely understand why! But, practically, a user who wants > > Java(tm) only/mostly for her favorite Linux application--Star Office > is > > an example--wants a JRE/JDK that works (I can almost get Star Office > to > > do Java with a Linux JDK--no dice (probably because there's no > emulator > > support) for a native JDK). Of course, the solution is native > versions > > of BOTH the JDK/JRE and the application. At the glacial rate this > is > > happening with Sun, some of us may need to chain themselves to the > > front doors of their main office and chant "Free BSD" until the > > powers-that-be allow native binaries . . . (rant off--sorry) > > Are there any examples of programs in the tree that explicitly demand > a Linux > JDK because they cannot work with a FreeBSD JDK? I don't think so, and > I hope > not, either. I still doubt the importance of this feature for now. > The one I've run into is StarOffice. Probably, these apps will all be LINUX apps themselves. Probably too, they will attempt to interface to the JDK/JRE in a non-standard way (through a plugin, direct linkage to shared libraries, etc.) > > > > JAVA_VER reports Java(tm) detected or built by > > > > USE_JAVA* > > > > > > Hmm, what *exactly* would you like this variable to return as its > > > value? > > > > CLASSPATH and/or environment variable construction for an > install-user > > script on the Makefiles. For example, a whole host of environment > > variables need to be correctly set for my NetRexx port to function. > If > > they're not set correctly, the port acts like it is broken. But > unless > > I get really tyrannical (YOU user SHALL have the following ports > > installed and NO OTHERS . . .) it's not practical to construct such > a > > script. NetRexx will run with ANY of the JDK's. But which one to > > setup? That is the problem. If I know: 1) whether or not it is > linux > > based on the WANT_LINUX_JAVA flag; and 2) what JAVA_VER it is > (1.1.8, > > 1.2.2, etc.), I can construct the necessary environment variables. > In > > fact, for Java2 (if I know Java2 is the target), I can install my > JAR > > file in the EXT portion of the JDK tree and eliminate > setting/changing > > the CLASSPATH (same also with JGNAT). But I don't know, so I can't. > > Yeah, I was keeping this in mind. See my proposal. > One final thought, although the logic to influence preference for native/auto-built JDK/JRE's is wonderful in theory, in practice it locks us into JDK 1.1.8. Sun won't let us build a Java2 binary for distribution at present--and that is a painful practical reality. We should not discriminate against manual builds until such time as we have at least one "full-citizen" native Java2 in the tree capable of binary distribution and/or automatic build. > -- > Ernst > zNerd@freebsd.org > We need some implementation pro-types so we can "play" with the challenges. -- jmc || MacroHard -- \ || the perfection of form over | ----------------------------------|| substance, marketing over | Web: http://www.borgsdemons.com || performance, and greed over | || design . . . | =======================================================================/ Public Key: http://www.borgsdemons.com/Personal/pgpkey.asc | =======================================================================\ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 11:31:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id 8C99037B416 for ; Mon, 19 Nov 2001 11:31:55 -0800 (PST) Received: from billh by gnuppy.monkey.org with local (Exim 3.32 #1 (Debian)) id 165u93-00025J-00; Mon, 19 Nov 2001 11:31:53 -0800 Date: Mon, 19 Nov 2001 11:31:53 -0800 To: Joe Kelsey Cc: freebsd-java@freebsd.org Subject: Re: Plugin status Message-ID: <20011119113153.B7857@gnuppy> References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> User-Agent: Mutt/1.3.23i From: Bill Huey Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 19, 2001 at 10:06:26AM -0800, Joe Kelsey wrote: > We can solve the nspr4/mozilla problem by including a copy of the i386 > nspr4 library in > j2sdk1.3.1/plugin/.oji-plugin/src/motif/lib/solaris/i386/libnspr4.so as > part of the port. It's up to Greg. What is that library ? a pthreads abstraction layer ? I wasn't sure that the plugin worked with anything other than native threading. Any quick pointers to the sources for it off hand so that I can look how it would interact with the JVM's threading systems (native, green) ? Thanks bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 11:32:40 2001 Delivered-To: freebsd-java@freebsd.org Received: from zcars0m9.nortelnetworks.com (zcars0m9.nortelnetworks.com [47.129.242.157]) by hub.freebsd.org (Postfix) with ESMTP id F151437B405 for ; Mon, 19 Nov 2001 11:32:37 -0800 (PST) Received: from zcars04f.ca.nortel.com (zcars04f.ca.nortel.com [47.129.242.57]) by zcars0m9.nortelnetworks.com (8.11.0/8.11.0) with ESMTP id fAJJVpS23686 for ; Mon, 19 Nov 2001 14:31:51 -0500 (EST) Received: from zcard00m.ca.nortel.com by zcars04f.ca.nortel.com; Mon, 19 Nov 2001 14:32:09 -0500 Received: from zcard0ka.ca.nortel.com ([47.129.242.162]) by zcard00m.ca.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id W99NMD9K; Mon, 19 Nov 2001 14:31:11 -0500 Received: from hcarp00g (hcarp00g.ca.nortel.com [47.196.31.114]) by zcard0ka.ca.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PX30TK3V; Mon, 19 Nov 2001 14:31:11 -0500 Date: Mon, 19 Nov 2001 14:33:53 -0500 (EST) X-Sybari-Space: 00000000 00000000 00000000 From: "Andrew Atrens" X-X-Sender: atrens@hcarp00g.ca.nortel.com To: Ari Suutari Cc: "Koster, K.J." , java Subject: Re: Small prog to demonstrate linux-jdk1.3.x signal handling prob lem. In-Reply-To: <200111190723.JAA69134@espresso.syncrontech.com> Message-ID: <20011119142158.L7711-100000@hcarp00g.ca.nortel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Orig: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 18 Nov 2001, Ari Suutari wrote: > > Sorry, maybe I was giving to strong opinion on this. > It is mostly because I have been trying to get Apache JServ (or Tomcat) > to run with linux jdk and it definitively does not work with > hotspot enabled (and without it things are too slow for production > environment). These problems resulted in having to switch a couple > of servers from FreeBSD to Linux - a switch that I really hated to do. I'm in a similar situation, except that in our (my) case the java prog. is part of a product loadbuild environment. Though it's quicker on FreeBSD, it runs reliably on Linux. > that can be used to crash to Linux vm under linuxlator, maybe > this could be discussed on freebsd-emulation or -current mailing My gut feeling is that it's a race condition - sometimes the signal handler gets registered in time to catch the exception, sometimes it does not. Though since I know very little about the linux threads model and more importantly, how it's implemented in the Linuxulator, I can only speculate. Anyone out there an expert on this ? :) :) > list ? Or is this something like a large piece of stuff missing from > linuxlator that will take ages to fix (hopefully not) ? That's an excellent question :) > > Ari S. > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 12:14:43 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id 3105937B416 for ; Mon, 19 Nov 2001 12:14:41 -0800 (PST) Received: (qmail 96259 invoked by uid 1001); 19 Nov 2001 20:15:56 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15353.26748.393858.772996@zircon.zircon.seattle.wa.us> Date: Mon, 19 Nov 2001 12:15:56 -0800 To: Bill Huey , freebsd-java@freebsd.org Subject: Re: Plugin status In-Reply-To: <20011119113153.B7857@gnuppy> References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> <20011119113153.B7857@gnuppy> X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bill Huey writes: > On Mon, Nov 19, 2001 at 10:06:26AM -0800, Joe Kelsey wrote: > > We can solve the nspr4/mozilla problem by including a copy of the i386 > > nspr4 library in > > j2sdk1.3.1/plugin/.oji-plugin/src/motif/lib/solaris/i386/libnspr4.so as > > part of the port. It's up to Greg. > What is that library ? a pthreads abstraction layer ? nspr=NetScape mumble, mumble...essentially the netscape standard calling sequences... > I wasn't sure that the plugin worked with anything other than native > threading. Any quick pointers to the sources for it off hand so that I > can look how it would interact with the JVM's threading systems > (native, green) ? The plugin itself has nothing to do with threading model. libjavaplugin_oji.so is merely a method of creating a child process (fork) with several pipes open to the Mozilla parent for passing requests back and forth. The parent (Mozilla) does not actually include a jvm in it's address space. The child process is essentially the executable java_vm using whatever threading model is specified by the environment variables (THREADS_FLAG in the parent is transformed into THREADS_TYPE for the child). It should make no difference what thread model is used in the child, as the only thing plugin-related is entirely contained in j2sdk1.3.1/ext/plugin/oji-plugin/src/motif/jvm_{exec,natives}/*, which are used to build the executable java_vm, which is installed in the jre lib hierarchy. If you look at j2sdk1.3.1/ext/plugin/oji-plugin/src/motif/jvm_exec/java_vm.c, you will see where the plugin fails in its current state. This is a very simple file and only sets up the environment for the jvm to run in. According to my traces, it gets as far as printing the JNI_VERSION and calls the function JNI_CreateJavaVM, but somehow fails during that function, killing both the child and parent mozilla processes. As far as I know, there is nothing controversial about the trace or the processing. It is entirely possible that I am missing something. I believe that the JNI_CreateJavaVM function is in libjvm.so, a standard library. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 13:11:15 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id 7744137B405 for ; Mon, 19 Nov 2001 13:11:14 -0800 (PST) Received: (qmail 96392 invoked by uid 1001); 19 Nov 2001 21:12:29 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15353.30141.369706.979480@zircon.zircon.seattle.wa.us> Date: Mon, 19 Nov 2001 13:12:29 -0800 To: freebsd-java@freebsd.org Subject: Plugin status In-Reply-To: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Just a note about installing the plugin. Simply move or symlink /usr/local/jdk1.3.1/jre/lib/i386/ns600/libjavaplugin_oji.so into /usr/X11R6/lib/mozilla/plugins/. There are some really confusing javascript install files in the plugin source directories that really have nothing to do with the new plugin. All you really have to do is make the shared library available for mozilla to load. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 13:32:16 2001 Delivered-To: freebsd-java@freebsd.org Received: from ash25.adelaide.on.net (mail.internode.on.net [203.16.214.248]) by hub.freebsd.org (Postfix) with ESMTP id A9CA237B405 for ; Mon, 19 Nov 2001 13:32:11 -0800 (PST) Received: from vee.net ([203.18.245.2]) by internode.on.net (PMDF V6.0-24 #37831) with ESMTP id <01KAX4F0XLR0003VYX@internode.on.net> for freebsd-java@FreeBSD.ORG; Tue, 20 Nov 2001 07:59:07 +1030 Date: Tue, 20 Nov 2001 07:58:06 +1030 From: Mike Gratton Subject: Re: Plugin status To: freebsd-java@FreeBSD.ORG Cc: Joe Kelsey Message-id: <3BF97966.60506@vee.net> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-au, en-gb, en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011117 References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> <20011119113153.B7857@gnuppy> <15353.26748.393858.772996@zircon.zircon.seattle.wa.us> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Joe Kelsey wrote: > Bill Huey writes: > > On Mon, Nov 19, 2001 at 10:06:26AM -0800, Joe Kelsey wrote: > > > We can solve the nspr4/mozilla problem by including a copy of the i386 > > > nspr4 library in > > > j2sdk1.3.1/plugin/.oji-plugin/src/motif/lib/solaris/i386/libnspr4.so as > > > part of the port. It's up to Greg. > > What is that library ? a pthreads abstraction layer ? > > nspr=NetScape mumble, mumble...essentially the netscape standard calling > sequences... > Close. 8) It's the NetScape Portable Runtime - it is effectively an OS abstraction layer; it provides thrading, file and network IO, memory management, etc. More detail here: I don't see why it would need to be distributed with the JDK, however. I can't see it being a build-depends and given it is a run-depends for Mozilla, there's already a copy on the system that you're trying to use it on. Mike. -- Mike Gratton "Every motive escalate." Blatant self-promotion: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 13:49:39 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id 78BDE37B405 for ; Mon, 19 Nov 2001 13:49:36 -0800 (PST) Received: (qmail 96625 invoked by uid 1001); 19 Nov 2001 21:50:51 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15353.32442.930969.635380@zircon.zircon.seattle.wa.us> Date: Mon, 19 Nov 2001 13:50:50 -0800 To: freebsd-java@FreeBSD.ORG Subject: Re: Plugin status In-Reply-To: <3BF97966.60506@vee.net> References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> <20011119113153.B7857@gnuppy> <15353.26748.393858.772996@zircon.zircon.seattle.wa.us> <3BF97966.60506@vee.net> X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Mike Gratton writes: > Joe Kelsey wrote: > > nspr=NetScape mumble, mumble...essentially the netscape standard calling > > sequences... > Close. 8) > > It's the NetScape Portable Runtime - it is effectively an OS abstraction > layer; it provides thrading, file and network IO, memory management, > etc. More detail here: Thanks for the info. I can never remember what the pr stands for... > I don't see why it would need to be distributed with the JDK, however. I > can't see it being a build-depends and given it is a run-depends for > Mozilla, there's already a copy on the system that you're trying to use > it on. It is not used for the JDK! It is used for the plugin to mozilla! All plugins have to use nspr to communicate with the browser! The problem with leaving the RUN_DEPENDS on mozilla is that people who are interested in Java may not necessarily have mozilla installed. -lnspr4 is only used to create the OJI version of the plugin, which depends on Netscape 6.x or Mozilla whatever. My point about shipping libnspr4.so as part of the port is that Sun ships various binary objects as part of the JDK for building on Solaris/sparc. You can find the glib, gmodule, gdk and gtk libraries in ext/plugin/build/solaris/, for instance, and the various nsprblah libraries in ext/plugin/oji-plugin/motif/solaris/sparc/. In order to separate us from the hugeness that is mozilla, we can either depend on mozilla-embedded to get a slightly smaller dependency or else simply include libnspr4.so in the port directly. Is it clearer now? /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 14:16:34 2001 Delivered-To: freebsd-java@freebsd.org Received: from ash25.adelaide.on.net (mail.internode.on.net [203.16.214.248]) by hub.freebsd.org (Postfix) with ESMTP id 0957F37B41C for ; Mon, 19 Nov 2001 14:16:28 -0800 (PST) Received: from vee.net ([203.18.245.2]) by internode.on.net (PMDF V6.0-24 #37831) with ESMTP id <01KAX5UXL6DG0034CB@internode.on.net> for freebsd-java@FreeBSD.ORG; Tue, 20 Nov 2001 08:40:59 +1030 Date: Tue, 20 Nov 2001 08:39:57 +1030 From: Mike Gratton Subject: Re: Plugin status To: Joe Kelsey Cc: freebsd-java@FreeBSD.ORG Message-id: <3BF98335.6080101@vee.net> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-au, en-gb, en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011117 References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> <20011119113153.B7857@gnuppy> <15353.26748.393858.772996@zircon.zircon.seattle.wa.us> <3BF97966.60506@vee.net> <15353.32442.930969.635380@zircon.zircon.seattle.wa.us> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Joe Kelsey wrote: > > It is not used for the JDK! It is used for the plugin to mozilla! All > plugins have to use nspr to communicate with the browser! > Right, but the JDK comes with the JRE which comes with the plugin. I guess I could have been more specific. > The problem with leaving the RUN_DEPENDS on mozilla is that people who > are interested in Java may not necessarily have mozilla installed. > -lnspr4 is only used to create the OJI version of the plugin, which > depends on Netscape 6.x or Mozilla whatever. Ahh, gotcha. I was assimung that the OJI was some sort of standard interface (albeit one developed by Mozilla) that Sun was using for interfacing to the Java plugin for all browsers, not just Mozilla. Still, if you don't have Moz installed then you probably aren't interested in building the OJI version of the plugin, so you wouldn't need NSPR included anyway. > In order to > separate us from the hugeness that is mozilla, we can either depend on > mozilla-embedded to get a slightly smaller dependency or else simply > include libnspr4.so in the port directly. Or just not build the plugin if Moz isn't already installed. Personally, I don't think either way is a problem. Mike. -- Mike Gratton "Every motive escalate." Blatant self-promotion: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 15:19: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from dront.dyn.dhs.org (h199n2fls20o901.telia.com [217.208.225.199]) by hub.freebsd.org (Postfix) with ESMTP id 47EDF37B416 for ; Mon, 19 Nov 2001 15:19:02 -0800 (PST) Received: by dront.dyn.dhs.org (Postfix, from userid 1000) id 022FC9B76; Tue, 20 Nov 2001 00:18:59 +0100 (CET) To: Joe Kelsey Cc: freebsd-java@FreeBSD.ORG Subject: Re: Plugin status References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> <20011119113153.B7857@gnuppy> <15353.26748.393858.772996@zircon.zircon.seattle.wa.us> <3BF97966.60506@vee.net> <15353.32442.930969.635380@zircon.zircon.seattle.wa.us> From: Markus Holmberg Date: 20 Nov 2001 00:18:59 +0100 In-Reply-To: <15353.32442.930969.635380@zircon.zircon.seattle.wa.us> Message-ID: <87y9l2z6vw.fsf@localhost.dyn.dhs.org> Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Joe Kelsey writes: > The problem with leaving the RUN_DEPENDS on mozilla is that people who > are interested in Java may not necessarily have mozilla installed. > -lnspr4 is only used to create the OJI version of the plugin, which > depends on Netscape 6.x or Mozilla whatever. There's always the option to use a make variable specified on the command line when building the port to activate optional features (like WITH_FOOBAR). Markus -- Markus Holmberg markush@acc.umu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 20: 3:24 2001 Delivered-To: freebsd-java@freebsd.org Received: from mta6.srv.hcvlny.cv.net (mta6.srv.hcvlny.cv.net [167.206.5.17]) by hub.freebsd.org (Postfix) with ESMTP id C530F37B405 for ; Mon, 19 Nov 2001 20:03:22 -0800 (PST) Received: from neurotic.dyndns.org (ool-18b8ed02.dyn.optonline.net [24.184.237.2]) by mta6.srv.hcvlny.cv.net (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GN200G1MZ9M1R@mta6.srv.hcvlny.cv.net> for freebsd-java@FreeBSD.ORG; Mon, 19 Nov 2001 23:03:22 -0500 (EST) Date: Mon, 19 Nov 2001 23:05:03 -0500 From: mel bessaha Subject: JDK 1.3 and JHTTP Servlet Engines To: freebsd-java@FreeBSD.ORG Message-id: <3BF9D66F.3060306@neurotic.dyndns.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello all, I was wondering which *native* JDKs most of you are referring to when discussing compiling JDKs or adding JDK packages. Is it IBM's Linux 1.3, which is located in the /ports/www of the latest freebsd release? Or is it Ibm's 1.3.1 which is also run in linux emulation? Must linux emulation be on in order to make any of these JDKs work? Finally, which servlet engines are most of you running? Ive heard bad things about Tomcat with regard to speed and over all stability. Some have suggested Jetty or GNUjsp for jsp/beans work. Ive read that Orion Application Server is also a good alternative to tomcat. Which is more efficient and speedy? Thanks in advance for the responses! -Mel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 21:32: 3 2001 Delivered-To: freebsd-java@freebsd.org Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by hub.freebsd.org (Postfix) with ESMTP id BEADE37B41C for ; Mon, 19 Nov 2001 21:31:59 -0800 (PST) Received: from [166.70.6.9] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.22 #1) id 1663Vl-0006pV-00; Mon, 19 Nov 2001 22:31:58 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id fAK5VsP03578; Tue, 20 Nov 2001 16:01:54 +1030 (CST) (envelope-from glewis) Date: Tue, 20 Nov 2001 16:01:53 +1030 From: Greg Lewis To: Mark Evenson Cc: java@FreeBSD.ORG Subject: Re: jdk1.3.1 and JRE netscape/mozilla plugin Message-ID: <20011120160153.A3540@misty.eyesbeyond.com> References: <20011119043139.A98747@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from evenson@panix.com on Mon, Nov 19, 2001 at 07:49:41AM -0500 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 19, 2001 at 07:49:41AM -0500, Mark Evenson wrote: > Well, I made it to the point of mozilla reporting "failed to exec > 'java_vm'". I don't know how far I can get in debugging this at this point, > as my knowledge of how to debug mozilla is rather scanty, but I offer the > observation that the 'java_vm' executable gets placed into the > 'native_threads' section of the filepath where no other files seem to be > located. You don't need to debug mozilla. In fact, you don't even need to run Mozilla. You can get java_vm to crash just as handily running it from the command line, without having the rigmarole of mozilla invoking it :). > quid:~/src/jdk-1.3.1/j2sdk1.3.1/build/bsd-i386$ find . -name java_vm -print > ./bin/i386/native_threads/java_vm > ./jre-image-i386/bin/i386/native_threads/java_vm > ./jdk-image-i386/jre/bin/i386/native_threads/java_vm > ./jdk-image-i386/bin/i386/native_threads/java_vm > > That raise any flags to anybody? This is simply a hard coded path. I've got patches to put it in green_threads. I suspect its hard coded to native_threads as that is the default threading subsystem on Linux, Solaris and Windows. This isn't the problem though :). -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 765 1887 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 21:37:25 2001 Delivered-To: freebsd-java@freebsd.org Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by hub.freebsd.org (Postfix) with ESMTP id 2AE6C37B405 for ; Mon, 19 Nov 2001 21:37:22 -0800 (PST) Received: from [166.70.6.9] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.22 #1) id 1663ay-0007Oy-00; Mon, 19 Nov 2001 22:37:21 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id fAK5bGI03608; Tue, 20 Nov 2001 16:07:16 +1030 (CST) (envelope-from glewis) Date: Tue, 20 Nov 2001 16:07:16 +1030 From: Greg Lewis To: Joe Kelsey Cc: freebsd-java@FreeBSD.ORG Subject: Re: Plugin status Message-ID: <20011120160716.B3540@misty.eyesbeyond.com> References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us>; from joe@zircon.seattle.wa.us on Mon, Nov 19, 2001 at 10:06:26AM -0800 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 19, 2001 at 10:06:26AM -0800, Joe Kelsey wrote: Content-Description: message body text > I have been working on the plugin for Mozilla for a while, so I guess I > should post my results and maybe someone can improve on them. > > The plugin compiles, with a few changes to the master Makefile in the > port. I attach the diffs at the end of this message. Basically, the > plugin needs to find glib12, gmodule12, gdk12, gtk12, and nspr4 > libraries. The first four come from the glib12 and gtk12 ports, so I > added LIB_DEPENDS to cover those. nspr4 is inthe mozilla port, so I > added a dependency on mozilla to the port. I don't mind adding the glib > and gtk dependencies, but the mozilla dependency seems like a stretch, > especially for someone who doesn't want the plugin. NSPR is distributed separately from Mozilla, I'm working on a port of it that I'll submit. Its taken me longer than I thought unfortunately :(. > Anyway, the plugin makefile cannot find the libraries directly, since it > is looking for -lglib instead of -lglib12, so I added a pre-patch set to > create a directory and place symbolic links to the actual libraries. > Then, we can merely set the appropriate make environment variables, and > the patch builds nicely. > > We can solve the nspr4/mozilla problem by including a copy of the i386 > nspr4 library in > j2sdk1.3.1/plugin/.oji-plugin/src/motif/lib/solaris/i386/libnspr4.so as > part of the port. It's up to Greg. I'd prefer having a simple port of NSPR as stated above :). No dependency on Mozilla (its way too big) and no cluttering the JDK with mysterious libraries ;). > Also, there is a false comment about needing to build images before > plugin on i386 in some makefile somewhere. This is just wrong. If you > don't build the plugin before images, the plugin will not be included in > the installed images. So, I changed the all target to "all plugin > images" and everything seems to work. Agreed, this comment is bogus. > If you are interested in testing, have a look at > j2sdk1.3.1/ext/plugin/oji-plugin/src/motif/Notes. This explains how to > set up the plugin for debugging. You need to at least set the > environment variable THREADS_FLAG=green before starting mozilla, or you > will get nowhere. You can also set JAVA_PLUGIN_TRACE to enable the > creation of plugin trace files in /tmp named plugin_parent131.trace and > child_java_vm131.trace. My experiments show that the child runs up to > the point of calling JNI_CreateJavaVM and dies somewhere in that > function. Any furhter details require work with gdb. > > I hope this encourages others to help inthe debugging process. Unfortunately I've been unable to get a decent trace out of java_vm with gdb :(. It might need some hand inserted trace statements. On the surface it looks like its dying in a call to strlen(). Thanks for working on this Joe! -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 765 1887 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 21:40:38 2001 Delivered-To: freebsd-java@freebsd.org Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by hub.freebsd.org (Postfix) with ESMTP id 06D9F37B417 for ; Mon, 19 Nov 2001 21:40:36 -0800 (PST) Received: from [166.70.6.9] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.22 #1) id 1663e6-0007fo-00; Mon, 19 Nov 2001 22:40:35 -0700 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.6/8.11.6) id fAK5eV003625; Tue, 20 Nov 2001 16:10:31 +1030 (CST) (envelope-from glewis) Date: Tue, 20 Nov 2001 16:10:30 +1030 From: Greg Lewis To: Mike Gratton Cc: Joe Kelsey , freebsd-java@FreeBSD.ORG Subject: Re: Plugin status Message-ID: <20011120161030.C3540@misty.eyesbeyond.com> References: <15353.18978.717379.778079@zircon.zircon.seattle.wa.us> <20011119113153.B7857@gnuppy> <15353.26748.393858.772996@zircon.zircon.seattle.wa.us> <3BF97966.60506@vee.net> <15353.32442.930969.635380@zircon.zircon.seattle.wa.us> <3BF98335.6080101@vee.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BF98335.6080101@vee.net>; from mike@vee.net on Tue, Nov 20, 2001 at 08:39:57AM +1030 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Nov 20, 2001 at 08:39:57AM +1030, Mike Gratton wrote: > Ahh, gotcha. I was assimung that the OJI was some sort of standard > interface (albeit one developed by Mozilla) that Sun was using for > interfacing to the Java plugin for all browsers, not just Mozilla. OJI = Open Java Interface. Its the plugin interface for Java plugins that Mozilla have adopted. You can connect any JVM which adheres to this interface into Mozilla. I suspect Galeon uses this, being a Mozilla derivative. Not sure about Konqueror or Opera. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 765 1887 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Nov 19 22:53: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from espresso.syncrontech.com (espresso-adsl.syncrontech.com [213.28.98.39]) by hub.freebsd.org (Postfix) with ESMTP id A80D337B416; Mon, 19 Nov 2001 22:52:55 -0800 (PST) Received: from there (coffee.syncrontech.com [62.71.8.37]) by espresso.syncrontech.com (8.9.3/8.9.3) with SMTP id IAA74878; Tue, 20 Nov 2001 08:51:40 +0200 (EET) (envelope-from ari.suutari@syncrontech.com) Message-Id: <200111200651.IAA74878@espresso.syncrontech.com> Content-Type: text/plain; charset="iso-8859-1" From: Ari Suutari To: "Andrew Atrens" Subject: Re: Small prog to demonstrate linux-jdk1.3.x signal handling prob lem. Date: Mon, 19 Nov 2001 08:48:42 +0200 X-Mailer: KMail [version 1.3.1] Cc: "Koster, K.J." , java , freebsd-emulation@FreeBSD.ORG References: <20011119142158.L7711-100000@hcarp00g.ca.nortel.com> In-Reply-To: <20011119142158.L7711-100000@hcarp00g.ca.nortel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, (I'v cc'd this to freebsd-emulation, maybe someone there has better understanding on this problem) On Monday 19 November 2001 21:33, Andrew Atrens wrote: > On Sun, 18 Nov 2001, Ari Suutari wrote: > > Sorry, maybe I was giving to strong opinion on this. > > It is mostly because I have been trying to get Apache JServ (or Tomcat) > > to run with linux jdk and it definitively does not work with > > hotspot enabled (and without it things are too slow for production > > environment). These problems resulted in having to switch a couple > > of servers from FreeBSD to Linux - a switch that I really hated to do. > > I'm in a similar situation, except that in our (my) case the java prog. is > part of a product loadbuild environment. Though it's quicker on FreeBSD, > it runs reliably on Linux. > > > that can be used to crash to Linux vm under linuxlator, maybe > > this could be discussed on freebsd-emulation or -current mailing > > My gut feeling is that it's a race condition - sometimes the signal > handler gets registered in time to catch the exception, sometimes it does > not. Though since I know very little about the linux threads model and > more importantly, how it's implemented in the Linuxulator, I can only > speculate. I found a small piece of information when searching on net for 'freebsd linux signal handling'. It says that linux makes no distinction with threads and processes and as a result signals go to a random thread rather than the one which registered them (this was BitTorrent mailing list on groups.yahoo.com, I don't know if this has any relevance to jdk, but at least there are similar problems elsewhere) > > Anyone out there an expert on this ? :) :) I was hoping that there could be a one on freebsd-emulators mailing list. > > > list ? Or is this something like a large piece of stuff missing from > > linuxlator that will take ages to fix (hopefully not) ? > Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 1:47:26 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 7E7E837B416 for ; Tue, 20 Nov 2001 01:47:24 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAK9lLU18550; Tue, 20 Nov 2001 10:47:21 +0100 (CET) (envelope-from ernst) Message-Id: <200111200947.fAK9lLU18550@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Rasputin , Rob Simmons Subject: Re: tomcat port Date: Tue, 20 Nov 2001 10:47:21 +0100 X-Mailer: KMail [version 1.3] Cc: java@freebsd.org References: <20011119161722.A56021@shikima.mine.nu> <20011119113239.U41811-100000@mail.wlcg.com> <20011119172316.A56349@shikima.mine.nu> In-Reply-To: <20011119172316.A56349@shikima.mine.nu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > STR I had to edit the first couple of lines in > /usr/local/etc/rc.d/tomcat.sh as well... This is something that the port itself should do. Could you please confirm that this is so, and if it is, send a PR using send-pr? Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 1:50:58 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 931CE37B405 for ; Tue, 20 Nov 2001 01:50:54 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAK9opc18564; Tue, 20 Nov 2001 10:50:51 +0100 (CET) (envelope-from ernst) Message-Id: <200111200950.fAK9opc18564@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: mel bessaha , freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines Date: Tue, 20 Nov 2001 10:50:51 +0100 X-Mailer: KMail [version 1.3] References: <3BF9D66F.3060306@neurotic.dyndns.org> In-Reply-To: <3BF9D66F.3060306@neurotic.dyndns.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Finally, which servlet engines are most of you running? Ive heard bad > things about Tomcat with regard to speed and over all stability. Some > have suggested Jetty or GNUjsp for jsp/beans work. Ive read that Orion > Application Server is also a good alternative to tomcat. Which is more > efficient and speedy? The advantage of Orion is IMHO that you have an active maintainer within reach (me) ;-) Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 3:12: 8 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id E968F37B417; Tue, 20 Nov 2001 03:11:58 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAKBBvS19082; Tue, 20 Nov 2001 12:11:57 +0100 (CET) (envelope-from ernst) Message-Id: <200111201111.fAKBBvS19082@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: John Merryweather Cooper Subject: Re: A Modest Proposal for Java(tm) dependency selection among ports Date: Tue, 20 Nov 2001 12:11:57 +0100 X-Mailer: KMail [version 1.3] Cc: freebsd-java@freebsd.org, freebsd-ports@freebsd.org References: <20011115130202.E33074@johncoop.MSHOME> <200111191317.fAJDHRi12634@zaphod.euronet.nl> <20011119101036.A91514@johncoop.MSHOME> In-Reply-To: <20011119101036.A91514@johncoop.MSHOME> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Johan && all, > > * http://www.metaverse.nl/~ernst/freebsd-java-proposal-20011116.html > > Looks good . . . a big step in the right direction. Good. It's still incomplete though. I will try to improve it today... > Actually, some of us will be interested in development tools, and some > of us will be interested in applications. A quick review of > freebsd-java (and in particular, the effort going into a native 1.3.1) > should indicate that there are plenty of us interested in development > tools. And the same can be said for appliations porting too. Phase > one should be getting a working bsd.java.mk. Phase two should be > getting ALL ports in the tree (or coming in) to use the build > environment extentions. Phase three should be to port like crazy to > get the desirable development tools and applications into the tree. Okay. Sounds kewl: 1] Create simple bsd.java.mk according to the final proposal. 2] Modify all current ports to use the new system 3] Get more applications in the tree 4] Modify portlint to produce warnings in case of fixed references to JDKs 5] Find a way to change a JDK at runtime (*after* install) Something like this. Phase 1 is at the moment the most important, that's for sure :-) > A better way to handle this, IMHO, would be for the JAVA_VER[SION] > switch to perform double duty. It would work like this: JAVA_VER > would, by default be set to "" entering into the JDK/JRE selection > logic. This allows automagical selection of the appropriate version. > However, JAVA_VER[SION] could also be manually set to select a specific > version. Well, the idea of mandating a certain version in *one* variable sounds good. That's certainly an improvement. But having a variable serving double-duty does not sound too good, somehow. A variable is either input or output, I'd say. I just asked this explicitly on freebsd-ports... > The one I've run into is StarOffice. Probably, these apps will all be > LINUX apps themselves. Probably too, they will attempt to interface to > the JDK/JRE in a non-standard way (through a plugin, direct linkage to > shared libraries, etc.) Okay. I suggest moving this to somewhere beyond phase 1. > One final thought, although the logic to influence preference for > native/auto-built JDK/JRE's is wonderful in theory, in practice it > locks us into JDK 1.1.8. Sun won't let us build a Java2 binary for > distribution at present--and that is a painful practical reality. We > should not discriminate against manual builds until such time as we > have at least one "full-citizen" native Java2 in the tree capable of > binary distribution and/or automatic build. Nah, not really. But it will mean that a lot of ports may fail since they need you to download distro files manually. > We need some implementation pro-types so we can "play" with the > challenges. s/pro-types/proto-types/ -- right? If so: Yup. My planning is to make the proposed solution for phase 1 final and then create a bsd.java.mk that people can test themselves. It will probably be modelled after bsd.ruby.mk. Another thought: We could introduce an input variable 'INSTALL_JAVADOC=[yes|no]' too, especially suitable for Java library ports. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 5:37:34 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id AAF1037B419 for ; Tue, 20 Nov 2001 05:37:31 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 166B7C-000LMm-00 for java@freebsd.org; Tue, 20 Nov 2001 13:39:06 +0000 Date: Tue, 20 Nov 2001 13:39:06 +0000 From: Rasputin To: java@freebsd.org Subject: Re: tomcat port Message-ID: <20011120133906.A82111@shikima.mine.nu> Reply-To: Rasputin References: <20011119161722.A56021@shikima.mine.nu> <20011119113239.U41811-100000@mail.wlcg.com> <20011119172316.A56349@shikima.mine.nu> <200111200947.fAK9lLU18550@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111200947.fAK9lLU18550@zaphod.euronet.nl>; from znerd@freebsd.org on Tue, Nov 20, 2001 at 10:47:21AM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Ernst de Haan [011120 09:50]: > > STR I had to edit the first couple of lines in > > /usr/local/etc/rc.d/tomcat.sh as well... > > This is something that the port itself should do. Could you please confirm > that this is so, and if it is, send a PR using send-pr? It doesn't - and it doesn't accept anything like JAVA_DIR either. I'll have a go at tweaking it on a day when our network isn't doing a good impression of a yo-yo.... (First guess would be read JAVADIR/JAVA_HOME then edit the appropriate lines in the post-install target of the port to set JAVA_HOME in /usr/local/etc/rc.d/tomcat.sh accordingly....) -- Just go with the flow control, roll with the crunches, and, when you get a prompt, type like hell. Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 5:51:16 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 599EC37B41D for ; Tue, 20 Nov 2001 05:51:11 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAKDpBZ24104; Tue, 20 Nov 2001 14:51:11 +0100 (CET) (envelope-from ernst) Message-Id: <200111201351.fAKDpBZ24104@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Rasputin , java@freebsd.org Subject: Re: tomcat port Date: Tue, 20 Nov 2001 14:51:10 +0100 X-Mailer: KMail [version 1.3] References: <20011119161722.A56021@shikima.mine.nu> <200111200947.fAK9lLU18550@zaphod.euronet.nl> <20011120133906.A82111@shikima.mine.nu> In-Reply-To: <20011120133906.A82111@shikima.mine.nu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Rasputin, Will you submit a PR for this? You should. If you don't want to do this, let me know, and I will submit a PR. This way we can track issues. Ernst On Tuesday 20 November 2001 14:39, Rasputin wrote: > * Ernst de Haan [011120 09:50]: > > > STR I had to edit the first couple of lines in > > > /usr/local/etc/rc.d/tomcat.sh as well... > > > > This is something that the port itself should do. Could you please > > confirm that this is so, and if it is, send a PR using send-pr? > > It doesn't - and it doesn't accept anything like JAVA_DIR either. > > I'll have a go at tweaking it on a day when our network isn't > doing a good impression of a yo-yo.... > > (First guess would be read JAVADIR/JAVA_HOME then edit the appropriate > lines in the post-install target of the port to set JAVA_HOME in > /usr/local/etc/rc.d/tomcat.sh accordingly....) -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 6:20:34 2001 Delivered-To: freebsd-java@freebsd.org Received: from oldmail.iae.nl (mail.iae.nl [212.61.26.54]) by hub.freebsd.org (Postfix) with ESMTP id EC56437B43A; Tue, 20 Nov 2001 06:20:11 -0800 (PST) Received: from uucp.iae.nl (unknown [212.61.26.37]) by oldmail.iae.nl (Postfix) with ESMTP id 99A1F20F64; Tue, 20 Nov 2001 15:20:10 +0100 (CET) Received: (from uucp@localhost) by uucp.iae.nl (8.9.1/8.9.1) with IAEhv.nl id PAA06277; Tue, 20 Nov 2001 15:20:10 +0100 (MET) Received: from bowtie.nl (euripides.intra.bowtie.nl [192.168.4.15]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id fAKEHim60876; Tue, 20 Nov 2001 15:17:45 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3BFA6608.4030201@bowtie.nl> Date: Tue, 20 Nov 2001 15:17:44 +0100 From: Marc van Kempen Organization: BowTie Technology User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 To: Ernst de Haan Cc: mel bessaha , freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ernst de Haan wrote: >>Finally, which servlet engines are most of you running? Ive heard bad >>things about Tomcat with regard to speed and over all stability. Some >>have suggested Jetty or GNUjsp for jsp/beans work. Ive read that Orion >>Application Server is also a good alternative to tomcat. Which is more >>efficient and speedy? >> > > The advantage of Orion is IMHO that you have an active maintainer within > reach (me) ;-) > > Ernst > > > I've also been fighting with tomcat over the past few days and could not believe how much trouble it is. Sure, it's easy to install, but servlet reloading is very unreliable. We have been using jserv until now, which is rock solid, but we are forced to enter the new millenium and get up to speed with the newer jserv api :) I'm actively looking for alternatives. Has anyone had the same bad experiences with tomcat? And Ernst, why did you choose Orion instead of tomcat? Regards, Marc. -- ---------------------------------------------------- Marc van Kempen tel. +31 40 2 64 98 60 BowTie Technology fax. +31 40 2 64 98 61 Raiffeisenstraat 7 mailto:marc@bowtie.nl 5611 CH Eindhoven http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 6:43:20 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 485A037B41E for ; Tue, 20 Nov 2001 06:43:16 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAKEhB424357; Tue, 20 Nov 2001 15:43:11 +0100 (CET) (envelope-from ernst) Message-Id: <200111201443.fAKEhB424357@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Marc van Kempen Subject: Re: JDK 1.3 and JHTTP Servlet Engines Date: Tue, 20 Nov 2001 15:43:11 +0100 X-Mailer: KMail [version 1.3] Cc: mel bessaha , freebsd-java@FreeBSD.ORG References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> In-Reply-To: <3BFA6608.4030201@bowtie.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Marc, You're Dutch as well. Heej kerel :-) > Has anyone had the same bad experiences with tomcat? And Ernst, why did > you choose Orion instead of tomcat? Orion is commercially supported. It support hot deployment, it features full J2EE compliance (including EJB, JNDI, etc), supports failover and clustering, and it's more stable. On the other hand, you do have to pay money for commercial use. The www/orion port will install Orion for you. It will display what installation options it has and what the current values are. Let me know if you have any suggestions or questions. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 7:28: 5 2001 Delivered-To: freebsd-java@freebsd.org Received: from draco.macsch.com (draco.macsch.com [192.73.8.1]) by hub.freebsd.org (Postfix) with ESMTP id 6226337B416 for ; Tue, 20 Nov 2001 07:28:01 -0800 (PST) Received: from mailmuc.muc.eu.mscsoftware.com (mailmuc.muc.macsch.com [161.34.37.20]) by draco.macsch.com (8.9.3/8.9.3) with ESMTP id HAA09328; Tue, 20 Nov 2001 07:23:35 -0800 (PST) Received: from hunter.muc.macsch.com (hunter.muc.macsch.com [172.17.22.32]) by mailmuc.muc.eu.mscsoftware.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id fAKFRnu01108; Tue, 20 Nov 2001 16:27:49 +0100 Received: from hunter.muc.macsch.com (localhost.muc.macsch.com [127.0.0.1]) by hunter.muc.macsch.com (8.11.6/8.11.6) with ESMTP id fAKFQL001364; Tue, 20 Nov 2001 16:26:21 +0100 (CET) (envelope-from Georg.Koltermann@mscsoftware.com) Date: Tue, 20 Nov 2001 16:26:21 +0100 Message-ID: From: "Georg-W. Koltermann" To: Marc van Kempen Cc: freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines In-Reply-To: <3BFA6608.4030201@bowtie.nl> References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> User-Agent: Wanderlust/2.4.1 (Stand By Me) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) Organization: MSC Software X-Attribution: gwk MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At Tue, 20 Nov 2001 15:17:44 +0100, Marc van Kempen wrote: > > [...] > > I've also been fighting with tomcat over the past few days and could not > believe how much trouble it is. Sure, it's easy to install, but servlet > reloading is very unreliable. We have been using jserv until now, which > is rock solid, but we are forced to enter the new millenium and get up > to speed with the newer jserv api :) Well, that's pretty much my situation as well. I've been using jserv, and now it's time for the new API. What problems did you have with tomcat? Did you try tomcat 3.x or tomcat 4 ? -- Regards, Georg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 7:45:12 2001 Delivered-To: freebsd-java@freebsd.org Received: from oldmail.iae.nl (mail.iae.nl [212.61.26.54]) by hub.freebsd.org (Postfix) with ESMTP id 0A23937B419 for ; Tue, 20 Nov 2001 07:45:09 -0800 (PST) Received: from uucp.iae.nl (unknown [212.61.26.37]) by oldmail.iae.nl (Postfix) with ESMTP id 9F2BE20FC4; Tue, 20 Nov 2001 16:45:07 +0100 (CET) Received: (from uucp@localhost) by uucp.iae.nl (8.9.1/8.9.1) with IAEhv.nl id QAA24526; Tue, 20 Nov 2001 16:45:07 +0100 (MET) Received: from bowtie.nl (euripides.intra.bowtie.nl [192.168.4.15]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id fAKFhLm61970; Tue, 20 Nov 2001 16:43:21 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3BFA7A19.8070201@bowtie.nl> Date: Tue, 20 Nov 2001 16:43:21 +0100 From: Marc van Kempen Organization: BowTie Technology User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 To: "Georg-W. Koltermann" Cc: freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Georg-W. Koltermann wrote: > At Tue, 20 Nov 2001 15:17:44 +0100, > Marc van Kempen wrote: > >>[...] >> >>I've also been fighting with tomcat over the past few days and could not >>believe how much trouble it is. Sure, it's easy to install, but servlet >>reloading is very unreliable. We have been using jserv until now, which >>is rock solid, but we are forced to enter the new millenium and get up >>to speed with the newer jserv api :) >> > > Well, that's pretty much my situation as well. I've been using jserv, > and now it's time for the new API. > > What problems did you have with tomcat? Did you try tomcat 3.x or > tomcat 4 ? > I tried tomcat 3.2.2 and 3.2.3 and 4.0. 4.0 wouldn't even run it's own examples, so I threw that right out of the window, 3.2.2 and 3.2.3 run ok, as long as you leave them alone, and don't reload servlets. The most reliable way to get tomcat to reload its servlets is to stop it, remove the work directory content and then restart it again, but that gets annoying when you're developing. Mind you, I have been trying to get this to work and have put quite a bit of hours into it already. I'm still not entirely convinced that I understand fully what tomcat does, but I'm also having a hard time believing that 3.2.3 is in this state, when they have been doing releases for 1 or 2 years? I mean how do other people use it to develop? Am I missing something or is tomcat really not good enough? Regards, Marc. -- ---------------------------------------------------- Marc van Kempen tel. +31 40 2 64 98 60 BowTie Technology fax. +31 40 2 64 98 61 Raiffeisenstraat 7 mailto:marc@bowtie.nl 5611 CH Eindhoven http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 8:25:14 2001 Delivered-To: freebsd-java@freebsd.org Received: from oldmail.iae.nl (mail.iae.nl [212.61.26.54]) by hub.freebsd.org (Postfix) with ESMTP id CFF6837B417; Tue, 20 Nov 2001 08:25:06 -0800 (PST) Received: from uucp.iae.nl (unknown [212.61.26.37]) by oldmail.iae.nl (Postfix) with ESMTP id 9107D20FA9; Tue, 20 Nov 2001 17:25:05 +0100 (CET) Received: (from uucp@localhost) by uucp.iae.nl (8.9.1/8.9.1) with IAEhv.nl id RAA02617; Tue, 20 Nov 2001 17:25:05 +0100 (MET) Received: from bowtie.nl (euripides.intra.bowtie.nl [192.168.4.15]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id fAKGMHm62193; Tue, 20 Nov 2001 17:22:17 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3BFA8339.5020500@bowtie.nl> Date: Tue, 20 Nov 2001 17:22:17 +0100 From: Marc van Kempen Organization: BowTie Technology User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 To: Ernst de Haan Cc: java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ernst de Haan wrote: > Marc, > > You're Dutch as well. Heej kerel :-) > I am? :-) > >>Has anyone had the same bad experiences with tomcat? And Ernst, why did >>you choose Orion instead of tomcat? >> > > Orion is commercially supported. It support hot deployment, it features full > J2EE compliance (including EJB, JNDI, etc), supports failover and clustering, > and it's more stable. On the other hand, you do have to pay money for > commercial use. > > The www/orion port will install Orion for you. It will display what > installation options it has and what the current values are. Let me know if > you have any suggestions or questions. > I'll give it a go when my schedule clears up a bit. By the way, any ideas about jetty and jboss? Bye, Marc. -- ---------------------------------------------------- Marc van Kempen tel. +31 40 2 64 98 60 BowTie Technology fax. +31 40 2 64 98 61 Raiffeisenstraat 7 mailto:marc@bowtie.nl 5611 CH Eindhoven http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 8:36:52 2001 Delivered-To: freebsd-java@freebsd.org Received: from relay.comm2000.it (mindseal.comm2000.it [194.133.0.6]) by hub.freebsd.org (Postfix) with ESMTP id 096C537B44B for ; Tue, 20 Nov 2001 08:36:08 -0800 (PST) Received: from insomma.local.lan ([212.97.62.126]) by relay.comm2000.it (8.11.2/MFAGMM-19990726) with ESMTP id fAKGa5M31640 for ; Tue, 20 Nov 2001 17:36:05 +0100 X-SMTP-Peer: [212.97.62.126] Received: (from nobody@localhost) by insomma.local.lan (8.11.6/8.11.3) id fAKGZu697468; Tue, 20 Nov 2001 17:35:56 +0100 (CET) (envelope-from massimo@datacode.it) From: Massimo Lusetti X-Authentication-Warning: insomma.local.lan: nobody set sender to massimo@datacode.it using -f Received: from 192.168.1.13 ( [192.168.1.13]) as user massimo@mail.local.lan by webapps.datacode.it with HTTP; Tue, 20 Nov 2001 17:35:56 +0100 Message-ID: <1006274156.3bfa866cc2586@webapps.datacode.it> Date: Tue, 20 Nov 2001 17:35:56 +0100 To: Marc van Kempen Cc: freebsd-java@freebsd.org Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA8339.5020500@bowtie.nl> In-Reply-To: <3BFA8339.5020500@bowtie.nl> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: DataMAIL on WEB Solution (DM) 2.3.7-cvs Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Quoting Marc van Kempen : > > Orion is commercially supported. It support hot deployment, it features > full > > J2EE compliance (including EJB, JNDI, etc), supports failover and > clustering, > > and it's more stable. On the other hand, you do have to pay money for > > commercial use. > > > > The www/orion port will install Orion for you. It will display what > > installation options it has and what the current values are. Let me know if > > > you have any suggestions or questions. > > > I'll give it a go when my schedule clears up a bit. > > > By the way, any ideas about jetty and jboss? Well, JBoss support all this stuff (JMX included) and is OpenSource, it is more flexible then any other i've tried and rock stable. So you should at least try it... Anyway just a consideration about this thread: i've understand that it's not possible to use Java2 on FreeBSD as a ' commercial base' for 'productive/commercial servers' due to some license issues about Sun JAVA License, am i right ?! Regards, Massimo Lusetti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 8:45:11 2001 Delivered-To: freebsd-java@freebsd.org Received: from oldmail.iae.nl (mail.iae.nl [212.61.26.54]) by hub.freebsd.org (Postfix) with ESMTP id 4BF2737B405 for ; Tue, 20 Nov 2001 08:45:08 -0800 (PST) Received: from uucp.iae.nl (unknown [212.61.26.37]) by oldmail.iae.nl (Postfix) with ESMTP id C3C1320FCE; Tue, 20 Nov 2001 17:45:06 +0100 (CET) Received: (from uucp@localhost) by uucp.iae.nl (8.9.1/8.9.1) with IAEhv.nl id RAA10553; Tue, 20 Nov 2001 17:45:06 +0100 (MET) Received: from bowtie.nl (euripides.intra.bowtie.nl [192.168.4.15]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id fAKGgcm62334; Tue, 20 Nov 2001 17:42:38 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3BFA87FE.3040700@bowtie.nl> Date: Tue, 20 Nov 2001 17:42:38 +0100 From: Marc van Kempen Organization: BowTie Technology User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 To: Massimo Lusetti Cc: freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA8339.5020500@bowtie.nl> <1006274156.3bfa866cc2586@webapps.datacode.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Massimo Lusetti wrote: > Quoting Marc van Kempen : > > > >>>Orion is commercially supported. It support hot deployment, it features >>> >>full >> >>>J2EE compliance (including EJB, JNDI, etc), supports failover and >>> >>clustering, >> >>>and it's more stable. On the other hand, you do have to pay money for >>>commercial use. >>> >>>The www/orion port will install Orion for you. It will display what >>>installation options it has and what the current values are. Let me know if >>> >>>you have any suggestions or questions. >>> >>> >>I'll give it a go when my schedule clears up a bit. >> >> >>By the way, any ideas about jetty and jboss? >> > > Well, JBoss support all this stuff (JMX included) and is OpenSource, it is more > flexible then any other i've tried and rock stable. So you should at least try it... > Ok, but how about the combination of jetty and jboss? > Anyway just a consideration about this thread: i've understand that it's not > possible to use Java2 on FreeBSD as a ' commercial base' for > 'productive/commercial servers' due to some license issues about Sun JAVA > License, am i right ?! > As far as I understand it, you can use it commercially. But the "freebsd project" has no permission to distribute a binary release, so you have to fetch the sources yourself from sun and then built it. -- ---------------------------------------------------- Marc van Kempen tel. +31 40 2 64 98 60 BowTie Technology fax. +31 40 2 64 98 61 Raiffeisenstraat 7 mailto:marc@bowtie.nl 5611 CH Eindhoven http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 8:45:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id E1E4837B419 for ; Tue, 20 Nov 2001 08:45:55 -0800 (PST) Received: (qmail 99854 invoked by uid 1001); 20 Nov 2001 16:47:03 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15354.35079.357365.53687@zircon.zircon.seattle.wa.us> Date: Tue, 20 Nov 2001 08:47:03 -0800 To: Greg Lewis , java@FreeBSD.ORG Subject: Re: jdk1.3.1 and JRE netscape/mozilla plugin In-Reply-To: <20011120160153.A3540@misty.eyesbeyond.com> References: <20011119043139.A98747@misty.eyesbeyond.com> <20011120160153.A3540@misty.eyesbeyond.com> X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greg Lewis writes: > This is simply a hard coded path. I've got patches to put it in > green_threads. I suspect its hard coded to native_threads as that > is the default threading subsystem on Linux, Solaris and Windows. I do not think you should patch the plugin to use green threads. Bill Huey seems to be making progress on native threads and it is merely a question of who figures out the bugs first, the plugin people or the threads people. Besides, the THREADS_FLAG can specify green threads, so there really is no need for a patch. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 8:56:29 2001 Delivered-To: freebsd-java@freebsd.org Received: from relay.comm2000.it (mindseal.comm2000.it [194.133.0.6]) by hub.freebsd.org (Postfix) with ESMTP id 891F237B418 for ; Tue, 20 Nov 2001 08:56:25 -0800 (PST) Received: from insomma.local.lan ([212.97.62.126]) by relay.comm2000.it (8.11.2/MFAGMM-19990726) with ESMTP id fAKGuNM23933 for ; Tue, 20 Nov 2001 17:56:23 +0100 X-SMTP-Peer: [212.97.62.126] Received: (from nobody@localhost) by insomma.local.lan (8.11.6/8.11.3) id fAKGuKM97601; Tue, 20 Nov 2001 17:56:20 +0100 (CET) (envelope-from massimo@datacode.it) From: Massimo Lusetti X-Authentication-Warning: insomma.local.lan: nobody set sender to massimo@datacode.it using -f Received: from 192.168.1.13 ( [192.168.1.13]) as user massimo@mail.local.lan by webapps.datacode.it with HTTP; Tue, 20 Nov 2001 17:56:20 +0100 Message-ID: <1006275380.3bfa8b346c84e@webapps.datacode.it> Date: Tue, 20 Nov 2001 17:56:20 +0100 To: Marc van Kempen Cc: freebsd-java@freebsd.org Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA8339.5020500@bowtie.nl> <1006274156.3bfa866cc2586@webapps.datacode.it> <3BFA87FE.3040700@bowtie.nl> In-Reply-To: <3BFA87FE.3040700@bowtie.nl> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: DataMAIL on WEB Solution (DM) 2.3.7-cvs Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Quoting Marc van Kempen : > Ok, but how about the combination of jetty and jboss? They work well... > > Anyway just a consideration about this thread: i've understand that it's > not > > possible to use Java2 on FreeBSD as a ' commercial base' for > > 'productive/commercial servers' due to some license issues about Sun JAVA > > License, am i right ?! > > > > As far as I understand it, you can use it commercially. But the "freebsd > project" has no permission to distribute a binary release, so you have > to fetch the sources yourself from sun and then built it. Well ... i'm really NOT a legal guy so my word have no wieght but from: 'http://www.freebsd.org/cgi/url.cgi?ports/java/jdk13/pkg-descr' ----- Please note that due to the current Sun licensing policy the resulting binaries can't be distributed and you are only permitted to use/hack it personally. ----- So... what this means ?! Regards, Massimo Lusetti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 9:10:18 2001 Delivered-To: freebsd-java@freebsd.org Received: from oldmail.iae.nl (mail.iae.nl [212.61.26.54]) by hub.freebsd.org (Postfix) with ESMTP id 62D7D37B417 for ; Tue, 20 Nov 2001 09:10:10 -0800 (PST) Received: from uucp.iae.nl (unknown [212.61.26.37]) by oldmail.iae.nl (Postfix) with ESMTP id E540920FC4; Tue, 20 Nov 2001 18:10:08 +0100 (CET) Received: (from uucp@localhost) by uucp.iae.nl (8.9.1/8.9.1) with IAEhv.nl id SAA18638; Tue, 20 Nov 2001 18:10:08 +0100 (MET) Received: from bowtie.nl (euripides.intra.bowtie.nl [192.168.4.15]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id fAKH8Pm62488; Tue, 20 Nov 2001 18:08:25 +0100 (CET) (envelope-from marc@bowtie.nl) Message-ID: <3BFA8E09.3060308@bowtie.nl> Date: Tue, 20 Nov 2001 18:08:25 +0100 From: Marc van Kempen Organization: BowTie Technology User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 To: Massimo Lusetti Cc: freebsd-java@freebsd.org Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA8339.5020500@bowtie.nl> <1006274156.3bfa866cc2586@webapps.datacode.it> <3BFA87FE.3040700@bowtie.nl> <1006275380.3bfa8b346c84e@webapps.datacode.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Massimo Lusetti wrote: > Quoting Marc van Kempen : > > > > > >>Ok, but how about the combination of jetty and jboss? >> > > They work well... > Did you try the combination of apache and jetty, or do you use jetty to serve your static content as well? How about ssl and virtual hosts? > >>>Anyway just a consideration about this thread: i've understand that it's >>> >>not >> >>>possible to use Java2 on FreeBSD as a ' commercial base' for >>>'productive/commercial servers' due to some license issues about Sun JAVA >>>License, am i right ?! >>> >>> >>As far as I understand it, you can use it commercially. But the "freebsd >>project" has no permission to distribute a binary release, so you have >>to fetch the sources yourself from sun and then built it. >> > > Well ... i'm really NOT a legal guy so my word have no wieght but from: > 'http://www.freebsd.org/cgi/url.cgi?ports/java/jdk13/pkg-descr' > ----- > Please note that due to the current Sun licensing policy the resulting binaries > can't be distributed and you are only permitted to use/hack it personally. > ----- > That doesn't sound good. Can anyone clarify? Regards, Marc. -- ---------------------------------------------------- Marc van Kempen tel. +31 40 2 64 98 60 BowTie Technology fax. +31 40 2 64 98 61 Raiffeisenstraat 7 mailto:marc@bowtie.nl 5611 CH Eindhoven http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 9:58:20 2001 Delivered-To: freebsd-java@freebsd.org Received: from relay.comm2000.it (mindseal.comm2000.it [194.133.0.6]) by hub.freebsd.org (Postfix) with ESMTP id ABCF137B417 for ; Tue, 20 Nov 2001 09:58:15 -0800 (PST) Received: from insomma.local.lan ([212.97.62.126]) by relay.comm2000.it (8.11.2/MFAGMM-19990726) with ESMTP id fAKHwDM17532 for ; Tue, 20 Nov 2001 18:58:13 +0100 X-SMTP-Peer: [212.97.62.126] Received: (from nobody@localhost) by insomma.local.lan (8.11.6/8.11.3) id fAKHw9j97913; Tue, 20 Nov 2001 18:58:09 +0100 (CET) (envelope-from massimo@datacode.it) From: Massimo Lusetti X-Authentication-Warning: insomma.local.lan: nobody set sender to massimo@datacode.it using -f Received: from 192.168.1.13 ( [192.168.1.13]) as user massimo@mail.local.lan by webapps.datacode.it with HTTP; Tue, 20 Nov 2001 18:58:09 +0100 Message-ID: <1006279089.3bfa99b19298e@webapps.datacode.it> Date: Tue, 20 Nov 2001 18:58:09 +0100 To: Marc van Kempen Cc: freebsd-java@freebsd.org Subject: Re: JDK 1.3 and JHTTP Servlet Engines References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA8339.5020500@bowtie.nl> <1006274156.3bfa866cc2586@webapps.datacode.it> <3BFA87FE.3040700@bowtie.nl> <1006275380.3bfa8b346c84e@webapps.datacode.it> <3BFA8E09.3060308@bowtie.nl> In-Reply-To: <3BFA8E09.3060308@bowtie.nl> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: DataMAIL on WEB Solution (DM) 2.3.7-cvs Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Quoting Marc van Kempen : > Did you try the combination of apache and jetty, or do you use jetty to > serve your static content as well? How about ssl and virtual hosts? Take a look at both, in both solutions, then choose, that's the best way... always. Regards, Massimo Lusetti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 10: 9:26 2001 Delivered-To: freebsd-java@freebsd.org Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.5.4]) by hub.freebsd.org (Postfix) with ESMTP id B611337B419; Tue, 20 Nov 2001 10:09:22 -0800 (PST) Received: from neurotic.dyndns.org (ool-18b8ed02.dyn.optonline.net [24.184.237.2]) by mta2.srv.hcvlny.cv.net (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GN400A1Q2G71K@mta2.srv.hcvlny.cv.net>; Tue, 20 Nov 2001 13:09:43 -0500 (EST) Date: Tue, 20 Nov 2001 13:11:01 -0500 From: mel bessaha Subject: Re: JDK 1.3 and JHTTP Servlet Engines To: freebsd-java@FreeBSD.ORG Cc: Ernst de Haan Message-id: <3BFA9CB5.20005@neurotic.dyndns.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ernst de Haan wrote: > Marc, > > You're Dutch as well. Heej kerel :-) > > >>Has anyone had the same bad experiences with tomcat? And Ernst, why did >>you choose Orion instead of tomcat? >> > > Orion is commercially supported. It support hot deployment, it features full > J2EE compliance (including EJB, JNDI, etc), supports failover and clustering, > and it's more stable. On the other hand, you do have to pay money for > commercial use. > > The www/orion port will install Orion for you. It will display what > installation options it has and what the current values are. Let me know if > you have any suggestions or questions. > > Ernst > > Ernst, Are you running Orion standalone? Im very much interested in performance and from what ive read from different ad hoc benchmarks, apache does a better job at serving static content and should there be used as the default web server on port 80 while tossing jsp/servlet requests to Orion on port 8080. What are you thoughts? thanks for the many replies. :) -Mel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 13:32:43 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id C859437B419 for ; Tue, 20 Nov 2001 13:32:41 -0800 (PST) Received: (qmail 7614 invoked by uid 1001); 20 Nov 2001 21:33:54 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15354.52288.892293.990664@zircon.zircon.seattle.wa.us> Date: Tue, 20 Nov 2001 13:33:52 -0800 To: freebsd-java@freebsd.org Subject: Plugin fails in sysThreadBootstrap X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have been debugging the plugin today. I have managed to step through InitializeJavaVM function up to the call to sysThreadBootstrap(), line 666 in javai.c. For some reason, gdb does not want to step into that function call, I suspect because I have somehow loaded a non-debugging version of libhpi. How to I get a version of libhpi with symbols so I can step further into the java_vm startup? /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 18:38: 3 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id CE7A537B419 for ; Tue, 20 Nov 2001 18:37:59 -0800 (PST) Received: (qmail 8717 invoked by uid 1001); 21 Nov 2001 02:39:07 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15355.5066.999963.87971@zircon.zircon.seattle.wa.us> Date: Tue, 20 Nov 2001 18:39:06 -0800 To: freebsd-java@freebsd.org, Bill Huey Subject: Re: Plugin fails in sysThreadBootstrap In-Reply-To: <20011120160821.A1049@gnuppy> References: <15354.52288.892293.990664@zircon.zircon.seattle.wa.us> <20011120160821.A1049@gnuppy> X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bill Huey writes: > On Tue, Nov 20, 2001 at 01:33:52PM -0800, Joe Kelsey wrote: > > I have been debugging the plugin today. I have managed to step through > > InitializeJavaVM function up to the call to sysThreadBootstrap(), line > > 666 in javai.c. For some reason, gdb does not want to step into that > > function call, I suspect because I have somehow loaded a non-debugging > > version of libhpi. How to I get a version of libhpi with symbols so I > > can step further into the java_vm startup? > If you figure this out, I'd like to know how you got it to work. Here is a little tutorial on how to debug the OJI plugin, along with the answer to Bill's question, which is how do you set a breakpoint in a function loaded via the dlopen() interface. 1) Define environment variables for the plugin: JAVA_VM_WAIT=true JAVA_PLUGIN_TRACE=true JAVA_PLUGIN_DEBUG=true THREADS_FLAG=green JAVA_VM_WAIT will make the plugin pause for a short while in java_vm to allow you to attach to the process with gdb. 2) Open a terminal window and get a gdb command line ready: gdb /usr/local/jdk1.3.1/bin/i386/green_threads/java_vm Leave the terminal poised at the space after java_vm so you can easily enter the pid and launch gdb in step 5. 3) Start mozilla mozilla& start in the background so you can use ps to find the pid of java_vm. 4) Visit /usr/local/jdk1.3.1/jre/ControlPanel.html This will start the plugin. Wait for the message: 131 After exec, before startup:Going to sleep for debugging... Then type ps. Remember the pid of java_vm. ps PID TT STAT TIME COMMAND 456 p0 Ss 0:00.78 ksh (ksh93) 8588 p0 IN 0:00.02 /bin/sh ./run-mozilla.sh ./mozilla-bin 8610 p0 SN 0:11.28 ./mozilla-bin 8611 p0 ZN 0:00.00 (netstat) 8612 p0 SN 0:00.10 java_vm -t 8613 p0 R+ 0:00.00 ps 7364 p2 Is+ 0:00.06 ksh (ksh93) 5) Go to the other terminal window and type the pid of java_vm followed by to launch gdb. You have about 30 seconds to do this. Don't be too slow! 6) Set a breakpoint in InitializeHPI. Continue the process. Step through InitializeHPI (actually use next to step through to prevent too much superfluous stuff.) After line 58: (gdb) next 58 hpi_handle = dlopen(buf, RTLD_NOW); (gdb) next 59 if (hpi_handle == NULL) { (gdb) shared Symbols already loaded for /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so Symbols already loaded for /usr/local/jdk1.3.1/jre/lib/i386/libjava_g.so ... Symbols already loaded for /usr/X11R6/lib/libXThrStub.so.6 Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/green_threads/libhpi_g.so...done. Symbols already loaded for /usr/libexec/ld-elf.so.1 (gdb) b sysThreadBootstrap Breakpoint 2 at 0x286f902e: file ../../../../src/solaris/hpi/src/system_md.c, line 43. (gdb) c As you can see, the shared command will make gdb re-read the shared symbols. Since we just added libhpi_g.so to the mix, those symbols will be added. Ultimately, the problem appears to be green_sigprocmask(), which is not loading libc.so correctly. The function was written assuming that RTLD_NEXT is undefined in FreeBSD. However, it has been implemented, but does not work the same as solaris, apparantly. I think we need to modify this use to at least open libc.so if it is not loaded. So, Bill, the answer to your question is to use the gdb shared command to re-read the symbol tables after manually loading any shared libraries, such as hpi. /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 18:58: 0 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id 75E6B37B416 for ; Tue, 20 Nov 2001 18:57:57 -0800 (PST) Received: from billh by gnuppy.monkey.org with local (Exim 3.32 #1 (Debian)) id 166NaG-000340-00; Tue, 20 Nov 2001 18:57:56 -0800 Date: Tue, 20 Nov 2001 18:57:55 -0800 To: Joe Kelsey Cc: freebsd-java@freebsd.org, Bill Huey Subject: Re: Plugin fails in sysThreadBootstrap Message-ID: <20011120185755.A11757@gnuppy> References: <15354.52288.892293.990664@zircon.zircon.seattle.wa.us> <20011120160821.A1049@gnuppy> <15355.5066.999963.87971@zircon.zircon.seattle.wa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15355.5066.999963.87971@zircon.zircon.seattle.wa.us> User-Agent: Mutt/1.3.23i From: Bill Huey Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Nov 20, 2001 at 06:39:06PM -0800, Joe Kelsey wrote: > 1) Define environment variables for the plugin: ... Quick news... I think I got native threading mostly working by finding a bug in the timed condition-variable handling in uthread_kern.c. It incorrectly doesn't check to see if the thread is PS_SUSPENDED before it removes it from the work-queue, places it in the run-queue and then marks it PS_RUNNING. The block is in: /usr/src/lib/libc_r/uthread/uthread_kern.c line 390 according to "vim". ;-) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 19: 9:48 2001 Delivered-To: freebsd-java@freebsd.org Received: from zircon.seattle.wa.us (sense-sea-CovadSub-0-228.oz.net [216.39.147.228]) by hub.freebsd.org (Postfix) with SMTP id 8C8A337B416 for ; Tue, 20 Nov 2001 19:09:46 -0800 (PST) Received: (qmail 8803 invoked by uid 1001); 21 Nov 2001 03:10:58 -0000 From: Joe Kelsey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15355.6978.552994.711673@zircon.zircon.seattle.wa.us> Date: Tue, 20 Nov 2001 19:10:58 -0800 To: Bill Huey , freebsd-java@freebsd.org Subject: Re: Plugin fails in sysThreadBootstrap In-Reply-To: <20011120185755.A11757@gnuppy> References: <15354.52288.892293.990664@zircon.zircon.seattle.wa.us> <20011120160821.A1049@gnuppy> <15355.5066.999963.87971@zircon.zircon.seattle.wa.us> <20011120185755.A11757@gnuppy> X-Mailer: VM 6.96 under Emacs 21.1.1 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bill Huey writes: > On Tue, Nov 20, 2001 at 06:39:06PM -0800, Joe Kelsey wrote: > > 1) Define environment variables for the plugin: > ... > > Quick news... > > I think I got native threading mostly working by finding a bug in the > timed condition-variable handling in uthread_kern.c. It incorrectly > doesn't check to see if the thread is PS_SUSPENDED before it removes > it from the work-queue, places it in the run-queue and then marks it > PS_RUNNING. So, when will this be committed to -stable? Anxious, possible native-threaders want to know! Congratulations Bill and we await nativ threading with baited breath! /Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 20:31:53 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id B25CB37B419 for ; Tue, 20 Nov 2001 20:31:50 -0800 (PST) Received: from billh by gnuppy.monkey.org with local (Exim 3.32 #1 (Debian)) id 166P36-0004WQ-00; Tue, 20 Nov 2001 20:31:48 -0800 Date: Tue, 20 Nov 2001 20:31:47 -0800 To: Joe Kelsey Cc: Bill Huey , freebsd-java@freebsd.org Subject: Re: Plugin fails in sysThreadBootstrap Message-ID: <20011120203147.A16541@gnuppy> References: <15354.52288.892293.990664@zircon.zircon.seattle.wa.us> <20011120160821.A1049@gnuppy> <15355.5066.999963.87971@zircon.zircon.seattle.wa.us> <20011120185755.A11757@gnuppy> <15355.6978.552994.711673@zircon.zircon.seattle.wa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15355.6978.552994.711673@zircon.zircon.seattle.wa.us> User-Agent: Mutt/1.3.23i From: Bill Huey Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Nov 20, 2001 at 07:10:58PM -0800, Joe Kelsey wrote: > So, when will this be committed to -stable? Anxious, possible > native-threaders want to know! > > Congratulations Bill and we await nativ threading with baited breath! > > /Joe I just commmit recent changes for it now to the freebsd-java CVS that fix a world class thinko I commited. Next... Dan Eischen should be able to commit the correct fix soon after he hears about it by reading the maling list. But by putting a "case PS_SUSPENDED break;" in that block, it should at least prevent the thread from being put into the run queue. Sorry to be vague and lack proper diffs. I normally just commit and forget. ;-) It's better to wait for Dan to look at it first. ;-) blll To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Nov 20 21:16: 8 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id E127337B418 for ; Tue, 20 Nov 2001 21:16:05 -0800 (PST) Received: from billh by gnuppy.monkey.org with local (Exim 3.32 #1 (Debian)) id 166Pjw-0005Fj-00; Tue, 20 Nov 2001 21:16:04 -0800 Date: Tue, 20 Nov 2001 21:16:04 -0800 To: Bill Huey Cc: Joe Kelsey , freebsd-java@freebsd.org Subject: Native Threading [was: Re: Plugins....] Message-ID: <20011120211604.A20177@gnuppy> References: <15354.52288.892293.990664@zircon.zircon.seattle.wa.us> <20011120160821.A1049@gnuppy> <15355.5066.999963.87971@zircon.zircon.seattle.wa.us> <20011120185755.A11757@gnuppy> <15355.6978.552994.711673@zircon.zircon.seattle.wa.us> <20011120203147.A16541@gnuppy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011120203147.A16541@gnuppy> User-Agent: Mutt/1.3.23i From: Bill Huey Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Uh, I just got to crash again. I could be wrong and/or there could be more bug of this nature floating around. Let me look at it more when I'm less sleepy. ;-) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 21 0:58:36 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id BEA6137B405 for ; Wed, 21 Nov 2001 00:58:33 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAL8wTo03000; Wed, 21 Nov 2001 09:58:29 +0100 (CET) (envelope-from ernst) Message-Id: <200111210858.fAL8wTo03000@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: mel bessaha , freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3 and JHTTP Servlet Engines Date: Wed, 21 Nov 2001 09:58:29 +0100 X-Mailer: KMail [version 1.3] Cc: Kees Jan Koster References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA9CB5.20005@neurotic.dyndns.org> In-Reply-To: <3BFA9CB5.20005@neurotic.dyndns.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Are you running Orion standalone? Im very much interested in > performance and from what ive read from different ad hoc benchmarks, > apache does a better job at serving static content and should there be > used as the default web server on port 80 while tossing jsp/servlet > requests to Orion on port 8080. What are you thoughts? I have been running Orion stand-alone, but I intend to create make a port (either the current www/orion or a new one) install Orion and Apache in a way that Apache servces the static content (.html, .txt, .gif, .jpg, etc.) while Orion serves the dynamic content (JSP's, servlets, etc.) I do not have information about performance on FreeBSD, since I haven't done large deployments on FreeBSD systems. Perhaps Kees Jan Koster is the one to ask? Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 21 1:56:22 2001 Delivered-To: freebsd-java@freebsd.org Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by hub.freebsd.org (Postfix) with ESMTP id 81F7437B418 for ; Wed, 21 Nov 2001 01:56:19 -0800 (PST) Received: by l04.research.kpn.com with Internet Mail Service (5.5.2653.19) id ; Wed, 21 Nov 2001 10:56:18 +0100 Message-ID: <59063B5B4D98D311BC0D0001FA7E452205FDA0E7@l04.research.kpn.com> From: "Koster, K.J." To: freebsd-java@FreeBSD.ORG Subject: RE: JDK 1.3 and JHTTP Servlet Engines Date: Wed, 21 Nov 2001 10:56:15 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear All, I wasn't aware of this thread until Ernst CC'd me. Sorry to pipe in so late. Thanks for pinging me. On the subject of Sun licensing: the license forbids the FreeBSD project to distribute pre-build JDK or JRE binaries. If you download the source code and build the binaries yourself, for example by using the port, you are free to use it in a production environment if you like. You just cannot give the binaries to anyone else, that's all. > > > Are you running Orion standalone? Im very much interested in > > performance and from what ive read from different ad hoc benchmarks, > > apache does a better job at serving static content and > > should there be > > used as the default web server on port 80 while tossing jsp/servlet > > requests to Orion on port 8080. What are you thoughts? > You can do this if you like. I prefer to run Orion standalone, since it gives me one less daemon to keep track of. I've heard on the orion-interest mailing list that Orion beats Apache at static content, since it does not have all the extensions that Apache has. I'm sure that you can prove whatever you like in your own personal benchmark. :-) > > I have been running Orion stand-alone, but I intend to create > make a port > (either the current www/orion or a new one) install Orion and > Apache in a way > that Apache servces the static content (.html, .txt, .gif, > .jpg, etc.) while > Orion serves the dynamic content (JSP's, servlets, etc.) > Please leave the www/orion port as standalone Orion, since that's what the name says. Make an www/orion-apache meta-port instead. > > I do not have information about performance on FreeBSD, since > I haven't done > large deployments on FreeBSD systems. Perhaps Kees Jan Koster > is the one to ask? > We're developing on FreeBSD-stable/Orion1.5.2/MySQL323, but final deployment is going to be Solaris/Orion1.5.2/Oracle. Our datacenter are experienced Oracle and Solaris admins, so I'm not going to ask for anything different. We'll be looking at about 1000 concurrent users, though none very active. Peak in the morning, steady trickle during the day. Roll-out is in feb./march 2002, ask me again then. :) Orion (with Jikes) has given me no real grief so far. I use autodeployment, but find you need to do "clean" deployment after changing any orion-ejb-jar.xml, or after changing the database tables. Servlets, enterprise beans and web pages redeploy flawlessly. The only snag I've run into is that Orion sometimes deadlocks when you do an HTTP request in the middle of an auto-deployment. Orion stops responding to HTTP requests, even after the deployment is finished. I'm sure this bug is known with the Orion team for some time, although they have not fixed it yet. I would not use auto-deployment on a live production box anyway, so this is not a show stopper. Kees Jan ================================================ You are only young once, but you can stay immature all your life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 21 3: 2:55 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id BB86837B405; Wed, 21 Nov 2001 03:02:43 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 166VAt-0004PQ-00; Wed, 21 Nov 2001 11:04:15 +0000 Date: Wed, 21 Nov 2001 11:04:15 +0000 From: Rasputin To: Ernst de Haan Cc: java@freebsd.org Subject: Re: tomcat port (PATCH) Message-ID: <20011121110415.A12931@shikima.mine.nu> Reply-To: Rasputin References: <20011119161722.A56021@shikima.mine.nu> <200111200947.fAK9lLU18550@zaphod.euronet.nl> <20011120133906.A82111@shikima.mine.nu> <200111201351.fAKDpBZ24104@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111201351.fAKDpBZ24104@zaphod.euronet.nl>; from znerd@freebsd.org on Tue, Nov 20, 2001 at 02:51:10PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline How does this look for a patch? It needs a fair bit more work, but at present it: 1] makes a dependency on 'javac' rather than an explicit path - so long as there is a java compiler in your path, it should work. 2] makes files/patch-aa correctly set java_home in workers.properties (dependant on JAVA_HOME; I have a symlink, /usr/java, that I repoint to /usr/local/jdk1,1,8, /usr/local/linux-jdk1.3.1 or whatever other JDK I'm using that day) 3] Makes tomcat.sh rc script correctly read JAVA_HOME (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) It also has a couple of *really* clanky post-extract targets in the Makefile - I don't know a cleaner way of doing it. I've tried un/reinstalling it , playing around with a JAVA_HOME environment variable set to various things, along with explicitly setting it on the commnad line, and it seems ok - If this looks OK I'll send-pr it. -- "Irrationality is the square root of all evil" -- Douglas Hofstadter Rasputin :: Jack of All Trades - Master of Nuns :: --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="tomcat.patch" --- Makefile.orig Mon Oct 1 22:01:46 2001 +++ Makefile Wed Nov 21 10:30:14 2001 @@ -14,15 +14,24 @@ MAINTAINER= dirk@FreeBSD.org BUILD_DEPENDS= pinstall:${PORTSDIR}/devel/pinstall -RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk +RUN_DEPENDS= javac:${PORTSDIR}/java/jdk NO_BUILD= yes +# should be changed/detected/whatever the group decides to do with it. +JAVA_HOME?= /usr/java + +post-extract: + @${SED} "s|%%JHOME%%|${JAVA_HOME}|g" < ${FILESDIR}/patch-aa > ${FILESDIR}/patch-tmp + @${MV} ${FILESDIR}/patch-tmp ${FILESDIR}/patch-aa + do-install: @/usr/bin/perl -i -pe "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/conf/workers.properties @${LN} -fs ${WRKSRC} ${WRKDIR}/tomcat @pinstall -v -d ${WRKDIR} - @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/tomcat.sh > ${WRKDIR}/tomcat.sh + @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/tomcat.sh > ${FILESDIR}/tomcat.tmp + @${SED} "s|%%JHOME%%|${JAVA_HOME}|g" < ${FILESDIR}/tomcat.tmp > ${WRKDIR}/tomcat.sh + @${RM} ${FILESDIR}/tomcat.tmp @${INSTALL_SCRIPT} ${WRKDIR}/tomcat.sh /usr/local/etc/rc.d post-install: --- files/tomcat.sh.orig Wed Nov 21 10:29:54 2001 +++ files/tomcat.sh Wed Nov 21 10:31:20 2001 @@ -1,6 +1,6 @@ #!/bin/sh -JAVA_HOME=%%PREFIX%%/jdk1.1.8 +JAVA_HOME=%%JHOME%% export JAVA_HOME TOMCAT_HOME=%%PREFIX%%/tomcat export TOMCAT_HOME --- files/patch-aa.orig Wed Nov 21 10:29:45 2001 +++ files/patch-aa Wed Nov 21 10:31:57 2001 @@ -12,7 +12,7 @@ # you should have a bin and lib directories beneath it. # -workers.java_home=c:\jdk1.2.2 -+workers.java_home=%%PREFIX%%/jdk1.1.8 ++workers.java_home=/usr/java # # You should configure your environment slash... ps=\ on NT and / on UNIX --1yeeQ81UyVL57Vl7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 21 6: 4:26 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id 68D6437B417 for ; Wed, 21 Nov 2001 06:03:35 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 166Xyh-00065R-00; Wed, 21 Nov 2001 14:03:51 +0000 Date: Wed, 21 Nov 2001 14:03:51 +0000 From: Rasputin To: Marc van Kempen Cc: java@freebsd.org Subject: Re: JDK 1.3 and JHTTP Servlet Engines Message-ID: <20011121140351.A23362@shikima.mine.nu> Reply-To: Rasputin References: <3BF9D66F.3060306@neurotic.dyndns.org> <200111200950.fAK9opc18564@zaphod.euronet.nl> <3BFA6608.4030201@bowtie.nl> <200111201443.fAKEhB424357@zaphod.euronet.nl> <3BFA8339.5020500@bowtie.nl> <1006274156.3bfa866cc2586@webapps.datacode.it> <3BFA87FE.3040700@bowtie.nl> <1006275380.3bfa8b346c84e@webapps.datacode.it> <3BFA8E09.3060308@bowtie.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BFA8E09.3060308@bowtie.nl>; from marc@bowtie.nl on Tue, Nov 20, 2001 at 06:08:25PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Marc van Kempen [011120 18:40]: > > ----- > > Please note that due to the current Sun licensing policy the resulting binaries > > can't be distributed and you are only permitted to use/hack it personally. > > ----- > That doesn't sound good. Can anyone clarify? I think it just means: "don't go building this JDK, slapping a 'myJavac' label on it and go trying to sell it on street corners or we'll get out legal ninjas to hunt you down - this means *you*, Mr Gates" i.e. it applies to the JDK itself, not software you roll with it. Although sadly this also parses as: "Don't give me any of that 'can we have a native 1.3 JVM for our OS, please Mister?' you long-haired BSD hippies!" - sigh... (good sigmonster...) -- What the large print giveth, the small print taketh away. Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 21 6:59: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.5.31]) by hub.freebsd.org (Postfix) with ESMTP id 6268B37B416 for ; Wed, 21 Nov 2001 06:59:01 -0800 (PST) Received: from [192.168.1.100] (ool-18be4d4b.dyn.optonline.net [24.190.77.75]) by mta2.srv.hcvlny.cv.net (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GN5000OQOAC30@mta2.srv.hcvlny.cv.net> for java@freebsd.org; Wed, 21 Nov 2001 09:59:00 -0500 (EST) Date: Wed, 21 Nov 2001 09:55:58 -0500 From: John Clayton Subject: Re: jdk13 port installation problems In-reply-to: <15352.1990.428089.879419@zircon.zircon.seattle.wa.us> To: Joe Kelsey , java@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org So, could I install my own copy of gcc and use that? Not a clue as to how to start ... > From: Joe Kelsey > Date: Sun, 18 Nov 2001 11:11:02 -0800 > To: John Clayton > Subject: Re: jdk13 port installation problems > > John Clayton writes: >> I haven't as of yet. I've been pulled away on another project though. >> here's an update of how far I've gotten: >> >> * the issue with InvokersGen was solved by moving the build directory to the >> top level, instead of in the default, which on this "virtual private" server >> setup was something like /usr/tmp/usr/tmp/usr/ports/java/jdk13 - whew! >> There is some weirdness because the /usr/tmp directory is not what it seems >> to be, I'm convinced. I think I did this by specifying WRKDIR on the command >> line. Look in the make files for where it sets it up. Interland/Host Pro >> had added some config settings of their own to this, but specifying on the >> command-line got around it. > > So, you are using someone else's mis-configured server to try to build > the port. I'm afraid that you will not succeed. > >> * I then encountered another issue which I haven't yet solved: >> >> >>> Error: failed ../../../../build/bsd-i386/lib/i386/classic/libjvm.so, >>> because ../../../../build/bsd-i386/lib/i386/classic/libjvm.so: >>> Undefined symbol "__muldi3" >>> gmake[4]: *** > > This indicates that the gcc compiler has been installed incorrectly. > Again, you are attempting to use someone else's mis-configured server. > > I recommend that you acquire a spare pc of your own, install FreeBSD > correctly and then attempt to work on the port. Or else somehow > convince the owner of the system you are using to set things up > correctly. > > Or I could be wrong. > > /Joe > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Nov 21 8: 5:19 2001 Delivered-To: freebsd-java@freebsd.org Received: from hfep07.dion.ne.jp (hfep07.dion.ne.jp [203.181.105.73]) by hub.freebsd.org (Postfix) with ESMTP id B033737B416 for ; Wed, 21 Nov 2001 08:05:14 -0800 (PST) Received: from localhost ([61.200.137.137]) by hfep07.dion.ne.jp with ESMTP id <20011121160512788.KAWO@hfep07.dion.ne.jp> for ; Thu, 22 Nov 2001 01:05:12 +0900 To: freebsd-java@freebsd.org Subject: java dumps core with orion server on 5-current X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011122010342F.haro@h4.dion.ne.jp> Date: Thu, 22 Nov 2001 01:03:42 +0900 From: Munehiro Matsuda X-Dispatcher: imput version 20000228(IM140) Lines: 78 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all, I'm new to java on FreeBSD, and just tried out jdk13 and orion port to see how things are coming along. Unfortunately, java dumps core on start up on orion. This is a 5-current system, so there may some unknown issues with it. :-( -------------8<------------------8<------------------8<------------8<------- # cd /usr/local # gdb jdk1.3.1/jre/bin/i386/green_threads/java orion1.4.5/java.core GNU gdb 4.18 Copyright 1998 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 "i386-unknown-freebsd"... (no debugging symbols found)... Core was generated by `java'. Program terminated with signal 6, Abort trap. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/green_threads/libhpi.so...(no debugging symbols found)...done. Reading symbols from /usr/lib/libc.so.5...(no debugging symbols found)...done. Reading symbols from /usr/lib/libm.so.2...(no debugging symbols found)...done. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so... (no debugging symbols found)...done. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libverify.so... (no debugging symbols found)...done. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libjava.so... (no debugging symbols found)...done. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libzip.so... (no debugging symbols found)...done. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libnet.so... (no debugging symbols found)...done. Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)... done. #0 0x280badc8 in kill () from /usr/lib/libc.so.5 (gdb) where #0 0x280badc8 in kill () from /usr/lib/libc.so.5 #1 0x2810c38b in abort () from /usr/lib/libc.so.5 #2 0x2817cae5 in Abort () from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so #3 0x281a5a5c in panicHandler () from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so #4 0x280786cb in userSignalHandler () from /usr/local/jdk1.3.1/jre/lib/i386/green_threads/libhpi.so #5 0x28078684 in intrDispatch () from /usr/local/jdk1.3.1/jre/lib/i386/green_threads/libhpi.so #6 0x2807192c in intrDispatchMD () from /usr/local/jdk1.3.1/jre/lib/i386/green_threads/libhpi.so #7 0xbfbfffac in ?? () #8 0x281a6e35 in args_done () from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so #9 0x28174349 in invokeJNINativeMethod () from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so #10 0x281746a0 in invokeLazyNativeMethod () from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so #11 0x281ad647 in ivq_not_ijn6 () from /usr/local/jdk1.3.1/jre/lib/i386/classic/libjvm.so #12 0x1 in ?? () #13 0x8379800 in ?? () (gdb) --------------8<--------------------8<--------------------8<----------- I would like to know, how to setup debuging version of JDK, so I can help debug things around. Thanks in advance, Haro =------------------------------------------------------------------------------ _ _ Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: haro@kubota.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 22 3: 8:40 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id C78A837B419 for ; Thu, 22 Nov 2001 03:08:31 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAMB8Ne07123; Thu, 22 Nov 2001 12:08:23 +0100 (CET) (envelope-from ernst) Message-Id: <200111221108.fAMB8Ne07123@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Rasputin Subject: Re: tomcat port (PATCH) Date: Thu, 22 Nov 2001 12:08:23 +0100 X-Mailer: KMail [version 1.3] Cc: java@freebsd.org References: <20011119161722.A56021@shikima.mine.nu> <200111201351.fAKDpBZ24104@zaphod.euronet.nl> <20011121110415.A12931@shikima.mine.nu> In-Reply-To: <20011121110415.A12931@shikima.mine.nu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hey Rasputin, > 1] makes a dependency on 'javac' rather than an explicit path - > so long as there is a java compiler in your path, it should work. Uhm, will javac be in the path? I don't think you get javac in the path if you install a JDK. The JDK's just install into a subdir of ${PREFIX}. The scripts and binaries are then in the bin/ subdir, they are *not* copied to /usr/local/bin nor is a symlink placed there, AFAIK. > 2] makes files/patch-aa correctly set java_home in workers.properties > (dependant on JAVA_HOME; I have a symlink, /usr/java, that I repoint to > /usr/local/jdk1,1,8, /usr/local/linux-jdk1.3.1 or whatever other JDK I'm > using that day) Well, this is specific to your situation. It's not official that /usr/java points to a JDK. And I would not want to introduce that either... *If* some directory like that would be introduced, then it would at *least* be below ${PREFIX} (normally /usr/local/) > 3] Makes tomcat.sh rc script correctly read JAVA_HOME > (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) 'read'? Where from? Do you replace it? I haven't looked at the diff yet, don't really have time yet.... Hope this helps :-) Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 22 3:30:21 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id D3ACD37B405; Thu, 22 Nov 2001 03:30:17 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 166s5C-0003j5-00; Thu, 22 Nov 2001 11:31:54 +0000 Date: Thu, 22 Nov 2001 11:31:54 +0000 From: Rasputin To: Ernst de Haan Cc: java@freebsd.org Subject: Re: tomcat port (PATCH) Message-ID: <20011122113154.A14283@shikima.mine.nu> Reply-To: Rasputin References: <20011119161722.A56021@shikima.mine.nu> <200111201351.fAKDpBZ24104@zaphod.euronet.nl> <20011121110415.A12931@shikima.mine.nu> <200111221108.fAMB8Ne07123@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111221108.fAMB8Ne07123@zaphod.euronet.nl>; from znerd@freebsd.org on Thu, Nov 22, 2001 at 12:08:23PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Ernst de Haan [011122 11:15]: > Hey Rasputin, > > > 1] makes a dependency on 'javac' rather than an explicit path - > > so long as there is a java compiler in your path, it should work. > > Uhm, will javac be in the path? I don't think you get javac in the path if > you install a JDK. The JDK's just install into a subdir of ${PREFIX}. The > scripts and binaries are then in the bin/ subdir, they are *not* copied to > /usr/local/bin nor is a symlink placed there, AFAIK. I'm sort of assuming that if you've installed a JDK you'll have added the toolchain to your path? The alternative is setting a dependency for JAVA_HOME/bin/javac, but again this assumes that you set JAVA_HOME (or JDK_HOME, JRE_HOME, whatever is decided on).... > > 2] makes files/patch-aa correctly set java_home in workers.properties > > (dependant on JAVA_HOME; I have a symlink, /usr/java, that I repoint to > > /usr/local/jdk1,1,8, /usr/local/linux-jdk1.3.1 or whatever other JDK I'm > > using that day) > > Well, this is specific to your situation. It's not official that /usr/java > points to a JDK. And I would not want to introduce that either... *If* some > directory like that would be introduced, then it would at *least* be below > ${PREFIX} (normally /usr/local/) Sure - that's why you can override it to point to wherever your JDK lives. > > 3] Makes tomcat.sh rc script correctly read JAVA_HOME > > (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) > > 'read'? Where from? Uh, the environment? > Do you replace it? I haven't looked at the diff yet, Have a look - I'm horribly hungover today, so I'm not in any state to explain it properly. > don't really have time yet.... > Hope this helps :-) Sure - the more feedback the better. I was also wondering if there was any reason why tomcat needs to run as root? I managed to get it to run happily over here as user 'tomcat', but I've only be running it about 4 days, so does anyone else know a reason it needs to be root? Only thing I can think of is if you want it as your standard webserver, you'd need root to bind to port 80 - but that could be got around with a port forwarder... -- Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 22 3:37:10 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 6FBEC37B405 for ; Thu, 22 Nov 2001 03:37:02 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fAMBb1n10075; Thu, 22 Nov 2001 12:37:01 +0100 (CET) (envelope-from ernst) Message-Id: <200111221137.fAMBb1n10075@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Rasputin Subject: Re: tomcat port (PATCH) Date: Thu, 22 Nov 2001 12:37:00 +0100 X-Mailer: KMail [version 1.3] Cc: java@freebsd.org References: <20011119161722.A56021@shikima.mine.nu> <200111221108.fAMB8Ne07123@zaphod.euronet.nl> <20011122113154.A14283@shikima.mine.nu> In-Reply-To: <20011122113154.A14283@shikima.mine.nu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Heya, > > Uhm, will javac be in the path? I don't think you get javac in the path > > if you install a JDK. The JDK's just install into a subdir of ${PREFIX}. > > The scripts and binaries are then in the bin/ subdir, they are *not* > > copied to /usr/local/bin nor is a symlink placed there, AFAIK. > > I'm sort of assuming that if you've installed a JDK you'll have added the > toolchain to your path? Nope. You should not. Even if we could assume that the JDK bin directory is in the path, it would be in the path for specific users, not necessarily for root. The port should not break because such an assumption is not met. > The alternative is setting a dependency for > JAVA_HOME/bin/javac, but again this assumes that you set > JAVA_HOME (or JDK_HOME, JRE_HOME, whatever is decided on).... Well, you can use someting like: JAVA_HOME?= ${PREFIX}/jdk1.1.8 so it can be overridden but has a default value (using something like 'make JAVA_HOME=/usr/local/jdk1.3.1 install'). Right now you should select a JDK yourself, as the default JDK. See the www/orion port for an example. > > > 2] makes files/patch-aa correctly set java_home in workers.properties > > > (dependant on JAVA_HOME; I have a symlink, /usr/java, that I repoint to > > > /usr/local/jdk1,1,8, /usr/local/linux-jdk1.3.1 or whatever other JDK > > > I'm using that day) > > > > Well, this is specific to your situation. It's not official that > > /usr/java points to a JDK. And I would not want to introduce that > > either... *If* some directory like that would be introduced, then it > > would at *least* be below ${PREFIX} (normally /usr/local/) > > Sure - that's why you can override it to point to wherever your JDK lives. No, you should not have to override something in order to make it work. A port should work out of the box, and it should comply to the rules for ports. One of the rules is that everything goes below ${PREFIX}. > > > 3] Makes tomcat.sh rc script correctly read JAVA_HOME > > > (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) > > > > 'read'? Where from? > > Uh, the environment? Well, then where is it set? This again is a vague dependency. > > Do you replace it? I haven't looked at the diff yet, > > Have a look - I'm horribly hungover today, so I'm not in any state > to explain it properly. > > > don't really have time yet.... > > Hope this helps :-) > > Sure - the more feedback the better. > I was also wondering if there was any reason why tomcat needs to run as > root? I managed to get it to run happily over here as user 'tomcat', but > I've only be running it about 4 days, so does anyone else know a reason it > needs to be root? Only thing I can think of is if you want it as your > standard webserver, you'd need root to bind to port 80 - but that could be > got around with a port forwarder... It could run as a separate user. See the www/orion port for an example. Ernst -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 22 4: 0:24 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id 1456837B405; Thu, 22 Nov 2001 04:00:20 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 166sYG-00051A-00; Thu, 22 Nov 2001 12:01:56 +0000 Date: Thu, 22 Nov 2001 12:01:56 +0000 From: Rasputin To: Ernst de Haan Cc: java@freebsd.org Subject: Re: tomcat port (PATCH) Message-ID: <20011122120156.A14463@shikima.mine.nu> Reply-To: Rasputin References: <20011119161722.A56021@shikima.mine.nu> <200111221108.fAMB8Ne07123@zaphod.euronet.nl> <20011122113154.A14283@shikima.mine.nu> <200111221137.fAMBb1n10075@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111221137.fAMBb1n10075@zaphod.euronet.nl>; from znerd@freebsd.org on Thu, Nov 22, 2001 at 12:37:00PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Ernst de Haan [011122 11:40]: > > I'm sort of assuming that if you've installed a JDK you'll have added the > > toolchain to your path? > > Nope. You should not. Even if we could assume that the JDK bin directory is > in the path, it would be in the path for specific users, not necessarily for > root. The port should not break because such an assumption is not met. Good point. > > The alternative is setting a dependency for > > JAVA_HOME/bin/javac, but again this assumes that you set > > JAVA_HOME (or JDK_HOME, JRE_HOME, whatever is decided on).... > > Well, you can use someting like: > > JAVA_HOME?= ${PREFIX}/jdk1.1.8 > > so it can be overridden but has a default value (using something like 'make > JAVA_HOME=/usr/local/jdk1.3.1 install'). Right now you should select a JDK > yourself, as the default JDK. See the www/orion port for an example. That's pretty much what I do, it's just my default is a personal one. I'll edit that to point to ${LOCALBASE}/jdk1.3.1 (which is all /usr/java really is anyway on this box) My concern is making it configurable, not what the default is. That's a whole other kettle of fish (called bsd.port.mk, I think :) ) > > > > 2] makes files/patch-aa correctly set java_home in workers.properties > > > > (dependant on JAVA_HOME) [Snip: sorry I mentioned /usr/java now] > ...port should work out of the box, and it should comply to the rules for ports. Sure, but we all know ${PORTSDIR}/java is having trouble conforming to the 'fire and forget' design... > > > > 3] Makes tomcat.sh rc script correctly read JAVA_HOME > > > > (overridable by 'make JAVA_HOME=/usr/local/jdk1.1.8' or whatever) > > > > > > 'read'? Where from? > > > > Uh, the environment? > > Well, then where is it set? This again is a vague dependency. Remember it's set to an arbitrary value in the port, so it's no more vague than any other port, really.. (although my default doesn't exist on any other box, probably) Again, port writers have to choose a personal default, and make it tweakable, but that still means a standard 'make install' can end up attempting to pull down odd JDKs. See the other thread. I'm not trying to fix that here, although I'd be interested in helping with that effort when the time comes. > > I was also wondering if there was any reason why tomcat needs to run as > > root? I managed to get it to run happily over here as user 'tomcat', but > > I've only be running it about 4 days, so does anyone else know a reason it > > needs to be root? Only thing I can think of is if you want it as your > > standard webserver, you'd need root to bind to port 80 - but that could be > > got around with a port forwarder... > > It could run as a separate user. See the www/orion port for an example. Cheers - I'll pinch that wholesale if I may, reset that JAVA_HOME to a more conventional one, and then send-pr it (or should I mail it over to the maintainer?) -- If God is dead, who will save the Queen? Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Nov 22 4:13: 8 2001 Delivered-To: freebsd-java@freebsd.org Received: from l04.research.kpn.com (l04.research.kpn.com [139.63.192.204]) by hub.freebsd.org (Postfix) with ESMTP id A102837B416 for ; Thu, 22 Nov 2001 04:13:04 -0800 (PST) Received: by l04.research.kpn.com with Internet Mail Service (5.5.2653.19) id ; Thu, 22 Nov 2001 13:13:03 +0100 Message-ID: <59063B5B4D98D311BC0D0001FA7E452205FDA0F6@l04.research.kpn.com> From: "Koster, K.J." To: 'Munehiro Matsuda' Cc: freebsd-java@FreeBSD.ORG Subject: RE: java dumps core with orion server on 5-current Date: Thu, 22 Nov 2001 13:12:58 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear Haro, > > I'm new to java on FreeBSD, and just tried out jdk13 and > orion port to see how things are coming along. > Unfortunately, java dumps core on start up on orion. > If all you want to do is use Orion, try the Orion port with the Linux JDK and Jikes. I'm running it with no problems, other than the ones I create myself. :) > > This is a 5-current system, so there may some unknown issues > with it. :-( > Thanks for the trace. I'm sure the Java porters will shine their light over it. Kees Jan ================================================ $DEITY bless $NATION. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 3:13:36 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id C588A37B405; Fri, 23 Nov 2001 03:13:32 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fANBDW765206; Fri, 23 Nov 2001 12:13:32 +0100 (CET) (envelope-from ernst) Date: Fri, 23 Nov 2001 12:13:32 +0100 (CET) Message-Id: <200111231113.fANBDW765206@zaphod.euronet.nl> To: FreeBSD-gnats-submit@freebsd.org Subject: Port databases/mysql-jdbc-mm is quite outdated From: Ernst de Haan Reply-To: Ernst de Haan Cc: java@freebsd.org, dglo@SSEC.WISC.EDU, K.J.Koster@kpn.com X-send-pr-version: 3.113 X-GNATS-Notify: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Submitter-Id: current-users >Originator: Ernst de Haan >Organization: FreeBSD >Confidential: no >Synopsis: Port databases/mysql-jdbc-mm is quite outdated >Severity: serious >Priority: medium >Category: ports >Class: change-request >Release: FreeBSD 4.4-STABLE i386 >Environment: System: FreeBSD zaphod.euronet.nl 4.4-STABLE FreeBSD 4.4-STABLE #2: Mon Sep 24 18:08:27 CEST 2001 root@zaphod.euronet.nl:/usr/obj/usr/src/sys/ZAPHOD i386 >Description: The MM MySQL drivers in ports (databases/mysql-jdbc-mm) are very outdated. See: * http://mmmysql.sourceforge.net/ >How-To-Repeat: $ grep ^PORTVERSION /usr/ports/databases/mysql-jdbc-mm/Makefile PORTVERSION= 1.2c >Fix: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 3:19: 5 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id C7C4537B405; Fri, 23 Nov 2001 03:19:00 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fANBJ0M65339; Fri, 23 Nov 2001 12:19:00 +0100 (CET) (envelope-from ernst) Date: Fri, 23 Nov 2001 12:19:00 +0100 (CET) Message-Id: <200111231119.fANBJ0M65339@zaphod.euronet.nl> To: FreeBSD-gnats-submit@freebsd.org Subject: java/linux-jdk is out of date (RC4 iso FCS) From: Ernst de Haan Reply-To: Ernst de Haan Cc: java@freebsd.org, sobomax@freebsd.org, K.J.Koster@kpn.com X-send-pr-version: 3.113 X-GNATS-Notify: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Submitter-Id: current-users >Originator: Ernst de Haan >Organization: FreeBSD >Confidential: no >Synopsis: java/linux-jdk is out of date (RC4 iso FCS) >Severity: non-critical >Priority: medium >Category: ports >Class: change-request >Release: FreeBSD 4.4-STABLE i386 >Environment: System: FreeBSD zaphod.euronet.nl 4.4-STABLE FreeBSD 4.4-STABLE #2: Mon Sep 24 18:08:27 CEST 2001 root@zaphod.euronet.nl:/usr/obj/usr/src/sys/ZAPHOD i386 >Description: The Blackdown Linux JDK 1.2.2 is outdated. The current version is FCS, not RC4. See: http://www.blackdown.org/java-linux/java2-status/jdk1.2-status.html#i386 >How-To-Repeat: $ grep ^DISTNAME /usr/ports/java/linux-jdk/Makefile DISTNAME= jdk-1.2.2-RC4-linux-i386-glibc-2.1.2 >Fix: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 4:53:29 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.comch.ru (ns.comch.ru [213.24.93.1]) by hub.freebsd.org (Postfix) with ESMTP id C27B937B416 for ; Fri, 23 Nov 2001 04:53:23 -0800 (PST) Received: from compunet.comch.ru (dial125.comch.ru [213.24.92.125]) by ns.comch.ru (8.9.0/8.9.0) with ESMTP id PAA09662 for ; Fri, 23 Nov 2001 15:53:17 +0300 (MSK/MSD) Received: from alec.server.compunet.ru by compunet.comch.ru with SMTP (MDaemon.PRO.v4.0.0.R) for ; Fri, 23 Nov 2001 15:46:13 +0300 Date: Fri, 23 Nov 2001 15:46:12 +0300 From: "Alec Kalinin" X-Mailer: The Bat! (v1.51) Personal Reply-To: "Alec Kalinin" Organization: Compunet X-Priority: 3 (Normal) Message-ID: <14621463943.20011123154612@compunet.comch.ru> To: java@FreeBSD.ORG Subject: May be jdk1.3.1-b5 bug In-Reply-To: <200111221137.fAMBb1n10075@zaphod.euronet.nl> References: <20011119161722.A56021@shikima.mine.nu> <200111221108.fAMB8Ne07123@zaphod.euronet.nl> <20011122113154.A14283@shikima.mine.nu> <200111221137.fAMBb1n10075@zaphod.euronet.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Return-Path: alec@compunet.comch.ru X-MDaemon-Deliver-To: java@FreeBSD.ORG Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello! I try to extract rar archive with 400 files. I use Process arcProcess = Runtime.getRuntime().exec(new String[] { "unrar", "x", "arc.rar"); arcProcess.waitFor(); And this process is hangs near extracting of 150 file. On jdk1.2.2 all work correctly. -- Best regards, Alec mailto:alec@compunet.comch.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 5:32:16 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 15B5C37B418 for ; Fri, 23 Nov 2001 05:32:14 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fANDVxN65840; Fri, 23 Nov 2001 14:31:59 +0100 (CET) (envelope-from ernst) Message-Id: <200111231331.fANDVxN65840@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: "Alec Kalinin" , java@FreeBSD.ORG Subject: Re: May be jdk1.3.1-b5 bug Date: Fri, 23 Nov 2001 14:31:59 +0100 X-Mailer: KMail [version 1.3] References: <20011119161722.A56021@shikima.mine.nu> <200111221137.fAMBb1n10075@zaphod.euronet.nl> <14621463943.20011123154612@compunet.comch.ru> In-Reply-To: <14621463943.20011123154612@compunet.comch.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org What is your JDK version? "1.3.1b5" ?! That is not the current version of java/linux-jdk13, that's for sure. Ernst On Friday 23 November 2001 13:46, Alec Kalinin wrote: > Hello! > > I try to extract rar archive with 400 files. I use > > Process arcProcess = > Runtime.getRuntime().exec(new String[] { "unrar", "x", "arc.rar"); > arcProcess.waitFor(); > > And this process is hangs near extracting of 150 file. > > On jdk1.2.2 all work correctly. -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 5:44:33 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.comch.ru (ns.comch.ru [213.24.93.1]) by hub.freebsd.org (Postfix) with ESMTP id 87CEB37B405 for ; Fri, 23 Nov 2001 05:44:30 -0800 (PST) Received: from compunet.comch.ru (dial106.comch.ru [213.24.92.106]) by ns.comch.ru (8.9.0/8.9.0) with ESMTP id QAA16254 for ; Fri, 23 Nov 2001 16:44:20 +0300 (MSK/MSD) Received: from alec.server.compunet.ru by compunet.comch.ru with SMTP (MDaemon.PRO.v4.0.0.R) for ; Fri, 23 Nov 2001 16:37:54 +0300 Date: Fri, 23 Nov 2001 16:37:54 +0300 From: "Alec Kalinin" X-Mailer: The Bat! (v1.51) Personal Reply-To: "Alec Kalinin" Organization: Compunet X-Priority: 3 (Normal) Message-ID: <13824566064.20011123163754@compunet.comch.ru> To: Ernst de Haan Cc: java@FreeBSD.ORG Subject: Re[2]: May be jdk1.3.1-b5 bug In-Reply-To: <200111231331.fANDVxN65840@zaphod.euronet.nl> References: <20011119161722.A56021@shikima.mine.nu> <200111221137.fAMBb1n10075@zaphod.euronet.nl> <14621463943.20011123154612@compunet.comch.ru> <200111231331.fANDVxN65840@zaphod.euronet.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Return-Path: alec@compunet.comch.ru X-MDaemon-Deliver-To: java@FreeBSD.ORG Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello Ernst, Friday, November 23, 2001, 4:31:59 PM, you wrote: EdH> What is your JDK version? "1.3.1b5" ?! That is not the current version of EdH> java/linux-jdk13, that's for sure. This is /java/jdk1.3.1, FreeBSD jdk1.3.1 port with patchset 5. -- Best regards, Alec mailto:alec@compunet.comch.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 6:15:55 2001 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 96F6237B416 for ; Fri, 23 Nov 2001 06:15:53 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id fANEFhH66056; Fri, 23 Nov 2001 15:15:43 +0100 (CET) (envelope-from ernst) Message-Id: <200111231415.fANEFhH66056@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: "Alec Kalinin" Subject: Re: Re[2]: May be jdk1.3.1-b5 bug Date: Fri, 23 Nov 2001 15:15:39 +0100 X-Mailer: KMail [version 1.3] Cc: java@FreeBSD.ORG References: <20011119161722.A56021@shikima.mine.nu> <200111231331.fANDVxN65840@zaphod.euronet.nl> <13824566064.20011123163754@compunet.comch.ru> In-Reply-To: <13824566064.20011123163754@compunet.comch.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Please do a 'java -version' so it is visible if you are using a JIT/HotSpot, etc. Ernst On Friday 23 November 2001 14:37, Alec Kalinin wrote: > Hello Ernst, > > Friday, November 23, 2001, 4:31:59 PM, you wrote: > > EdH> What is your JDK version? "1.3.1b5" ?! That is not the current version > of EdH> java/linux-jdk13, that's for sure. > > This is /java/jdk1.3.1, FreeBSD jdk1.3.1 port with patchset 5. -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Nov 23 6:21: 8 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.comch.ru (ns.comch.ru [213.24.93.1]) by hub.freebsd.org (Postfix) with ESMTP id 572A937B416 for ; Fri, 23 Nov 2001 06:21:03 -0800 (PST) Received: from compunet.comch.ru (dial106.comch.ru [213.24.92.106]) by ns.comch.ru (8.9.0/8.9.0) with ESMTP id RAA21070 for ; Fri, 23 Nov 2001 17:21:01 +0300 (MSK/MSD) Received: from alec.server.compunet.ru by compunet.comch.ru with SMTP (MDaemon.PRO.v4.0.0.R) for ; Fri, 23 Nov 2001 17:14:41 +0300 Date: Fri, 23 Nov 2001 17:14:41 +0300 From: "Alec Kalinin" X-Mailer: The Bat! (v1.51) Personal Reply-To: "Alec Kalinin" Organization: Compunet X-Priority: 3 (Normal) Message-ID: <4626772997.20011123171441@compunet.comch.ru> To: Ernst de Haan Cc: java@FreeBSD.ORG Subject: Re[4]: May be jdk1.3.1-b5 bug In-Reply-To: <200111231415.fANEFhH66056@zaphod.euronet.nl> References: <20011119161722.A56021@shikima.mine.nu> <200111231331.fANDVxN65840@zaphod.euronet.nl> <13824566064.20011123163754@compunet.comch.ru> <200111231415.fANEFhH66056@zaphod.euronet.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Return-Path: alec@compunet.comch.ru X-MDaemon-Deliver-To: java@FreeBSD.ORG Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello Ernst, Friday, November 23, 2001, 5:15:39 PM, you wrote: EdH> Please do a 'java -version' so it is visible if you are using a JIT/HotSpot, EdH> etc. Java: java version "1.3.1-internal" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-internal-root-0111 22-22:11) Classic VM (build 1.3.1-internal-root-011122-22:20, green threads, nojit) OS: FreeBSD 4.3-RELEASE -- Best regards, Alec mailto:alec@compunet.comch.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Nov 24 6:41: 0 2001 Delivered-To: freebsd-java@freebsd.org Received: from mobycarp.org (h-66-134-60-67.DLLATX37.covad.net [66.134.60.67]) by hub.freebsd.org (Postfix) with ESMTP id D765837B405 for ; Sat, 24 Nov 2001 06:40:55 -0800 (PST) Received: (from wardd@localhost) by mobycarp.org (8.11.6/8.11.1) id fAOEetD39588 for freebsd-java@freebsd.org; Sat, 24 Nov 2001 08:40:55 -0600 (CST) (envelope-from wardd) Date: Sat, 24 Nov 2001 08:40:55 -0600 From: William Ward To: freebsd-java@freebsd.org Subject: java debugger question Message-ID: <20011124084055.C39381@mobycarp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Is jdb in 1.3.1 broaken? It's hanging when I try to use it. Maybe I'm doing something wrong. Here is my system information: mobycarp% uname -a FreeBSD mobycarp.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Nov 8 12:22:24 CST 2001 wardd@mobycarp.org:/usr/src/sys/compile/MOBYCARP i386 Here is my java version info. mobycarp% java -version java version "1.3.1-internal" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-internal-wardd-011004-01:18) Classic VM (build 1.3.1-internal-wardd-011004-01:18, green threads, nojit) Is there a way that I can confirm that this was compiled with patch set 4? I'm almost certain that it is as I downloaded the port in October. Here is what I get when I start debugging. It hangs immediately after I type run. The JVM is taking up %0 CPU usage. mobycarp% jdb JMush Initializing jdb... > run run JMush ^\SIGQUIT Full thread dump Classic VM (1.3.1-internal-wardd-011004-01:18, green threads): "launched target monitor" (TID:0x28eb58d8, sys_thread_t:0x81f5e80, state:R) prio=5 "connection acceptor" (TID:0x28eb58a8, sys_thread_t:0x81f5c80, state:R) prio=5 "process reaper" (TID:0x28eb5880, sys_thread_t:0x81f5880, state:R) prio=5 at java.lang.UNIXProcess.waitForProcessExit(Native Method) at java.lang.UNIXProcess.access$800(UNIXProcess.java:22) at java.lang.UNIXProcess$3.run(UNIXProcess.java:84) "Finalizer" (TID:0x28ea3528, sys_thread_t:0x80d4080, state:CW) prio=8 at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162) "Reference Handler" (TID:0x28ea3300, sys_thread_t:0x8096480, state:CW) prio=10 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110) "Signal dispatcher" (TID:0x28ea3330, sys_thread_t:0x8096280, state:R) prio=5 "main" (TID:0x28ea31b0, sys_thread_t:0x8055080, state:CW) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:420) at com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:164) at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:109) at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:142) at com.sun.tools.example.debug.tty.VMConnection.launchTarget(VMConnection.java:266) at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:134) at com.sun.tools.example.debug.tty.Commands.commandRun(Commands.java:398) at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:393) at com.sun.tools.example.debug.tty.TTY.(TTY.java:625) at com.sun.tools.example.debug.tty.TTY.main(TTY.java:924) Monitor Cache Dump: java.lang.ref.ReferenceQueue$Lock@28EA3540/28ED9838: Waiting to be notified: "Finalizer" (0x80d4080) java.lang.ref.Reference$Lock@28EA3310/28ED9340: Waiting to be notified: "Reference Handler" (0x8096480) com.sun.tools.jdi.AbstractLauncher$Helper@28EB5980/28EFCEA0: Waiting to be notified: "main" (0x8055080) com.sun.tools.example.debug.tty.VMConnection@28EAAEF0/28F32238: owner "main" (0x8055080) 1 entry Registered Monitor Dump: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "Signal dispatcher" (0x8096280) 1 entry Dynamic loading lock: Monitor IO lock: User signal monitor: Child death monitor: I/O monitor: Alarm monitor: Waiting to be notified: (0x8055280) Thread queue lock: owner "Signal dispatcher" (0x8096280) 1 entry Monitor registry: owner "Signal dispatcher" (0x8096280) 1 entry ^C mobycarp% Script done on Sat Nov 24 08:25:20 2001 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Nov 24 22:10:26 2001 Delivered-To: freebsd-java@freebsd.org Received: from web20410.mail.yahoo.com (web20410.mail.yahoo.com [216.136.226.129]) by hub.freebsd.org (Postfix) with SMTP id 2ABB937B416 for ; Sat, 24 Nov 2001 22:10:22 -0800 (PST) Message-ID: <20011125061021.71089.qmail@web20410.mail.yahoo.com> Received: from [203.93.190.91] by web20410.mail.yahoo.com via HTTP; Sat, 24 Nov 2001 22:10:21 PST Date: Sat, 24 Nov 2001 22:10:21 -0800 (PST) From: huang wen hui Subject: GC is not work in jdk1.3.1p5+OpenJIT1.1.16 To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, Here is the sample code: ----------------------------------------- import java.util.LinkedList; import java.util.List; import javax.swing.event.EventListenerList; public class FixQueue extends Object{ protected EventListenerList listenerList = new EventListenerList(); private FixQueueException fixQueueExcep = new FixQueueException("Queue's MaxQueueLength is Exceed"); private LinkedList list; private int maxQueueSize; protected String queueID =""; public FixQueue(int newMaxQueueSize, String queueID) { maxQueueSize = newMaxQueueSize; this.queueID = queueID; list = new LinkedList (); } public synchronized int getListenerCount() { return listenerList.getListenerCount(); } public void addBack(Object obj) { list.addLast (obj); if ( list.size () > maxQueueSize ){ list.removeFirst (); } } protected void addBackNoNotify(Object obj){ list.addLast (obj); if ( list.size () > maxQueueSize ){ list.removeFirst (); } } public Object getFront() { return list.getFirst (); } public Object getBack() { return list.getLast (); } public boolean isEmpty() { return list.isEmpty (); } public void popFront() { list.removeFirst (); } public Object at(int index) { return list.get (index); } public int getSize(){ return list.size(); } public int getMaxQueueSize(){ return maxQueueSize; } public String getQueueID(){ return queueID; } public static void main( String[] argv ){ FixQueue fixQueue = new FixQueue(4096,"ID"); while(true) { fixQueue.addBack(new byte[4096]); } } } class FixQueueException extends Exception { public FixQueueException() { super(); } public FixQueueException(String s) { super(s); } } ----------------------------------------- when run under jdk1.3.1p5 that enable OpenJIT1.1.16, the program will eat a lot of memory as posible as it can. and error msg is : Exception in thread "main" java.lang.StackOverflowError at java.util.LinkedList.addBefore(LinkedList.java, Compiled Code) at java.util.LinkedList.addLast(LinkedList.java, Compiled Code) at FixQueue.addBack(FixQueue.java, Compiled Code) at FixQueue.main(FixQueue.java, Compiled Code) If disable OpenJIT, it worked as expected. --hwh __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message