Taming the Elusive Tomcat 30
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."
Re:as a official operator of #java on efnet (Score:1)
I can safely say that you should stay clear of Lisp and go with a product that is usable in a production environment.
The experienced staff of #ai recommends Trivia, Eggdrop and Capncrunch.
Re:as a official operator of #java on efnet (Score:2)
Re:as a official operator of #java on efnet (Score:1)
I was actually thinking of some of the issues with CMUCL MP but as you point out, load-balancing would solve that with little trouble.
I presume one wouldn't write lots of recursive functions when the iterative constructs can be used, either...
In my own web apps CMUCL's performance was much more than adequate but I'm pretty sure the server never has seen more than moderate usage.
What's the best way to get people to use CL for this? Use it yourself, and beat them at their own game. Maybe some Lisp-based tools for web developers? Get them out of the pointy-brackets syntax and into S-expressions =)
I bet CLIM would do pretty well for writing a web-page layout designer, for those who don't write by hand...
Re:as a official operator of #java on efnet (Score:1)
Common Lisp doesn't guarentee tail-call elision was my point =) It's just that all good compilers do it.
Are you aware of SBCL [sf.net] by any chance? It's a fork of CMUCL and while it's still very Unix-bound there's a lot of cleanup going on and development is quite active (so is CMUCL for that matter). Besides that there is OpenMCL, CLISP, and ECL all are being worked on, and even GCL might get its act together someday. You should visit CLiki [telent.net] and cCLan [sf.net] too, or stop by OPN #lisp. There are people out there making efforts, though they may not be as visible as someone like Paul Graham.
Re:as a official operator of #java on efnet (Score:1)
Couldn't agree more. People just aren't into Lisp anymore. As far as the logic of a program goes, it's so much easier than an imperative language like Java, etc. I'm not familiar with web apps and lisp (I use Scheme, really) - does it play well with databases and such?
(define (add-stuff-to-shopping-cart new-stuff)
(cons old-stuff new-stuff) )
Ok, well that's not technically correct. But it looks easy, right? :)
Re:as a official operator of #java on efnet (Score:2, Insightful)
RTFM! (Score:4, Informative)
If that's not enough, go grab the servlet spec from Sun. It's really not that hard.
Re:RTFM! (Score:2)
Step 1 get Java 1.3+ (1.4 better)
Step 2 get apache 1.3+
Step 3 get tomcat 4.0+ and mod_jk
Step 4 install all of the above.
Step 5 Create a workers.properties file.
Step 6 Create a mod_jk.conf file or let tomcat do it for you. If you let tomcat create one for you copy it and use the copy not the one created as it may overwrite this file. There is a way to shut this on and off, but that is in the manual.
Step 7 Add a line in apache's httpd.conf file to include the mod_jk.conf file
Step 8 Edit the mod_jk.conf file to include your new jsp pages directory. This will require you setting up the directive as per apache documentation. Look in http.conf for examples.
Step 9 add the 'connectors'. There are the JkMount directives.
Step 10 start it all up and test it out. Pretty much worked for me.
WEB-INF/classes is where your .class files go and there is a place for glocal jars and global classes as well as private classes and private servlets etc.
Alternately youy could just get tomcat and java and run it without apache if all you are doing is jsp. It is really not that difficult and there is a whole web site dedicated to this. Its called jakarta.apache.org. try it.
Re:RTFM? RTFQ (Score:1)
Hopefully Sun will start to release official JDK/JREs for this platform very soon.
Re:RTFM? RTFQ (Score:2)
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.
Re:RTFM? RTFQ (Score:2)
Re:RTFM? RTFQ - Learn to read (Score:1)
Read what you are flaming before you flame!
Re:RTFM! (Score:1)
Starting Point (Score:3, Informative)
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.
Re:Starting Point (Score:1)
Jakarta (Score:3, Informative)
http://jakarta.apache.org/tomcat/
http://jakarta.apache.org/tomcat/tomcat-3.2-
d
http://jakarta.apache.org/tomcat/to
man tar? (Score:2)
Maybe 'cat README' or 'ls'
It's not a question... (Score:1)
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.