[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-install
Subject:    Re: [opennms-install] tomcat4 error
From:       Tarus Balog <tarus () opennms ! org>
Date:       2007-02-24 14:19:59
Message-ID: 600EBCB0-3109-4678-BB64-4084D7A19444 () opennms ! org
[Download RAW message or body]


On Feb 23, 2007, at 11:19 PM, Charles Sagrado wrote:

> [root@groundworkserver opennms]# service tomcat4 restart
> Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
> Using CATALINA_HOME:   /var/tomcat4
> Using CATALINA_TMPDIR: /var/tomcat4/temp
> Using JAVA_HOME:       /usr/java/j2rel.4.2_13/
> /usr/bin/dtomcat4: line 264: /usr/java/j2rel.4.2_13//bin/java: No  
> such file or directory
> /usr/bin/dtomcat4: line 264: exec: /usr/java/j2rel.4.2_13//bin/ 
> java: cannot execute: No such file or directory
> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/ 
> procps-3.2.7/FAQ
>
> Starting tomcat4: Using CATALINA_BASE:   /var/tomcat4
> Using CATALINA_HOME:   /var/tomcat4
> Using CATALINA_TMPDIR: /var/tomcat4/temp
> Using JAVA_HOME:       /usr/java/j2rel.4.2_13/
>                                                            [  OK  ]
> [root@groundworkserver opennms]#
>
> how can i repair the error?

First of, as per the install guide, you have to have the Java SDK,  
not JRE. This is because Tomcat will have to compile files which  
requires the javac compiler that is only available in the SDK.

Second, edit /etc/tomcat4/tomcat4.conf (per the install guide) and  
point JAVA_HOME to your SDK.

Third, to fix the "bad syntax" error, edit /etc/init.d/tomcat4 and  
locate "ps -aux" and change that line to:

tc4run=`ps -ef | grep catalina | grep -v opennms | grep -v grep |  
grep $TOMCAT_USER -c`

-T

_______________________________________________________________________
Tarus Balog, OpenNMS Maintainer             Main:   +1 919 533 0160
The OpenNMS Group, Inc.                     Fax:    +1 503 961 7746
Skype: tarusb                               Direct: +1 919 647 4749
Email: tarus@opennms.org                    URL: http://www.opennms.org
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic