Linked by Tony Arcieri on Thu 15th May 2003 00:46 UTC
Internet & Networking When you think of platforms upon which you would deploy a Java Application Server, FreeBSD probably isn't the first one that comes to mind. However, I hope to show in this tutorial how easy it is to deploy Apache Tomcat on a FreeBSD system, complete with a native build of the JDK.
Order by: Score:
v Two links are not work..
by bsdrocks on Thu 15th May 2003 01:00 UTC
v RE: Two links are not work..
by Eugenia on Thu 15th May 2003 01:02 UTC
Nice tutorial, a question...
by bsdrocks on Thu 15th May 2003 01:19 UTC

Just wondering why do you choice FreeBSD over Linux for the Java Server? Myself, I wouldn't choice FreeBSD for now, but should be better when 5.2 or later is released.

Java and MySQL are doing better on the Linux, because of threads and etc.

<off point>
Two of your new projects, libtorrent and phpkeychain. They look very insterest and useful.

It's very good idea to create the libtorrent, which I think it might be useful for Apache modules and many other tools.

phpkeychain looks interest, but I am not sure what exactly it will work with PHP. I am going to read the FAQ that you have posted yesterday. I might throw some comments or/and questions.
</off point>

RE: Question
by Russell Jackson on Thu 15th May 2003 01:33 UTC

Probably because, like me, he finds working with FreeBSD far more enjoyable than working with "Linux". The performance difference is irrelevent (at least for me).

RE: Nice tutorial, a question...
by Eugenia on Thu 15th May 2003 01:34 UTC

Tony "Bascule" Arcieri is a known FreeBSD, OSX and Solaris fan around here. :-)

Re: bsdrocks
by Bascule on Thu 15th May 2003 01:42 UTC

Just wondering why do you choice FreeBSD over Linux for the Java Server?

I wrote this article partly because FreeBSD gets such a bad rap in the area of Java support. We have been developing a JSP web site with a number of other groups around the country which allows volunteers to enter precipiation data they've collected. The data is then stored in a MySQL backend accessed via JDBC, then the data can be accessed or analyzed either from web pages or SOAP services.

As for why the server is running FreeBSD, it's simply what I chose as a personal preference. The codeveloped JSP data collection system came about long after I installed the server, but when it came time to deploy Tomcat I was surprised at how remarkably easy it was to do through the ports collection. On a decently fast system you should be able to complete all the steps in this tutorial in under an hour.

If you're looking to build a JSP server from scratch and performance is critical, FreeBSD probably isn't going to be your first choice. We have had no performance issues using FreeBSD as a JSP server (on a dual 866MHz Dell w 512MB RAM) but our site is relatively low traffic (approximately 1500 hits/day)

Its simple
by Mark on Thu 15th May 2003 02:47 UTC

He choose FreeBSD because its a mature,well built,well documented,fast and stable UNIX system. Unlike Linux which is a hacked together clone of UNIX with far too much hype

Replies...
by bsdrocks on Thu 15th May 2003 03:48 UTC

Eugenia: Tony "Bascule" Arcieri is a known FreeBSD, OSX and Solaris fan around here. :-)

Yeah, I am aware of it. His comments in OSNews.com is one of my favorite to read. ;-) However, myself always prefer FreeBSD over for anything. But, I still will have to choice Linux for Java or whatever, when it's lacking on FreeBSD. Linux is one of my last choice of kernel/gnu (OS).


Bascule: I wrote this article partly because FreeBSD gets such a bad rap in the area of Java support.

That's good point and think, I like that.


Bascule: As for why the server is running FreeBSD, it's simply what I chose as a personal preference.

[...]

If you're looking to build a JSP server from scratch and performance is critical, FreeBSD probably isn't going to be your first choice. We have had no performance issues using FreeBSD as a JSP server (on a dual 866MHz Dell w 512MB RAM) but our site is relatively low traffic (approximately 1500 hits/day)


I agree. I don't experience on Java server that much, but how does it compares to run on Linux and FreeBSD to you today? Way back in like FreeBSD 4.3 or 4.4, it was sucks and ran on Linux better. It pissed me off. ;)


Mark: He choose FreeBSD because its a mature,well built,well documented,fast and stable UNIX system. Unlike Linux which is a hacked together clone of UNIX with far too much hype.

No, it's not that simple. Java on FreeBSD aren't full mature, yet. I never recommend anyone to run the Java server on FreeBSD, which I point them to Linux or Solaris. As for small personal or so, it's ok. Java and MySQL are doing better on Linux than FreeBSD does. But, for the other things, FreeBSD blows Linux out of water.

FreeBSD always has been my first choice of OS, but lack of threads and etc do hurt FreeBSD.

As for a best example, Yahoo can't give up the FreeBSD, so they use PHP (and C/C++ too?) instead Java.

hacked together clone of UNIX with far too much hype
by Anonymous on Thu 15th May 2003 03:59 UTC

well, i respected your comment till you got to the hacked together part, then i saw the axe you've been grinding hidden behind your back.

i do like freebsd...but "hacked together" sounds like you got a stick in your craw.

there ARE advantages to running linux in some cases.

just like there are advantages to running windows or mac.

maybe just not in the sphere of things YOU do.

i'll try it
by shark on Thu 15th May 2003 04:14 UTC

I'll try it soon. . . but not with the native jdk.
i like freebsd, i like java but i'm victim of little frustration when try to join it. why?? simple: the native jdk doesn't run NetBeans. . . i need to run the IDE with the linux jdk and of course with the linux "runtimes".

Deploying WAR
by Gavin on Thu 15th May 2003 06:03 UTC

Very nicely done. I had given up on tomcat in frustration due to the lack of documentation in getting it to co-exist seamlessly with apache.

Now how do I get apache to automatically invoke tomcat for *.jsp, /WEB-INF urls? Finally, how do I deploy a war file?

regards,
Gavin

*BSD needs Java for enterprise mindshare
by Pete on Thu 15th May 2003 06:08 UTC

Firstly, my thanks to Greg Lewis and others for keeping the Java port alive. It's a pity Sun won't chuck a few dollars towards 'official port' status.

Like most readers of this thread I've heard all the good publicity regarding FreeBSD and how it's more fun to use that Linux.

However, I'm a Java developer by trade and convincing me and others to try one of the BSDs is difficult when none of the commonly used tools (DB2, Oracle, NetBeans, Eclipse) are supported and the JDK doesn't pass Sun's JCK.

Sure, you might get them to run under emulation but if you're going to emulate linux might one just as well run Linux? ;)

Disappointing when one of the project leaders interviewed on this site a week or so ago dismissed it as a non-issue. And yet While there are patches for JDK 1.4 to build it out of the ports collection, they are currently not production quality.

So, I'm curious
i. how far away is a usable JDK 1.4?
ii. Installing the Linux JDK in order to compile the FreeBSD seems like overkill. What dependencies does this bootstrapping resolve that could otherwise be eliminated?

Perhaps when I get a new box for home I'll install it myself.

re: bsdrocks
by Bas on Thu 15th May 2003 08:23 UTC

>But, for the other things, FreeBSD blows Linux out of water.

Are you sure? 3D preformance is really BAD on FreeBSD.
If there is OpenBSD why the hell do you need FreeBSD?
OpenBSD has everything FreeBSD lacks and more...and Linux is catching up very quickly i guess there is no reason, concernig stability and/or preformance to choose FreeBSD. That does not mean its not a good product, i like FreeBSD but is nonsens to think its better then Linux. Depends on what you need to do, with how much support and how much time in wich envoirment..Penguins kick ass!



re: bsdrocks
by bsdrocks on Thu 15th May 2003 09:15 UTC

Are you sure? 3D preformance is really BAD on FreeBSD.

False, Nvidia driver runs faster on FreeBSD than on RedHat, which my machine is only 450Mhz and other machine is 1.4Mhz. I tested it on the glxgears. Even, the tuxracer runs a lot smoother on 450Mhz (FreeBSD) and not on 1.4Mhz (RedHat8).

If there is OpenBSD why the hell do you need FreeBSD?

Uh, what's your point anyway? I have lost the count of Linux distros out there. If there is Microsoft Linux why the hell do you need Linux?

OpenBSD has everything FreeBSD lacks and more.

Like what? I only see thing is PF. FreeBSD 5.x already has a lot of better stuff. All three BSDs are sharing the code most of time, anyway.

Linux is catching up very quickly i guess there is no reason, concernig stability and/or preformance to choose FreeBSD.

So, you mean Linux is <u>still</u> catch<u>ing</u> up very quickly and FreeBSD is still ahead?

Depends on what you need to do, with how much support and how much time in wich envoirment.

Time? FreeBSD saves a lot of time, it's a lot easier to admin than Linux does.

Anyway, it's getting way off topic and let this end. If you want to discuss more, post in the 'OS war' forum.

re: bsdrocks
by Anonymous on Thu 15th May 2003 09:23 UTC

I would hope your 450 mhz computer beats out your other 1.4 mhz computer. 1.4 mhz isn't a lot to work with nowadays, especially if you want to use X.

re: bsdrocks
by bsdrocks on Thu 15th May 2003 09:28 UTC

I would hope your 450 mhz computer beats out your other 1.4 mhz computer. 1.4 mhz isn't a lot to work with nowadays, especially if you want to use X.

Good catch, I mean 1.4Ghz.... :-)

re: re: bsdrocks
by Bas on Thu 15th May 2003 10:17 UTC


>False, Nvidia driver runs faster on FreeBSD than on RedHat,
>which my machine is only 450Mhz and other machine is 1.4Mhz.
>I tested it on the glxgears. Even, the tuxracer runs a lot
>smoother on 450Mhz (FreeBSD) and not on 1.4Mhz (RedHat8).

I gues 1.4mhz would be 1.4ghz..

I do not shgare those figures...maybe your 3D card (nvidia) is note the same i the redhat pc or you missconfigured it..
Anyway Nvidia is not the only player in 3D land ever heard of 3Dlabs or Elsa? i am talking about 3D as in Maya and Softimage not games..

>So, you mean Linux is <u>still</u> catch<u>ing</u> up very
>quickly and FreeBSD is still ahead?

No i ment Linux is catching up with OpenBSD not FreeBSD and yes there are certain terrains where i would choose FreeBSD
over Linux and the other way around.

>Time? FreeBSD saves a lot of time, it's a lot easier to
>admin than Linux does.
Nonsens!

FreeBSD
by Peter Schultz on Thu 15th May 2003 13:30 UTC

I have been hammering on both FreeBSD (for several years) and Gentoo Linux (for around a year).

There's a reason I'm running FreeBSD 5.1-BETA right now, it is because I find it faster and more stable. Sometimes linux just bogs down with it's pathetic scheduler it just does not offer as smooth a user experience. I'm even running a SCHED_ULE kernel, while it's not BeOS, it does a pretty fine job for costing me no money.

Also, since I try to stay on the very bleeding edge of each, it is MUCH easier to keep track of the progress of FreeBSD. Although FreeBSD 5 can become completely unusable during periods of major changes, the FreeBSD system allows me to know *exactly* what is going on and who is making what changes.

With Gentoo, at least, you've got these guys with some random script kiddy username making god only knows what kind of stupid commits to the sources.

Linux Catching up?
by XBe on Thu 15th May 2003 15:47 UTC

Isn't this phrase getting reeeaaally old?

I've heard Linux is catching up the desktop for about 3 years now and I still haven't seen anything usable.

Pretty much same with Linux vs BSD... it's catching up and for how long has it been like that? 8 years?

Linux may catch up ol' developments from other systems but will never really get there....

Re: Bascule
by Cormier on Thu 15th May 2003 17:04 UTC

> Java and MySQL are doing better on the Linux, because of threads and etc

"Revisiting FreeBSD vs. Linux for MySQL" http://jeremy.zawodny.com/blog/archives/000697.html

He said: "MySQL now runs very well on FreeBSD."

Linux vs. FreeBSD vs. Linux
by DoctorPepper on Thu 15th May 2003 17:07 UTC

I don't know where you folks get your information on Linux vs. FreeBSD from, but I use both, along with Mac OS X. I find both FreeBSD and Linux to be quite capable, stable AND mature.

I do find FreeBSD to be easier to administer, mainly because it is a much simpler system.

I had been debating on replacing Linux on my server with FreeBSD, but after working with Debian for a couple of months, have decided to switch to that instead. I had been running Mandrake Linux 7.2, and with building a new server, had decided to use a more "updatable" OS. I love FreeBSD for it's ports collection and buildworld capability, but you just can't beat Debian's "apt-get update && apt-get upgrade" :-)

This doesn't mean I will stop using FreeBSD, or that I will start bad-mouthing it, I still find FreeBSD to be an exceptional OS. Very robust, stable, mature and FAST.

Moral of this story: You don't have to pick just one OS to use. That's one of the beauties of Open Source software. Why not use the right tool for the job, and let religion stay in the church, where it belongs.

Java Nightmare
by Tony B on Thu 15th May 2003 18:28 UTC

I recently went through hell on FreeBSD and Java. We were running the old 1.1.8 Java native for FreeBSD and Tomcat. The Java code was updated during a regular maintenance window. The code was tested in the dev environment and nothing came up. In production, however, problems started appearing about a day later. The Tomcat servers would just hang and stop serving requests. Tomcat/Apache had to be shutdown and restarted, thereby clearing out user sessions (an annoyance and it meant lost work). It happened about once every 36 hours for all of our webserver, and I didn't get much sleep.

Dev decided that upgrading Java was in order, and we thought about running Java in Linux compatibility mode. Given the problems we had, we weren't ready to take that risk. We used IBM's 1.4 JDK and it worked right out of the box, and worked perfectly ever since.

RE : i'll try it
by Tyr on Thu 15th May 2003 18:45 UTC

'll try it soon. . . but not with the native jdk.
i like freebsd, i like java but i'm victim of little frustration when try to join it. why?? simple: the native jdk doesn't run NetBeans. . . i need to run the IDE with the linux jdk and of course with the linux "runtimes".


That's odd I compiled the jdk from ports some time ago on FreeBSD 5.0 and it worked fine. I did have to edit the startup script though (runide.sh)
I wish I could remember what I did to it :-) It was a matter of deleting some lines.

no jdk13 port
by Anonymous on Fri 16th May 2003 18:31 UTC

Is it me or there is no jdk1.3 port on the master server?

I don't have ports collection, so I wanted to manually download linux-sun-jdk1.3 port. It is not in linux nor java directory.