Operating System - HP-UX
1830735 Members
1842 Online
110015 Solutions
New Discussion

Unable to start tomcat in Hp-ux

 
chandra Sekhar_7
Frequent Advisor

Unable to start tomcat in Hp-ux

Dear Gems,

I am unable to start tomcat i am getting this error please help me on this ..

www@tcsdevmd:/opt/hpws/tomcat/bin> ./startup.sh
Using CATALINA_BASE: /opt/hpws/tomcat
Using CATALINA_HOME: /opt/hpws/tomcat
Using CATALINA_TMPDIR: /opt/hpws/tomcat/temp
Using JRE_HOME: /opt/java1.5/


Thanks in advance.

Regards
chandra
11 REPLIES 11
Ivan Krastev
Honored Contributor

Re: Unable to start tomcat in Hp-ux

Check Tomcat log files for details.

regards,
ivan
Steven E. Protter
Exalted Contributor

Re: Unable to start tomcat in Hp-ux

Shalom chandra,

Never been called a Gem before. I'll take it as a compliment.

I don't see an error message. Can you share the error message please?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeeshan
Honored Contributor

Re: Unable to start tomcat in Hp-ux

Hi Sekhar

is this error? did you check the with ps command that the tomcat is running or not?
a warrior never quits
Bill Hassell
Honored Contributor

Re: Unable to start tomcat in Hp-ux

Have you tried the standard start/stop script:

/sbin/init.d/apache start

This assumes you have enabled Tomcat in the Apache start/stop config file:

/etc/rc.config.d/apache


Bill Hassell, sysadmin
chandra Sekhar_7
Frequent Advisor

Re: Unable to start tomcat in Hp-ux

Dear all,

Tomcat is not running

See this..

www@tcsdevmd:/opt/hpws/tomcat/bin> ps -ef |grep -i httpd
bin 20302 6343 0 16:14:52 ? 0:00 /opt/OV/httpd/bin/httpd -k start
www 4286 4279 0 14:42:45 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start -DSSL
www 4285 4279 0 14:42:45 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start -DSSL
www 4280 4279 0 14:42:45 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start -DSSL
root 4279 1 0 14:42:45 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start -DSSL
www 25727 9906 1 17:29:48 pts/3 0:00 grep -i httpd
root 6343 1 0 15:44:37 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 6352 6343 0 15:44:37 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 6350 6343 0 15:44:37 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 6349 6343 0 15:44:37 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 6985 6343 0 15:45:58 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 6348 6343 0 15:44:37 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 6351 6343 0 15:44:37 ? 0:00 /opt/OV/httpd/bin/httpd -k start
bin 14593 6343 0 17:05:08 ? 0:00 /opt/OV/httpd/bin/httpd -k start
www@tcsdevmd:/opt/hpws/tomcat/bin> ps -ef |grep tom
root 1086 1 0 14:41:23 ? 0:00 /usr/sbin/automountd
www 25841 9906 0 17:29:58 pts/3 0:00 grep tom

Regards
Chandra
Ivan Krastev
Honored Contributor

Re: Unable to start tomcat in Hp-ux

See how to enable logging for Tomcat and give more information - http://www.hp.com/products1/unix/webservers/apache/faqs/index.html#setup14


regards,
ivan
Fabien GUTIERREZ
Frequent Advisor

Re: Unable to start tomcat in Hp-ux

what u show is not an error but the standard output from a normal tomcat startup. if u want to look at tomcat started or not u must grep over catalina not apache. tomcat is not apache tomcat launches catalina apache launches httpd
chandra Sekhar_7
Frequent Advisor

Re: Unable to start tomcat in Hp-ux

Dear Fabin,

www@tcsdevmd:/opt/hpws/tomcat/bin> ps -ef |grep -i catalina
www 11065 14082 0 09:34:02 pts/3 0:00 grep -i catalina
You have mail in /var/mail/root
www@tcsdevmd:/opt/hpws/tomcat/bin>


regards
Chandra
Bill Hassell
Honored Contributor

Re: Unable to start tomcat in Hp-ux

It appears that you have two web servers running at the same time, one from the hpws directory and the other from OV. I would suggest using the supported start/stop scripts and shutdown both web servers. Then edit the /etc/rc.config.d/apache file to enable Tomcat. Also check for Tomcat setup in your Apache configuration file. Then start Apache and Tomcat with the command:

/sbin/init.d/apache start


Bill Hassell, sysadmin
chandra Sekhar_7
Frequent Advisor

Re: Unable to start tomcat in Hp-ux

Dear All,

THANKS FOR EVERYONE..

My problem is resolved.


Regards
Chandra
Norman Dignard
Regular Advisor

Re: Unable to start tomcat in Hp-ux

Am missing something ?
HPUX's tomcat startup is controlled by /etc/rc.config.d/hpws_tomcatconf is it not?

On my system starting tomcat creates a java process. You should be grepping for java not catalina or tomcat.