Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
BSD Operating Systems

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."
This discussion has been archived. No new comments can be posted.

Taming the Elusive Tomcat

Comments Filter:
  • RTFM! (Score:4, Informative)

    by Hard_Code ( 49548 ) on Wednesday May 22, 2002 @10:43AM (#3565770)
    Christ, they're right here [apache.org] 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.
    • This guy is a moron! I have tomcat running on both my Linux box AND my windows box. All it takes is reading the F****** manual as you say!

      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.

      • 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.
        • The question was not about setting up Java but Tomcat. If it was about Java then the person should not have asked "Where can one find descriptive help in setting up Tomcat for FreeBSD?" They should have asked "Where can one find descriptive help in setting up Java for FreeBSD so that they can run Tomcat?"

          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.

          • 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
          • 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!
    • I have to agree. With every environment out for jsp and such, tomcat is a dream to install and get running. If its learning how to write JSPs, the go get the o'reilly book. Sheesh
  • Starting Point (Score:3, Informative)

    by Martin Spamer ( 244245 ) on Thursday May 23, 2002 @03:46AM (#3570997) Homepage Journal

    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.
    • however if you don;t have a > 256 MB RAM machine, don;t try to run tomcat etc automatically when forte starts. I believe default configuration of forte is hugely bloated. a better option would be to use netbeans (netbeans.org) that is much slimmer or turn off those modules from loading that you are not using in forte.
  • Jakarta (Score:3, Informative)

    by Martin Spamer ( 244245 ) on Thursday May 23, 2002 @03:54AM (#3571010) Homepage Journal

    http://jakarta.apache.org/tomcat/

    http://jakarta.apache.org/tomcat/tomcat-3.2-
    do c/index.html
    http://jakarta.apache.org/tomcat/tom cat-3.3-doc/in dex.html
  • what else is needed?

    Maybe 'cat README' or 'ls'
  • Who's moderating this?

    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.

We are each entitled to our own opinion, but no one is entitled to his own facts. -- Patrick Moynihan

Working...