PDA

View Full Version : Installing TOMCAT error


jhamon
02-11-2007, 10:10 AM
Hi,

I'm trying to install TOMCAT

I log in to server via SSH and from command line I type command as specified in documentation but I get this error

[root@vps01 ~]# links -source http://dl.webdsm.com/installtomcat | sh
ERROR at dump.c:188: Connection refused

I get the error shown

Can anyone help with this?


Jonathan Hamon

Jeremy
02-11-2007, 08:33 PM
I haven't setup a tomcat server in a long time, but take a look at this http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

Connection refused means port 80 isnt responding, goto http://dl.webdsm.com/ they might have moved it to a different location.

LeeJ
02-17-2007, 06:26 AM
The tomcat installer was taken down. The release tree has been updated to remove the link.

To install tomcat use your prefered installation method and then symlink your config directory to /etc/tomcat4.

example
ln -s /etc/tomcat /etc/tomcat4

Tomcat will then be able to be configured from the interface.

erothoff
03-07-2007, 11:17 PM
I have did as you suggested, installing Tomcat5 manually, and adding the link to the Tomcat4 directory, but when I try to install the servlet on a web site, it takes down apache.

This is the error message I get.

[root@hosting ~]# /usr/local/apache/bin/httpd configtest
Syntax error on line 52 of /usr/local/apache/conf/vhosts.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration

Can you tell me what the command should be with Tomcat5 and I go in and manually change it after I add it in ServerCP?

Thank you.

Paul
03-08-2007, 06:04 AM
You need to install the apache tomcat module. mod_jk

erothoff
03-09-2007, 02:41 AM
Hi Paul,
Thanks for the help, but even after installing mod_jk and JDK5.0 I am still getting this errror. While I installed mod_jk using yum in FC5, I assume the problem is that I haven't told Apache to load mod_jk. Can you help me with that?
Thanks again,
Eric

Jeremy
03-09-2007, 03:09 AM
Heres a pretty good guide.

http://www.linuxjava.net/howto/webapp/

Let me know if you need more help.

erothoff
03-10-2007, 03:19 PM
Hi Jeremy,

I read through that manual, but it didn't help. I am assuming because ServerCP requires apache1.3 instead of apache2. I now have Java JDK5, (1.5.09), MySQL 4.1.22,and Tomcat 5.5.15 installed. From my understanding on the forums, ServerCP will not run on Apache 2.0, so I can not upgrade that. So the last item that I need to get working is mod_jk, (which is installed) and then I should be able to get Liferay to install. (A java based content manager, and the reason for all of my current problems.) (FYI, I am running FC5) I will start reading the Apache 1.3 docs to see if I can figure out anything there, as at least I know WHERE the problem is. Now just to get it working!!!

Thanks again for all you help so far.
Sincerely,
Eric

Jeremy
03-10-2007, 05:15 PM
Just don't use the apache2. The guide looks as it would work just from eyeballing it. If i have time too night when im at work ill see if i can get it installed and working.

erothoff
03-11-2007, 08:26 PM
Hi Jeremy,
I am getting closer. I actually got tomcat running, but only in standalone and by starting in the window.

when I try to run tomcat, using "tomcat5 start" I get:

Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
/usr/bin/dtomcat5: line 306: /var/run/tomcat5.pid: Permission denied


The error is when the script dtomcat5 is trying to write the file tomcat5.pid to the directory /var/run/.

When I try "tomcat5 run" it actually runs tomcat, and I can connect to the 8080 port for tomcat. While I can figure out how to put tomcat5.pid into a directory that isn't write protected, or unprotect /var/run (Which I assume that I should NOT do.)
The more I have dug into this, I think there are some mistakes in my tomcat5.conf, and ROOT.xml files. The funny thing is that when I reinstalled Tomcat, these files stated the way the were configured, instead of being reinstalled as standard. I am going to have to set up another machine and install tomcat, to see if I can get the standard files.

I am still working on this, but I wanted to know if you had any ideas.

Sincerely,
Eric

Jeremy
03-12-2007, 02:11 AM
If you like i can give you a temp box from my work to play around with, burn as much BW as you like :)

I was really busy last night... and tonight im booked :/

What user/group are you running tomcat as?

Off hand the /var/run is root/wheel groups/users only.

Try adding the tomcat user to the wheel group.

in /etc/groups
tomcatuser:x:USERID:some group,other group,wheel

When i finish my long list ill see what i can do to get tomcat installed.

erothoff
03-14-2007, 03:05 AM
Hi Jeremy,
I got Tomcat finally running. (I changed the directory for the tomcat5.pid to the catalina_home/temp directory.) Now, all I need to do is to connect Apache to it.
It looks like I will have to compile mod_jk as I can not find a mod_jk using yum. (I had found one, and installed it, I thought. But it had also said something about being for Apache2, and of course we are running apache1.)

Just wanted to give you an update on how things are going.
Eric

erothoff
03-14-2007, 08:10 PM
Hi Again,
Now I am stuck. I went so far as to uninstall and reinstall tomcat to make sure all the config files were standard.
My httpd.conf I changed to add mod_jk

LoadModule jk_module /usr/local/apache/libexec/mod_jk.so

JkWorkersFile "/usr/share/tomcat5/conf/workers.properties"
JkLogFile "/usr/share/tomcat5/logs/mod_jk.log"
JKLogLevel info
JKLogStampFormat "[%a %b %d %H:%M:%S %Y]"

I had to compile mod_jk since the .rpm was for apache2, in which I had to put in the location of the apache exe. (/usr/local/apache/bin/apxs on my computer.)

I can start up tomcat5 from a command promt, typing both:
tomcat5 start
tomcat5 run

And I can log into the tomcat-admin once I run tomcat at the command prompt. But I can not get it running by itself.

Now it is as much trying to get tomcat to work with serverCP than anything else... :-(

Jeremy
03-16-2007, 01:39 AM
I'm am free tonight. yay...

Ill give it a shot tonight.

Hard to draw up a plan to move well over 5000 servers eh....:o

erothoff
03-21-2007, 01:51 AM
Hi Jeremy,
Were you able to look at tomcat? I can tell it is a problem with the configuration files, but either I have tomcat working alone, (and doesn't work with Apache) or I follow what one book says and then tomcat won't run.
Sincerely,
Eric

Jeremy
04-04-2007, 01:49 AM
Hey sorry for the AFKness.
This has been the worst possible last month...

Where you at now this... If your up... during my hours when im at work i can help you out. 11pm - 8am pst..

I played with it for a little bit, then i noticed it crashed my Jabber server (java based) I have another box ill setup later on i can mess with.