AW: Problem starting tomcat4 .rpm

2003-01-29 Thread Andreas Galatis

This rpm does not install the user tomcat, Klaus is right, there was a
fault in my startup-script. my startup-script is the following:
# config: /home/tomcat4/conf/tomcat.conf

# Source function library.
. /etc/rc.d/init.d/functions

# Setup JAVA_HOME to your JDK home dir
export JAVA_HOME=/usr/java/current
#export TOMCAT_HOME=/home/tomcat4
export PATH=$PATH:/usr/java/current/bin
export TOMCAT_HOME=/var/tomcat4
export CATALINA_HOME=/var/tomcat4
 #See how we were called.
case "$1" in
  start)
echo -n "Starting tomcat4: "
daemon tomcat4 start
echo
touch /var/lock/subsys/tomcat4
;;
  stop)
echo -n "Shutting down tomcat4: "
daemon tomcat4 stop
echo
rm -f /var/lock/subsys/tomcat4
rm -f /var/run/tomcat4.pid
;;
  restart)
$0 stop
sleep 2
$0 start
;;
  *)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit 0 
I tried the startup-script like Klaus wrote:
daemon --user $TOMCAT_USER -c "$TOMCAT_SCRIPT start" 
The result was 
Shutting down tomcat4: /etc/init.d/tomcat4: Verwendung: daemon
[+/-nicelevel] {Programm}

So I tried it with the following: 
su root /usr/bin/tomcat4 start
And still have the same output in catalina.out. 



Andreas

> -Ursprüngliche Nachricht-
> Von: Turner, John [mailto:[EMAIL PROTECTED]] 
> Gesendet: Mittwoch, 29. Januar 2003 17:11
> An: 'Tomcat Users List'
> Betreff: RE: Problem starting tomcat4 .rpm
> 
> 
> 
> Looks OK to me.  Like I said, I don't use the RPMs, my point 
> is just that binary installs of Tomcat and the RPM install 
> typically work "out of the box".  If they don't, it's usually 
> related to permissions or invalid/missing environment 
> variable settings.
> 
> What happens if you run a command like this:
> 
> su - tomcat4 -c $CATALINA_HOME/startup.sh
> 
> John
> 
> 
> > -Original Message-
> > From: Andreas Galatis [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 11:56 AM
> > To: 'Tomcat Users List'
> > Subject: AW: Problem starting tomcat4 .rpm
> > 
> > 
> > Hi John,
> > Here the beginning of my startup-script:
> > # Source function library.
> > . /etc/rc.d/init.d/functions
> > 
> > # Setup JAVA_HOME to your JDK home dir
> > export JAVA_HOME=/usr/java/current
> > #export TOMCAT_HOME=/home/tomcat4
> > export PATH=$PATH:/usr/java/current/bin
> > export TOMCAT_HOME=/var/tomcat4
> > export CATALNA_HOME=/var/tomcat4
> >  #See how we were called.
> > case "$1" in
> >   start)
> > echo -n "Starting tomcat4: "
> > daemon tomcat4 start
> > echo
> > touch /var/lock/subsys/tomcat4
> > ;;
> >   stop)
> > echo -n "Shutting down tomcat4: "
> > daemon tomcat4 stop
> > echo
> > rm -f /var/lock/subsys/tomcat4
> > rm -f /var/run/tomcat4.pid
> > ;;
> >   restart)
> > $0 stop
> > sleep 2
> > $0 start
> > ;;
> >   *)
> > echo "Usage: $0 {start|stop|restart}"
> > exit 1
> > Esac
> > I have a user tomcat4 with no login so where should I declare the 
> > variable for him?
> > 
> > Thanx
> > Andreas
> > 
> > 
> > 
> > > -Ursprüngliche Nachricht-
> > > Von: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Mittwoch, 29. Januar 2003 15:33
> > > An: 'Tomcat Users List'
> > > Betreff: RE: Problem starting tomcat4 .rpm
> > > 
> > > 
> > > 
> > > Are you positive JAVA_HOME and CATALINA_HOME are set?  I
> > > don't use RPMs, but I think that in this case the RPM sets up 
> > > a user specifically for Tomcat (tomcat4?).  JAVA_HOME and 
> > > CATALINA_HOME either need to be set for that user and not 
> > > you, or for all users.
> > > 
> > > John
> > > 
> > > 
> > > > -Original Message-
> > > > From: Andreas Galatis [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 29, 2003 10:29 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Problem starting tomcat4 .rpm
> > > > 
> > > > 
> > > > Hello list,
> > > > I just installed Tomcat4 as RPM on Redhat 8 with apache2
> > installed.
> > > > I have configured my workers.properties, setup JAVA_HOME,
> > > > CATALINA_HOME
> > > >

AW: Problem starting tomcat4 .rpm

2003-01-29 Thread Andreas Galatis
Hi John, 
Here the beginning of my startup-script:
# Source function library.
. /etc/rc.d/init.d/functions

# Setup JAVA_HOME to your JDK home dir
export JAVA_HOME=/usr/java/current
#export TOMCAT_HOME=/home/tomcat4
export PATH=$PATH:/usr/java/current/bin
export TOMCAT_HOME=/var/tomcat4
export CATALNA_HOME=/var/tomcat4
 #See how we were called.
case "$1" in
  start)
echo -n "Starting tomcat4: "
daemon tomcat4 start
echo
touch /var/lock/subsys/tomcat4
;;
  stop)
echo -n "Shutting down tomcat4: "
daemon tomcat4 stop
echo
rm -f /var/lock/subsys/tomcat4
rm -f /var/run/tomcat4.pid
;;
  restart)
$0 stop
sleep 2
$0 start
;;
  *)
echo "Usage: $0 {start|stop|restart}"
exit 1
Esac
I have a user tomcat4 with no login so where should I declare the
variable for him?

Thanx
Andreas



> -Ursprüngliche Nachricht-
> Von: Turner, John [mailto:[EMAIL PROTECTED]] 
> Gesendet: Mittwoch, 29. Januar 2003 15:33
> An: 'Tomcat Users List'
> Betreff: RE: Problem starting tomcat4 .rpm
> 
> 
> 
> Are you positive JAVA_HOME and CATALINA_HOME are set?  I 
> don't use RPMs, but I think that in this case the RPM sets up 
> a user specifically for Tomcat (tomcat4?).  JAVA_HOME and 
> CATALINA_HOME either need to be set for that user and not 
> you, or for all users.
> 
> John
> 
> 
> > -Original Message-
> > From: Andreas Galatis [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 10:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: Problem starting tomcat4 .rpm
> > 
> > 
> > Hello list,
> > I just installed Tomcat4 as RPM on Redhat 8 with apache2 installed.
> > I have configured my workers.properties, setup JAVA_HOME, 
> > CATALINA_HOME
> > On trying to start tomcat4 the logfile  
> /var/tomcat4/logs/catalina.out
> > shows:
> > 
> > ERROR reading /var/tomcat4/conf/server.xml
> > At Line 96 /Server/Service/Connector/ 
> > className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 
> > minProcessors=5 maxProcessors=75 enableLookups=true 
> redirectPort=8443 
> > acceptCount=100 debug=0 connectionTimeout=2 
> > useURIValidationHack=false disableUploadTimeout=true
> > 
> > Catalina.start: java.lang.ClassNotFoundException: 
> > org.apache.coyote.tomcat4.CoyoteConnector
> > java.lang.ClassNotFoundException: 
> > org.apache.coyote.tomcat4.CoyoteConnector
> > at 
> > org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> > ardClassLo
> > ader.java:1022)
> > at 
> > org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> > ardClassLo
> > ader.java:906)
> > at
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:140)
> > at
> > org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:600)
> > at
> > 
> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:405)
> > at
> > 
> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:88)
> > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
> > at com.sun.xml.parser.Parser.content(Parser.java:1499)
> > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> > at com.sun.xml.parser.Parser.content(Parser.java:1499)
> > at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> > at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> > at com.sun.xml.parser.Parser.parse(Parser.java:284)
> > at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> > at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
> > at
> > org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:221)
> > at 
> > org.apache.catalina.startup.Catalina.start(Catalina.java:626)
> > at
> > org.apache.catalina.startup.Catalina.execute(Catalina.java:596)
> > at
> > org.apache.catalina.startup.Catalina.process(Catalina.java:169)
> > at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > orImpl.jav
> > a:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > odAccessor
> > Impl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:133)
> > 
> > 
> > Here is my server.xml Lines 91 to 97. I dont know whats wrong
> > with that.
> > 
> > 
> >  >port="8080" minProcessors="5" maxProcessors="75"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="100" debug="0" connectionTimeout="2"
> >useURIValidationHack="false"
> > disableUploadTimeout="true"
> > />
> > 
> > 
> > Could anybody help me?
> > 
> > Thanx
> > Andreas
> > 
> >