Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 67

Thread: HOWTO: Install Tomcat 5.5

  1. #11
    Join Date
    Jul 2005
    Beans
    1

    Re: HOWTO: Install Tomcat 5.5

    Isn't $CLASSPATH being overwritten by the second export in your examples. I couldn't get servlets to compile until I changed it to look like this:

    <SNIP>

    export CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/lib/servlet-ap i.jar

    </SNIP>

  2. #12
    Join Date
    Jul 2005
    Beans
    152

    Re: HOWTO: Install Tomcat 5.5

    I wouldn't run tomcat as root personally.

    start it like

    su - tomcatuser -c"/path/to/tomcat/bin/startup.sh"

  3. #13
    Join Date
    Jun 2005
    Location
    Australia
    Beans
    22

    Re: HOWTO: Install Tomcat 5.5

    Quote Originally Posted by jholder
    Isn't $CLASSPATH being overwritten by the second export in your examples. I couldn't get servlets to compile until I changed it to look like this:

    <SNIP>

    export CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/lib/servlet-ap i.jar

    </SNIP>
    You're absoulutly right. I guess I missed that one when I was copying and pasting. I'll fix it up right away.

    Thanks for the notice

  4. #14
    Join Date
    Sep 2005
    Beans
    15
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Question Re: HOWTO: Install Tomcat 5.5

    Quote Originally Posted by dc2447
    I wouldn't run tomcat as root personally.

    start it like

    su - tomcatuser -c"/path/to/tomcat/bin/startup.sh"
    I think there even is an option for tomcat or jsvc to give it a user to drop privileges to.
    Can anyone please tell me how to create the apropriate user?

    • Did you set a Password?
    • Did you set a shell?
    • In general: How do I do this securely?


    Thanks in advance

  5. #15
    Join Date
    Jul 2005
    Beans
    109

    Question Re: HOWTO: Install Tomcat 5.5

    Quote Originally Posted by er4z0r
    I think there even is an option for tomcat or jsvc to give it a user to drop privileges to.
    Can anyone please tell me how to create the apropriate user?

    • Did you set a Password?
    • Did you set a shell?
    • In general: How do I do this securely?


    Thanks in advance

    To create a use use the gnome interface or the kde interface.
    Should be simple. I have a user named tomcat.

    There is jsvc true but I when I run it still runs as root.
    I have an application that creates files, well the file created is root:root.

    I think is due a problem between jsvc code and ubuntu. I remember I had to modify one c source a bit.

    Anyone succesfully runs jsvc with low priviledge user ? Don't get me wrong JSVC works great. Does the thing, allows me to set JVM parameters but seems that doesn't switch to a low priviledge user I pass...

    theQmaster
    Good Stock Images - Stock Photography
    http://www.goodstockimages.com
    Last edited by theQmaster; September 27th, 2005 at 07:17 PM.

  6. #16
    Join Date
    Oct 2005
    Beans
    8

    Re: HOWTO: Install Tomcat 5.5

    When i type sh /usr/local/tomcat/bin/startup.sh i will get this meassage:
    Cannot find /usr/local/tomcat/bin/catalina.sh
    This file is needed to run this program

    The file is there

    /stefan

  7. #17
    Join Date
    Oct 2005
    Beans
    15

    Re: HOWTO: Install Tomcat 5.5

    Quote Originally Posted by jreymol
    3. I executed this lines:

    Code:
    chmod 755 /etc/init.d/tomcat
    ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat
    ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat
    and now my tomcat is there when I start up my linux
    While trying to understart what the rcX.d are, I've stumble across this page, which explains you shouldn't make the links yourself but use the update-rc.d command, so, instead of the 2 ln -s you have, I've made:

    Code:
    update-rc.d tomcat defaults
    I'm just a linux newbie and this is my way of saying thank you for this howto

  8. #18
    Join Date
    Oct 2005
    Beans
    15

    Re: HOWTO: Install Tomcat 5.5

    Just one more thing. When I tried to access my first jsp it gave me a class not found exception It only worked when I also put the jasper-runtime.jar in the CLASSPATH of tomcat...

  9. #19
    Join Date
    Nov 2005
    Beans
    3

    Re: HOWTO: Install Tomcat 5.5

    Thank you jreymol! Your startup script works great for me. I've been struggling with getting Tomcat to startup on boot for a few hours, so I appreciate your post!

  10. #20
    Join Date
    Feb 2006
    Beans
    9

    Re: HOWTO: Install Tomcat 5.5

    Hello. I'm trying to install Tomcat, of course, but:

    Code:
    alastair@serverus:~$ sudo apt-get install sun-j2sdk1.5
    Reading package lists... Done
    Building dependency tree... Done
    Package sun-j2sdk1.5 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package sun-j2sdk1.5 has no installation candidate
    It is the same for sun-j2re1.5.

    I am running a Breezy server installation. I've added all the repositories the Wiki tells me to, seeing how the starter guide is now out of date.

    I also found this thread which tells me to install libapache-mod-jk, which I did, but now I can't tell if Tomcat is installed or not. I can't open a web browser on the server and trying to connect to port 8080 from another computer says connection refused.

    Further, I still don't know how to install the j2re and j2sdk.

    help please

Page 2 of 7 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •