Taming the Elusive Tomcat
joeyslopp writes: "Finding documentation on an open source project such as FreeBSD is usually quite easy. In fact, the project relies heavily upon user support. However, tracking down a good article that illustrates how to setup a .jsp (java server pages) environment using Tomcat has been difficult.
Devshed came close with their article Slapping Together A JSP Development Environment , but lacked specifics on JDK for FreeBSD -- their article was more specific to Linux. The studs in #freebsd on undernet enlightened me a bit more, but still I lacked concrete documenation.
Where can one find descriptive help in setting up Tomcat for FreeBSD?
Dun dun dun dun *cheesy superhero theme* Enter Victoria Chan's article seemingly tailor-made for my Tomcat woes. The article, also located here, actually appears on www.freebsd.org as well...imagine that :)
Hopefully other newbies to FreeBSD will read this and shorten their search time for a good article on the setup of Tomcat."
I can safely say that you should stay clear of Tomcat and go with a product that is usable in a production environment. The experienced staff of #java recommends resin (www.caucho.com) or orion (www.orionserver.com). For more help, come to #java.
Christ, they're right here dammit. The docs are great, watchoo talkin' 'bout Willis...
If that's not enough, go grab the servlet spec from Sun. It's really not that hard.
It's 10 PM. Do you know if you're un-American?
The question, though misworded, is about setting up Tomcat on FreeBSD which is nontrivial as the JDK is not 100% complete for this platform. As I understand it, many java applications need modification to get them running properly on FreeBSD, even though they may work perfectly well on Linux, Windows and Solaris.
Hopefully Sun will start to release official JDK/JREs for this platform very soon.
Sure, we all know that *BSD is a failure, but why? Why did *BSD fail? Once you get past the fact that *BSD is fragmented between a myriad of incompatible kernels, there is the historical record of failure and of failed operating systems. *BSD experienced moderate success about 15 years ago in academic circles. Since then it has been in steady decline. We all knw *BSD keeps losing market share but why? Is it the problematic personalities of many of the key players? Or is it larger than their troubled personalities?
The record is clear on one thing: no operating system has ever come back from the grave. Efforts to resuscitate *BSD are one step away from spiritualists wishing to communicate with the dead. As the situation grows more desperate for the adherents of this doomed OS, the sorrow takes hold. An unremitting glom hangs like a death shroud over a once hopeful *BSD community. The hope is gone; a mournful nostalgia has settled in. Now is the end time for *BSD.
Funny, since Mac OS X is a BSD ;)
You should group all the OSes you mention under shoddily written, BTW. When will we move beyond them? (Well, we already have, but decided to re-descend into the dark ages for some reason; due to business...politics... who knows. oh well.).
You could using one of the free (as in beer) community editions of the IDE's. CE editions of JBuilder and Forte come pre-configured with TOMCAT.
http://jakarta.apache.org/tomcat/
http://jakarta.apache.org/tomcat/tomcat-3.2-
d
http://jakarta.apache.org/tomcat/to
# cd /usr/ports/www/jakarta-tomcat4
/usr/ports/emulators/linux_base
/usr/ports/java/linux-jdk13
# make install clean
After a while it will have done everything for you. I expect that you already have java installed in your machine. If not, then before the above do the following:
# cd
# make install clean
wait for it to finish
# linux (or, if using the current branch, "kldload linux)
# cd
# make install
Follow the instructions it provides to download the JDK; once downloaded to the correct location (/usr/ports/distfiles):
# make install clean
Now, install tomcat.
Always use the 4 branch of tomcat; the 3 branch is a piece of shit. 4 actually works well and is stable.
The title of the article was about Tomcat NOT Java.
Give me access to a FreeBSD box and then we'll talk. I only have NetBSD / Linux and Windows at the moment.
The steps above are generic. They apply to ALL platforms. If there is an inadequate jdk for FreeBSD then that is not my fault. Linux users got togeather at www.blackdown.org to release Java for Linux LONG before Sun supported it. Maybe FreeBSD people who are intereseted in a better port of java to Linux should talk to someone over there and maybe they can make a more generic jdk that will work better on FreeBSD.
Only 'flamers' flame!
Oh and I found a JDK for FreeBSD as well as a whole bunch of Java port. I think make install may be what he needs to do. http://www.freebsd.org/cgi/url.cgi?ports/java/jdk1 2-beta/pkg-descr
Only 'flamers' flame!
what else is needed?
Maybe 'cat README' or 'ls'
Who said that the question was about setting up Java? The issue is that though the JDK is available it is incomplete and there are hence issues running Tomcat.
Read what you are flaming before you flame!
These posts are not informative, they're almost all off-topic. The original post is not asking a question, it's pointing out an informative article that explains in detail how to download and compile the JDK (1.3!, not 1.2-beta) and required patches for FreeBSD, and then set up Tomcat to work there.
That fact that someone was able to download and copy some files on both Linux and Windows is pretty much irrelevant to the spirit of the post (Tomcat/FreeBSD How-To). Labelling such posts as informative when they provide no information that wasn't in Victoria Chan's article seems silly to me.